GET content.accounts.authinfo
{{baseUrl}}/accounts/authinfo
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/authinfo");

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

(client/get "{{baseUrl}}/accounts/authinfo")
require "http/client"

url = "{{baseUrl}}/accounts/authinfo"

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

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

func main() {

	url := "{{baseUrl}}/accounts/authinfo"

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

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

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

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

}
GET /baseUrl/accounts/authinfo HTTP/1.1
Host: example.com

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

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/authinfo")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/authinfo")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/accounts/authinfo');

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

const options = {method: 'GET', url: '{{baseUrl}}/accounts/authinfo'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/authinfo';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/authinfo',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/authinfo")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/authinfo',
  headers: {}
};

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/accounts/authinfo'};

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

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

const req = unirest('GET', '{{baseUrl}}/accounts/authinfo');

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

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

const options = {method: 'GET', url: '{{baseUrl}}/accounts/authinfo'};

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

const url = '{{baseUrl}}/accounts/authinfo';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/authinfo"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/accounts/authinfo" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/accounts/authinfo');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/authinfo');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/accounts/authinfo")

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

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

url = "{{baseUrl}}/accounts/authinfo"

response = requests.get(url)

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

url <- "{{baseUrl}}/accounts/authinfo"

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

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

url = URI("{{baseUrl}}/accounts/authinfo")

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

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

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

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

response = conn.get('/baseUrl/accounts/authinfo') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts/authinfo
http GET {{baseUrl}}/accounts/authinfo
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/authinfo
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/authinfo")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
POST content.accounts.claimwebsite
{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite
QUERY PARAMS

merchantId
accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite");

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

(client/post "{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite")
require "http/client"

url = "{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite"

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

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

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

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

}
POST /baseUrl/:merchantId/accounts/:accountId/claimwebsite HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite")
  .asString();
const data = null;

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

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

xhr.open('POST', '{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/accounts/:accountId/claimwebsite',
  headers: {}
};

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite'
};

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

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

const req = unirest('POST', '{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite');

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}}/:merchantId/accounts/:accountId/claimwebsite'
};

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

const url = '{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite';
const options = {method: 'POST'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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

let uri = Uri.of_string "{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite');

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

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

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

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

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

conn.request("POST", "/baseUrl/:merchantId/accounts/:accountId/claimwebsite")

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

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

url = "{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite"

response = requests.post(url)

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

url <- "{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite"

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

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

url = URI("{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite")

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

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

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

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

response = conn.post('/baseUrl/:merchantId/accounts/:accountId/claimwebsite') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite
http POST {{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/accounts/:accountId/claimwebsite")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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

dataTask.resume()
POST content.accounts.custombatch
{{baseUrl}}/accounts/batch
BODY json

{
  "entries": [
    {
      "account": {
        "adultContent": false,
        "adwordsLinks": [
          {
            "adwordsId": "",
            "status": ""
          }
        ],
        "businessInformation": {
          "address": {
            "country": "",
            "locality": "",
            "postalCode": "",
            "region": "",
            "streetAddress": ""
          },
          "customerService": {
            "email": "",
            "phoneNumber": "",
            "url": ""
          },
          "koreanBusinessRegistrationNumber": "",
          "phoneNumber": ""
        },
        "googleMyBusinessLink": {
          "gmbEmail": "",
          "status": ""
        },
        "id": "",
        "kind": "",
        "name": "",
        "reviewsUrl": "",
        "sellerId": "",
        "users": [
          {
            "admin": false,
            "emailAddress": "",
            "orderManager": false,
            "paymentsAnalyst": false,
            "paymentsManager": false
          }
        ],
        "websiteUrl": "",
        "youtubeChannelLinks": [
          {
            "channelId": "",
            "status": ""
          }
        ]
      },
      "accountId": "",
      "batchId": 0,
      "force": false,
      "labelIds": [],
      "linkRequest": {
        "action": "",
        "linkType": "",
        "linkedAccountId": ""
      },
      "merchantId": "",
      "method": "",
      "overwrite": false
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/accounts/batch" {:content-type :json
                                                           :form-params {:entries [{:account {:adultContent false
                                                                                              :adwordsLinks [{:adwordsId ""
                                                                                                              :status ""}]
                                                                                              :businessInformation {:address {:country ""
                                                                                                                              :locality ""
                                                                                                                              :postalCode ""
                                                                                                                              :region ""
                                                                                                                              :streetAddress ""}
                                                                                                                    :customerService {:email ""
                                                                                                                                      :phoneNumber ""
                                                                                                                                      :url ""}
                                                                                                                    :koreanBusinessRegistrationNumber ""
                                                                                                                    :phoneNumber ""}
                                                                                              :googleMyBusinessLink {:gmbEmail ""
                                                                                                                     :status ""}
                                                                                              :id ""
                                                                                              :kind ""
                                                                                              :name ""
                                                                                              :reviewsUrl ""
                                                                                              :sellerId ""
                                                                                              :users [{:admin false
                                                                                                       :emailAddress ""
                                                                                                       :orderManager false
                                                                                                       :paymentsAnalyst false
                                                                                                       :paymentsManager false}]
                                                                                              :websiteUrl ""
                                                                                              :youtubeChannelLinks [{:channelId ""
                                                                                                                     :status ""}]}
                                                                                    :accountId ""
                                                                                    :batchId 0
                                                                                    :force false
                                                                                    :labelIds []
                                                                                    :linkRequest {:action ""
                                                                                                  :linkType ""
                                                                                                  :linkedAccountId ""}
                                                                                    :merchantId ""
                                                                                    :method ""
                                                                                    :overwrite false}]}})
require "http/client"

url = "{{baseUrl}}/accounts/batch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/accounts/batch"),
    Content = new StringContent("{\n  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/batch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/accounts/batch"

	payload := strings.NewReader("{\n  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}")

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

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

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

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

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

}
POST /baseUrl/accounts/batch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1468

{
  "entries": [
    {
      "account": {
        "adultContent": false,
        "adwordsLinks": [
          {
            "adwordsId": "",
            "status": ""
          }
        ],
        "businessInformation": {
          "address": {
            "country": "",
            "locality": "",
            "postalCode": "",
            "region": "",
            "streetAddress": ""
          },
          "customerService": {
            "email": "",
            "phoneNumber": "",
            "url": ""
          },
          "koreanBusinessRegistrationNumber": "",
          "phoneNumber": ""
        },
        "googleMyBusinessLink": {
          "gmbEmail": "",
          "status": ""
        },
        "id": "",
        "kind": "",
        "name": "",
        "reviewsUrl": "",
        "sellerId": "",
        "users": [
          {
            "admin": false,
            "emailAddress": "",
            "orderManager": false,
            "paymentsAnalyst": false,
            "paymentsManager": false
          }
        ],
        "websiteUrl": "",
        "youtubeChannelLinks": [
          {
            "channelId": "",
            "status": ""
          }
        ]
      },
      "accountId": "",
      "batchId": 0,
      "force": false,
      "labelIds": [],
      "linkRequest": {
        "action": "",
        "linkType": "",
        "linkedAccountId": ""
      },
      "merchantId": "",
      "method": "",
      "overwrite": false
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/accounts/batch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/batch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/batch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/accounts/batch")
  .header("content-type", "application/json")
  .body("{\n  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  entries: [
    {
      account: {
        adultContent: false,
        adwordsLinks: [
          {
            adwordsId: '',
            status: ''
          }
        ],
        businessInformation: {
          address: {
            country: '',
            locality: '',
            postalCode: '',
            region: '',
            streetAddress: ''
          },
          customerService: {
            email: '',
            phoneNumber: '',
            url: ''
          },
          koreanBusinessRegistrationNumber: '',
          phoneNumber: ''
        },
        googleMyBusinessLink: {
          gmbEmail: '',
          status: ''
        },
        id: '',
        kind: '',
        name: '',
        reviewsUrl: '',
        sellerId: '',
        users: [
          {
            admin: false,
            emailAddress: '',
            orderManager: false,
            paymentsAnalyst: false,
            paymentsManager: false
          }
        ],
        websiteUrl: '',
        youtubeChannelLinks: [
          {
            channelId: '',
            status: ''
          }
        ]
      },
      accountId: '',
      batchId: 0,
      force: false,
      labelIds: [],
      linkRequest: {
        action: '',
        linkType: '',
        linkedAccountId: ''
      },
      merchantId: '',
      method: '',
      overwrite: false
    }
  ]
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        account: {
          adultContent: false,
          adwordsLinks: [{adwordsId: '', status: ''}],
          businessInformation: {
            address: {country: '', locality: '', postalCode: '', region: '', streetAddress: ''},
            customerService: {email: '', phoneNumber: '', url: ''},
            koreanBusinessRegistrationNumber: '',
            phoneNumber: ''
          },
          googleMyBusinessLink: {gmbEmail: '', status: ''},
          id: '',
          kind: '',
          name: '',
          reviewsUrl: '',
          sellerId: '',
          users: [
            {
              admin: false,
              emailAddress: '',
              orderManager: false,
              paymentsAnalyst: false,
              paymentsManager: false
            }
          ],
          websiteUrl: '',
          youtubeChannelLinks: [{channelId: '', status: ''}]
        },
        accountId: '',
        batchId: 0,
        force: false,
        labelIds: [],
        linkRequest: {action: '', linkType: '', linkedAccountId: ''},
        merchantId: '',
        method: '',
        overwrite: false
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"account":{"adultContent":false,"adwordsLinks":[{"adwordsId":"","status":""}],"businessInformation":{"address":{"country":"","locality":"","postalCode":"","region":"","streetAddress":""},"customerService":{"email":"","phoneNumber":"","url":""},"koreanBusinessRegistrationNumber":"","phoneNumber":""},"googleMyBusinessLink":{"gmbEmail":"","status":""},"id":"","kind":"","name":"","reviewsUrl":"","sellerId":"","users":[{"admin":false,"emailAddress":"","orderManager":false,"paymentsAnalyst":false,"paymentsManager":false}],"websiteUrl":"","youtubeChannelLinks":[{"channelId":"","status":""}]},"accountId":"","batchId":0,"force":false,"labelIds":[],"linkRequest":{"action":"","linkType":"","linkedAccountId":""},"merchantId":"","method":"","overwrite":false}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/batch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entries": [\n    {\n      "account": {\n        "adultContent": false,\n        "adwordsLinks": [\n          {\n            "adwordsId": "",\n            "status": ""\n          }\n        ],\n        "businessInformation": {\n          "address": {\n            "country": "",\n            "locality": "",\n            "postalCode": "",\n            "region": "",\n            "streetAddress": ""\n          },\n          "customerService": {\n            "email": "",\n            "phoneNumber": "",\n            "url": ""\n          },\n          "koreanBusinessRegistrationNumber": "",\n          "phoneNumber": ""\n        },\n        "googleMyBusinessLink": {\n          "gmbEmail": "",\n          "status": ""\n        },\n        "id": "",\n        "kind": "",\n        "name": "",\n        "reviewsUrl": "",\n        "sellerId": "",\n        "users": [\n          {\n            "admin": false,\n            "emailAddress": "",\n            "orderManager": false,\n            "paymentsAnalyst": false,\n            "paymentsManager": false\n          }\n        ],\n        "websiteUrl": "",\n        "youtubeChannelLinks": [\n          {\n            "channelId": "",\n            "status": ""\n          }\n        ]\n      },\n      "accountId": "",\n      "batchId": 0,\n      "force": false,\n      "labelIds": [],\n      "linkRequest": {\n        "action": "",\n        "linkType": "",\n        "linkedAccountId": ""\n      },\n      "merchantId": "",\n      "method": "",\n      "overwrite": false\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/accounts/batch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/batch',
  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({
  entries: [
    {
      account: {
        adultContent: false,
        adwordsLinks: [{adwordsId: '', status: ''}],
        businessInformation: {
          address: {country: '', locality: '', postalCode: '', region: '', streetAddress: ''},
          customerService: {email: '', phoneNumber: '', url: ''},
          koreanBusinessRegistrationNumber: '',
          phoneNumber: ''
        },
        googleMyBusinessLink: {gmbEmail: '', status: ''},
        id: '',
        kind: '',
        name: '',
        reviewsUrl: '',
        sellerId: '',
        users: [
          {
            admin: false,
            emailAddress: '',
            orderManager: false,
            paymentsAnalyst: false,
            paymentsManager: false
          }
        ],
        websiteUrl: '',
        youtubeChannelLinks: [{channelId: '', status: ''}]
      },
      accountId: '',
      batchId: 0,
      force: false,
      labelIds: [],
      linkRequest: {action: '', linkType: '', linkedAccountId: ''},
      merchantId: '',
      method: '',
      overwrite: false
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts/batch',
  headers: {'content-type': 'application/json'},
  body: {
    entries: [
      {
        account: {
          adultContent: false,
          adwordsLinks: [{adwordsId: '', status: ''}],
          businessInformation: {
            address: {country: '', locality: '', postalCode: '', region: '', streetAddress: ''},
            customerService: {email: '', phoneNumber: '', url: ''},
            koreanBusinessRegistrationNumber: '',
            phoneNumber: ''
          },
          googleMyBusinessLink: {gmbEmail: '', status: ''},
          id: '',
          kind: '',
          name: '',
          reviewsUrl: '',
          sellerId: '',
          users: [
            {
              admin: false,
              emailAddress: '',
              orderManager: false,
              paymentsAnalyst: false,
              paymentsManager: false
            }
          ],
          websiteUrl: '',
          youtubeChannelLinks: [{channelId: '', status: ''}]
        },
        accountId: '',
        batchId: 0,
        force: false,
        labelIds: [],
        linkRequest: {action: '', linkType: '', linkedAccountId: ''},
        merchantId: '',
        method: '',
        overwrite: false
      }
    ]
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  entries: [
    {
      account: {
        adultContent: false,
        adwordsLinks: [
          {
            adwordsId: '',
            status: ''
          }
        ],
        businessInformation: {
          address: {
            country: '',
            locality: '',
            postalCode: '',
            region: '',
            streetAddress: ''
          },
          customerService: {
            email: '',
            phoneNumber: '',
            url: ''
          },
          koreanBusinessRegistrationNumber: '',
          phoneNumber: ''
        },
        googleMyBusinessLink: {
          gmbEmail: '',
          status: ''
        },
        id: '',
        kind: '',
        name: '',
        reviewsUrl: '',
        sellerId: '',
        users: [
          {
            admin: false,
            emailAddress: '',
            orderManager: false,
            paymentsAnalyst: false,
            paymentsManager: false
          }
        ],
        websiteUrl: '',
        youtubeChannelLinks: [
          {
            channelId: '',
            status: ''
          }
        ]
      },
      accountId: '',
      batchId: 0,
      force: false,
      labelIds: [],
      linkRequest: {
        action: '',
        linkType: '',
        linkedAccountId: ''
      },
      merchantId: '',
      method: '',
      overwrite: false
    }
  ]
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        account: {
          adultContent: false,
          adwordsLinks: [{adwordsId: '', status: ''}],
          businessInformation: {
            address: {country: '', locality: '', postalCode: '', region: '', streetAddress: ''},
            customerService: {email: '', phoneNumber: '', url: ''},
            koreanBusinessRegistrationNumber: '',
            phoneNumber: ''
          },
          googleMyBusinessLink: {gmbEmail: '', status: ''},
          id: '',
          kind: '',
          name: '',
          reviewsUrl: '',
          sellerId: '',
          users: [
            {
              admin: false,
              emailAddress: '',
              orderManager: false,
              paymentsAnalyst: false,
              paymentsManager: false
            }
          ],
          websiteUrl: '',
          youtubeChannelLinks: [{channelId: '', status: ''}]
        },
        accountId: '',
        batchId: 0,
        force: false,
        labelIds: [],
        linkRequest: {action: '', linkType: '', linkedAccountId: ''},
        merchantId: '',
        method: '',
        overwrite: false
      }
    ]
  }
};

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

const url = '{{baseUrl}}/accounts/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"account":{"adultContent":false,"adwordsLinks":[{"adwordsId":"","status":""}],"businessInformation":{"address":{"country":"","locality":"","postalCode":"","region":"","streetAddress":""},"customerService":{"email":"","phoneNumber":"","url":""},"koreanBusinessRegistrationNumber":"","phoneNumber":""},"googleMyBusinessLink":{"gmbEmail":"","status":""},"id":"","kind":"","name":"","reviewsUrl":"","sellerId":"","users":[{"admin":false,"emailAddress":"","orderManager":false,"paymentsAnalyst":false,"paymentsManager":false}],"websiteUrl":"","youtubeChannelLinks":[{"channelId":"","status":""}]},"accountId":"","batchId":0,"force":false,"labelIds":[],"linkRequest":{"action":"","linkType":"","linkedAccountId":""},"merchantId":"","method":"","overwrite":false}]}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"entries": @[ @{ @"account": @{ @"adultContent": @NO, @"adwordsLinks": @[ @{ @"adwordsId": @"", @"status": @"" } ], @"businessInformation": @{ @"address": @{ @"country": @"", @"locality": @"", @"postalCode": @"", @"region": @"", @"streetAddress": @"" }, @"customerService": @{ @"email": @"", @"phoneNumber": @"", @"url": @"" }, @"koreanBusinessRegistrationNumber": @"", @"phoneNumber": @"" }, @"googleMyBusinessLink": @{ @"gmbEmail": @"", @"status": @"" }, @"id": @"", @"kind": @"", @"name": @"", @"reviewsUrl": @"", @"sellerId": @"", @"users": @[ @{ @"admin": @NO, @"emailAddress": @"", @"orderManager": @NO, @"paymentsAnalyst": @NO, @"paymentsManager": @NO } ], @"websiteUrl": @"", @"youtubeChannelLinks": @[ @{ @"channelId": @"", @"status": @"" } ] }, @"accountId": @"", @"batchId": @0, @"force": @NO, @"labelIds": @[  ], @"linkRequest": @{ @"action": @"", @"linkType": @"", @"linkedAccountId": @"" }, @"merchantId": @"", @"method": @"", @"overwrite": @NO } ] };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/accounts/batch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/batch",
  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([
    'entries' => [
        [
                'account' => [
                                'adultContent' => null,
                                'adwordsLinks' => [
                                                                [
                                                                                                                                'adwordsId' => '',
                                                                                                                                'status' => ''
                                                                ]
                                ],
                                'businessInformation' => [
                                                                'address' => [
                                                                                                                                'country' => '',
                                                                                                                                'locality' => '',
                                                                                                                                'postalCode' => '',
                                                                                                                                'region' => '',
                                                                                                                                'streetAddress' => ''
                                                                ],
                                                                'customerService' => [
                                                                                                                                'email' => '',
                                                                                                                                'phoneNumber' => '',
                                                                                                                                'url' => ''
                                                                ],
                                                                'koreanBusinessRegistrationNumber' => '',
                                                                'phoneNumber' => ''
                                ],
                                'googleMyBusinessLink' => [
                                                                'gmbEmail' => '',
                                                                'status' => ''
                                ],
                                'id' => '',
                                'kind' => '',
                                'name' => '',
                                'reviewsUrl' => '',
                                'sellerId' => '',
                                'users' => [
                                                                [
                                                                                                                                'admin' => null,
                                                                                                                                'emailAddress' => '',
                                                                                                                                'orderManager' => null,
                                                                                                                                'paymentsAnalyst' => null,
                                                                                                                                'paymentsManager' => null
                                                                ]
                                ],
                                'websiteUrl' => '',
                                'youtubeChannelLinks' => [
                                                                [
                                                                                                                                'channelId' => '',
                                                                                                                                'status' => ''
                                                                ]
                                ]
                ],
                'accountId' => '',
                'batchId' => 0,
                'force' => null,
                'labelIds' => [
                                
                ],
                'linkRequest' => [
                                'action' => '',
                                'linkType' => '',
                                'linkedAccountId' => ''
                ],
                'merchantId' => '',
                'method' => '',
                'overwrite' => null
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/accounts/batch', [
  'body' => '{
  "entries": [
    {
      "account": {
        "adultContent": false,
        "adwordsLinks": [
          {
            "adwordsId": "",
            "status": ""
          }
        ],
        "businessInformation": {
          "address": {
            "country": "",
            "locality": "",
            "postalCode": "",
            "region": "",
            "streetAddress": ""
          },
          "customerService": {
            "email": "",
            "phoneNumber": "",
            "url": ""
          },
          "koreanBusinessRegistrationNumber": "",
          "phoneNumber": ""
        },
        "googleMyBusinessLink": {
          "gmbEmail": "",
          "status": ""
        },
        "id": "",
        "kind": "",
        "name": "",
        "reviewsUrl": "",
        "sellerId": "",
        "users": [
          {
            "admin": false,
            "emailAddress": "",
            "orderManager": false,
            "paymentsAnalyst": false,
            "paymentsManager": false
          }
        ],
        "websiteUrl": "",
        "youtubeChannelLinks": [
          {
            "channelId": "",
            "status": ""
          }
        ]
      },
      "accountId": "",
      "batchId": 0,
      "force": false,
      "labelIds": [],
      "linkRequest": {
        "action": "",
        "linkType": "",
        "linkedAccountId": ""
      },
      "merchantId": "",
      "method": "",
      "overwrite": false
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entries' => [
    [
        'account' => [
                'adultContent' => null,
                'adwordsLinks' => [
                                [
                                                                'adwordsId' => '',
                                                                'status' => ''
                                ]
                ],
                'businessInformation' => [
                                'address' => [
                                                                'country' => '',
                                                                'locality' => '',
                                                                'postalCode' => '',
                                                                'region' => '',
                                                                'streetAddress' => ''
                                ],
                                'customerService' => [
                                                                'email' => '',
                                                                'phoneNumber' => '',
                                                                'url' => ''
                                ],
                                'koreanBusinessRegistrationNumber' => '',
                                'phoneNumber' => ''
                ],
                'googleMyBusinessLink' => [
                                'gmbEmail' => '',
                                'status' => ''
                ],
                'id' => '',
                'kind' => '',
                'name' => '',
                'reviewsUrl' => '',
                'sellerId' => '',
                'users' => [
                                [
                                                                'admin' => null,
                                                                'emailAddress' => '',
                                                                'orderManager' => null,
                                                                'paymentsAnalyst' => null,
                                                                'paymentsManager' => null
                                ]
                ],
                'websiteUrl' => '',
                'youtubeChannelLinks' => [
                                [
                                                                'channelId' => '',
                                                                'status' => ''
                                ]
                ]
        ],
        'accountId' => '',
        'batchId' => 0,
        'force' => null,
        'labelIds' => [
                
        ],
        'linkRequest' => [
                'action' => '',
                'linkType' => '',
                'linkedAccountId' => ''
        ],
        'merchantId' => '',
        'method' => '',
        'overwrite' => null
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'entries' => [
    [
        'account' => [
                'adultContent' => null,
                'adwordsLinks' => [
                                [
                                                                'adwordsId' => '',
                                                                'status' => ''
                                ]
                ],
                'businessInformation' => [
                                'address' => [
                                                                'country' => '',
                                                                'locality' => '',
                                                                'postalCode' => '',
                                                                'region' => '',
                                                                'streetAddress' => ''
                                ],
                                'customerService' => [
                                                                'email' => '',
                                                                'phoneNumber' => '',
                                                                'url' => ''
                                ],
                                'koreanBusinessRegistrationNumber' => '',
                                'phoneNumber' => ''
                ],
                'googleMyBusinessLink' => [
                                'gmbEmail' => '',
                                'status' => ''
                ],
                'id' => '',
                'kind' => '',
                'name' => '',
                'reviewsUrl' => '',
                'sellerId' => '',
                'users' => [
                                [
                                                                'admin' => null,
                                                                'emailAddress' => '',
                                                                'orderManager' => null,
                                                                'paymentsAnalyst' => null,
                                                                'paymentsManager' => null
                                ]
                ],
                'websiteUrl' => '',
                'youtubeChannelLinks' => [
                                [
                                                                'channelId' => '',
                                                                'status' => ''
                                ]
                ]
        ],
        'accountId' => '',
        'batchId' => 0,
        'force' => null,
        'labelIds' => [
                
        ],
        'linkRequest' => [
                'action' => '',
                'linkType' => '',
                'linkedAccountId' => ''
        ],
        'merchantId' => '',
        'method' => '',
        'overwrite' => null
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/accounts/batch');
$request->setRequestMethod('POST');
$request->setBody($body);

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

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "account": {
        "adultContent": false,
        "adwordsLinks": [
          {
            "adwordsId": "",
            "status": ""
          }
        ],
        "businessInformation": {
          "address": {
            "country": "",
            "locality": "",
            "postalCode": "",
            "region": "",
            "streetAddress": ""
          },
          "customerService": {
            "email": "",
            "phoneNumber": "",
            "url": ""
          },
          "koreanBusinessRegistrationNumber": "",
          "phoneNumber": ""
        },
        "googleMyBusinessLink": {
          "gmbEmail": "",
          "status": ""
        },
        "id": "",
        "kind": "",
        "name": "",
        "reviewsUrl": "",
        "sellerId": "",
        "users": [
          {
            "admin": false,
            "emailAddress": "",
            "orderManager": false,
            "paymentsAnalyst": false,
            "paymentsManager": false
          }
        ],
        "websiteUrl": "",
        "youtubeChannelLinks": [
          {
            "channelId": "",
            "status": ""
          }
        ]
      },
      "accountId": "",
      "batchId": 0,
      "force": false,
      "labelIds": [],
      "linkRequest": {
        "action": "",
        "linkType": "",
        "linkedAccountId": ""
      },
      "merchantId": "",
      "method": "",
      "overwrite": false
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "account": {
        "adultContent": false,
        "adwordsLinks": [
          {
            "adwordsId": "",
            "status": ""
          }
        ],
        "businessInformation": {
          "address": {
            "country": "",
            "locality": "",
            "postalCode": "",
            "region": "",
            "streetAddress": ""
          },
          "customerService": {
            "email": "",
            "phoneNumber": "",
            "url": ""
          },
          "koreanBusinessRegistrationNumber": "",
          "phoneNumber": ""
        },
        "googleMyBusinessLink": {
          "gmbEmail": "",
          "status": ""
        },
        "id": "",
        "kind": "",
        "name": "",
        "reviewsUrl": "",
        "sellerId": "",
        "users": [
          {
            "admin": false,
            "emailAddress": "",
            "orderManager": false,
            "paymentsAnalyst": false,
            "paymentsManager": false
          }
        ],
        "websiteUrl": "",
        "youtubeChannelLinks": [
          {
            "channelId": "",
            "status": ""
          }
        ]
      },
      "accountId": "",
      "batchId": 0,
      "force": false,
      "labelIds": [],
      "linkRequest": {
        "action": "",
        "linkType": "",
        "linkedAccountId": ""
      },
      "merchantId": "",
      "method": "",
      "overwrite": false
    }
  ]
}'
import http.client

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

payload = "{\n  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}"

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

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

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

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

url = "{{baseUrl}}/accounts/batch"

payload = { "entries": [
        {
            "account": {
                "adultContent": False,
                "adwordsLinks": [
                    {
                        "adwordsId": "",
                        "status": ""
                    }
                ],
                "businessInformation": {
                    "address": {
                        "country": "",
                        "locality": "",
                        "postalCode": "",
                        "region": "",
                        "streetAddress": ""
                    },
                    "customerService": {
                        "email": "",
                        "phoneNumber": "",
                        "url": ""
                    },
                    "koreanBusinessRegistrationNumber": "",
                    "phoneNumber": ""
                },
                "googleMyBusinessLink": {
                    "gmbEmail": "",
                    "status": ""
                },
                "id": "",
                "kind": "",
                "name": "",
                "reviewsUrl": "",
                "sellerId": "",
                "users": [
                    {
                        "admin": False,
                        "emailAddress": "",
                        "orderManager": False,
                        "paymentsAnalyst": False,
                        "paymentsManager": False
                    }
                ],
                "websiteUrl": "",
                "youtubeChannelLinks": [
                    {
                        "channelId": "",
                        "status": ""
                    }
                ]
            },
            "accountId": "",
            "batchId": 0,
            "force": False,
            "labelIds": [],
            "linkRequest": {
                "action": "",
                "linkType": "",
                "linkedAccountId": ""
            },
            "merchantId": "",
            "method": "",
            "overwrite": False
        }
    ] }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/accounts/batch"

payload <- "{\n  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/accounts/batch")

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  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}"

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

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

response = conn.post('/baseUrl/accounts/batch') do |req|
  req.body = "{\n  \"entries\": [\n    {\n      \"account\": {\n        \"adultContent\": false,\n        \"adwordsLinks\": [\n          {\n            \"adwordsId\": \"\",\n            \"status\": \"\"\n          }\n        ],\n        \"businessInformation\": {\n          \"address\": {\n            \"country\": \"\",\n            \"locality\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\"\n          },\n          \"customerService\": {\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"url\": \"\"\n          },\n          \"koreanBusinessRegistrationNumber\": \"\",\n          \"phoneNumber\": \"\"\n        },\n        \"googleMyBusinessLink\": {\n          \"gmbEmail\": \"\",\n          \"status\": \"\"\n        },\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"reviewsUrl\": \"\",\n        \"sellerId\": \"\",\n        \"users\": [\n          {\n            \"admin\": false,\n            \"emailAddress\": \"\",\n            \"orderManager\": false,\n            \"paymentsAnalyst\": false,\n            \"paymentsManager\": false\n          }\n        ],\n        \"websiteUrl\": \"\",\n        \"youtubeChannelLinks\": [\n          {\n            \"channelId\": \"\",\n            \"status\": \"\"\n          }\n        ]\n      },\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"force\": false,\n      \"labelIds\": [],\n      \"linkRequest\": {\n        \"action\": \"\",\n        \"linkType\": \"\",\n        \"linkedAccountId\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"overwrite\": false\n    }\n  ]\n}"
end

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

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

    let payload = json!({"entries": (
            json!({
                "account": json!({
                    "adultContent": false,
                    "adwordsLinks": (
                        json!({
                            "adwordsId": "",
                            "status": ""
                        })
                    ),
                    "businessInformation": json!({
                        "address": json!({
                            "country": "",
                            "locality": "",
                            "postalCode": "",
                            "region": "",
                            "streetAddress": ""
                        }),
                        "customerService": json!({
                            "email": "",
                            "phoneNumber": "",
                            "url": ""
                        }),
                        "koreanBusinessRegistrationNumber": "",
                        "phoneNumber": ""
                    }),
                    "googleMyBusinessLink": json!({
                        "gmbEmail": "",
                        "status": ""
                    }),
                    "id": "",
                    "kind": "",
                    "name": "",
                    "reviewsUrl": "",
                    "sellerId": "",
                    "users": (
                        json!({
                            "admin": false,
                            "emailAddress": "",
                            "orderManager": false,
                            "paymentsAnalyst": false,
                            "paymentsManager": false
                        })
                    ),
                    "websiteUrl": "",
                    "youtubeChannelLinks": (
                        json!({
                            "channelId": "",
                            "status": ""
                        })
                    )
                }),
                "accountId": "",
                "batchId": 0,
                "force": false,
                "labelIds": (),
                "linkRequest": json!({
                    "action": "",
                    "linkType": "",
                    "linkedAccountId": ""
                }),
                "merchantId": "",
                "method": "",
                "overwrite": false
            })
        )});

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/accounts/batch \
  --header 'content-type: application/json' \
  --data '{
  "entries": [
    {
      "account": {
        "adultContent": false,
        "adwordsLinks": [
          {
            "adwordsId": "",
            "status": ""
          }
        ],
        "businessInformation": {
          "address": {
            "country": "",
            "locality": "",
            "postalCode": "",
            "region": "",
            "streetAddress": ""
          },
          "customerService": {
            "email": "",
            "phoneNumber": "",
            "url": ""
          },
          "koreanBusinessRegistrationNumber": "",
          "phoneNumber": ""
        },
        "googleMyBusinessLink": {
          "gmbEmail": "",
          "status": ""
        },
        "id": "",
        "kind": "",
        "name": "",
        "reviewsUrl": "",
        "sellerId": "",
        "users": [
          {
            "admin": false,
            "emailAddress": "",
            "orderManager": false,
            "paymentsAnalyst": false,
            "paymentsManager": false
          }
        ],
        "websiteUrl": "",
        "youtubeChannelLinks": [
          {
            "channelId": "",
            "status": ""
          }
        ]
      },
      "accountId": "",
      "batchId": 0,
      "force": false,
      "labelIds": [],
      "linkRequest": {
        "action": "",
        "linkType": "",
        "linkedAccountId": ""
      },
      "merchantId": "",
      "method": "",
      "overwrite": false
    }
  ]
}'
echo '{
  "entries": [
    {
      "account": {
        "adultContent": false,
        "adwordsLinks": [
          {
            "adwordsId": "",
            "status": ""
          }
        ],
        "businessInformation": {
          "address": {
            "country": "",
            "locality": "",
            "postalCode": "",
            "region": "",
            "streetAddress": ""
          },
          "customerService": {
            "email": "",
            "phoneNumber": "",
            "url": ""
          },
          "koreanBusinessRegistrationNumber": "",
          "phoneNumber": ""
        },
        "googleMyBusinessLink": {
          "gmbEmail": "",
          "status": ""
        },
        "id": "",
        "kind": "",
        "name": "",
        "reviewsUrl": "",
        "sellerId": "",
        "users": [
          {
            "admin": false,
            "emailAddress": "",
            "orderManager": false,
            "paymentsAnalyst": false,
            "paymentsManager": false
          }
        ],
        "websiteUrl": "",
        "youtubeChannelLinks": [
          {
            "channelId": "",
            "status": ""
          }
        ]
      },
      "accountId": "",
      "batchId": 0,
      "force": false,
      "labelIds": [],
      "linkRequest": {
        "action": "",
        "linkType": "",
        "linkedAccountId": ""
      },
      "merchantId": "",
      "method": "",
      "overwrite": false
    }
  ]
}' |  \
  http POST {{baseUrl}}/accounts/batch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entries": [\n    {\n      "account": {\n        "adultContent": false,\n        "adwordsLinks": [\n          {\n            "adwordsId": "",\n            "status": ""\n          }\n        ],\n        "businessInformation": {\n          "address": {\n            "country": "",\n            "locality": "",\n            "postalCode": "",\n            "region": "",\n            "streetAddress": ""\n          },\n          "customerService": {\n            "email": "",\n            "phoneNumber": "",\n            "url": ""\n          },\n          "koreanBusinessRegistrationNumber": "",\n          "phoneNumber": ""\n        },\n        "googleMyBusinessLink": {\n          "gmbEmail": "",\n          "status": ""\n        },\n        "id": "",\n        "kind": "",\n        "name": "",\n        "reviewsUrl": "",\n        "sellerId": "",\n        "users": [\n          {\n            "admin": false,\n            "emailAddress": "",\n            "orderManager": false,\n            "paymentsAnalyst": false,\n            "paymentsManager": false\n          }\n        ],\n        "websiteUrl": "",\n        "youtubeChannelLinks": [\n          {\n            "channelId": "",\n            "status": ""\n          }\n        ]\n      },\n      "accountId": "",\n      "batchId": 0,\n      "force": false,\n      "labelIds": [],\n      "linkRequest": {\n        "action": "",\n        "linkType": "",\n        "linkedAccountId": ""\n      },\n      "merchantId": "",\n      "method": "",\n      "overwrite": false\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/accounts/batch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["entries": [
    [
      "account": [
        "adultContent": false,
        "adwordsLinks": [
          [
            "adwordsId": "",
            "status": ""
          ]
        ],
        "businessInformation": [
          "address": [
            "country": "",
            "locality": "",
            "postalCode": "",
            "region": "",
            "streetAddress": ""
          ],
          "customerService": [
            "email": "",
            "phoneNumber": "",
            "url": ""
          ],
          "koreanBusinessRegistrationNumber": "",
          "phoneNumber": ""
        ],
        "googleMyBusinessLink": [
          "gmbEmail": "",
          "status": ""
        ],
        "id": "",
        "kind": "",
        "name": "",
        "reviewsUrl": "",
        "sellerId": "",
        "users": [
          [
            "admin": false,
            "emailAddress": "",
            "orderManager": false,
            "paymentsAnalyst": false,
            "paymentsManager": false
          ]
        ],
        "websiteUrl": "",
        "youtubeChannelLinks": [
          [
            "channelId": "",
            "status": ""
          ]
        ]
      ],
      "accountId": "",
      "batchId": 0,
      "force": false,
      "labelIds": [],
      "linkRequest": [
        "action": "",
        "linkType": "",
        "linkedAccountId": ""
      ],
      "merchantId": "",
      "method": "",
      "overwrite": false
    ]
  ]] as [String : Any]

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

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

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

dataTask.resume()
DELETE content.accounts.delete
{{baseUrl}}/:merchantId/accounts/:accountId
QUERY PARAMS

merchantId
accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/accounts/:accountId");

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

(client/delete "{{baseUrl}}/:merchantId/accounts/:accountId")
require "http/client"

url = "{{baseUrl}}/:merchantId/accounts/:accountId"

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

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

func main() {

	url := "{{baseUrl}}/:merchantId/accounts/:accountId"

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

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

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

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

}
DELETE /baseUrl/:merchantId/accounts/:accountId HTTP/1.1
Host: example.com

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

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounts/:accountId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:merchantId/accounts/:accountId")
  .asString();
const data = null;

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

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

xhr.open('DELETE', '{{baseUrl}}/:merchantId/accounts/:accountId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:merchantId/accounts/:accountId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/accounts/:accountId';
const options = {method: 'DELETE'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounts/:accountId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/accounts/:accountId',
  headers: {}
};

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

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:merchantId/accounts/:accountId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/:merchantId/accounts/:accountId');

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:merchantId/accounts/:accountId'
};

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

const url = '{{baseUrl}}/:merchantId/accounts/:accountId';
const options = {method: 'DELETE'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/accounts/:accountId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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

let uri = Uri.of_string "{{baseUrl}}/:merchantId/accounts/:accountId" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:merchantId/accounts/:accountId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/accounts/:accountId');
$request->setMethod(HTTP_METH_DELETE);

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

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

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

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

conn.request("DELETE", "/baseUrl/:merchantId/accounts/:accountId")

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

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

url = "{{baseUrl}}/:merchantId/accounts/:accountId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/:merchantId/accounts/:accountId"

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

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

url = URI("{{baseUrl}}/:merchantId/accounts/:accountId")

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

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

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

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

response = conn.delete('/baseUrl/:merchantId/accounts/:accountId') do |req|
end

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

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

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

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

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:merchantId/accounts/:accountId
http DELETE {{baseUrl}}/:merchantId/accounts/:accountId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:merchantId/accounts/:accountId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/accounts/:accountId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

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

dataTask.resume()
GET content.accounts.get
{{baseUrl}}/:merchantId/accounts/:accountId
QUERY PARAMS

merchantId
accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/accounts/:accountId");

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

(client/get "{{baseUrl}}/:merchantId/accounts/:accountId")
require "http/client"

url = "{{baseUrl}}/:merchantId/accounts/:accountId"

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

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

func main() {

	url := "{{baseUrl}}/:merchantId/accounts/:accountId"

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

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

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

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

}
GET /baseUrl/:merchantId/accounts/:accountId HTTP/1.1
Host: example.com

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

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounts/:accountId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/accounts/:accountId")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/:merchantId/accounts/:accountId');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/accounts/:accountId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/accounts/:accountId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/accounts/:accountId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounts/:accountId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/accounts/:accountId',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/accounts/:accountId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/:merchantId/accounts/:accountId');

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/accounts/:accountId'
};

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

const url = '{{baseUrl}}/:merchantId/accounts/:accountId';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/accounts/:accountId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/:merchantId/accounts/:accountId" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/accounts/:accountId');

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

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

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

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

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

conn.request("GET", "/baseUrl/:merchantId/accounts/:accountId")

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

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

url = "{{baseUrl}}/:merchantId/accounts/:accountId"

response = requests.get(url)

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

url <- "{{baseUrl}}/:merchantId/accounts/:accountId"

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

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

url = URI("{{baseUrl}}/:merchantId/accounts/:accountId")

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

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

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

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

response = conn.get('/baseUrl/:merchantId/accounts/:accountId') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/accounts/:accountId
http GET {{baseUrl}}/:merchantId/accounts/:accountId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/accounts/:accountId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/accounts/:accountId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
POST content.accounts.insert
{{baseUrl}}/:merchantId/accounts
QUERY PARAMS

merchantId
BODY json

{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/:merchantId/accounts" {:content-type :json
                                                                 :form-params {:adultContent false
                                                                               :adwordsLinks [{:adwordsId ""
                                                                                               :status ""}]
                                                                               :businessInformation {:address {:country ""
                                                                                                               :locality ""
                                                                                                               :postalCode ""
                                                                                                               :region ""
                                                                                                               :streetAddress ""}
                                                                                                     :customerService {:email ""
                                                                                                                       :phoneNumber ""
                                                                                                                       :url ""}
                                                                                                     :koreanBusinessRegistrationNumber ""
                                                                                                     :phoneNumber ""}
                                                                               :googleMyBusinessLink {:gmbEmail ""
                                                                                                      :status ""}
                                                                               :id ""
                                                                               :kind ""
                                                                               :name ""
                                                                               :reviewsUrl ""
                                                                               :sellerId ""
                                                                               :users [{:admin false
                                                                                        :emailAddress ""
                                                                                        :orderManager false
                                                                                        :paymentsAnalyst false
                                                                                        :paymentsManager false}]
                                                                               :websiteUrl ""
                                                                               :youtubeChannelLinks [{:channelId ""
                                                                                                      :status ""}]}})
require "http/client"

url = "{{baseUrl}}/:merchantId/accounts"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/accounts"),
    Content = new StringContent("{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/accounts");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:merchantId/accounts"

	payload := strings.NewReader("{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}")

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

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

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

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

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

}
POST /baseUrl/:merchantId/accounts HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 857

{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/accounts")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/accounts"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounts")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/accounts")
  .header("content-type", "application/json")
  .body("{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  adultContent: false,
  adwordsLinks: [
    {
      adwordsId: '',
      status: ''
    }
  ],
  businessInformation: {
    address: {
      country: '',
      locality: '',
      postalCode: '',
      region: '',
      streetAddress: ''
    },
    customerService: {
      email: '',
      phoneNumber: '',
      url: ''
    },
    koreanBusinessRegistrationNumber: '',
    phoneNumber: ''
  },
  googleMyBusinessLink: {
    gmbEmail: '',
    status: ''
  },
  id: '',
  kind: '',
  name: '',
  reviewsUrl: '',
  sellerId: '',
  users: [
    {
      admin: false,
      emailAddress: '',
      orderManager: false,
      paymentsAnalyst: false,
      paymentsManager: false
    }
  ],
  websiteUrl: '',
  youtubeChannelLinks: [
    {
      channelId: '',
      status: ''
    }
  ]
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/accounts',
  headers: {'content-type': 'application/json'},
  data: {
    adultContent: false,
    adwordsLinks: [{adwordsId: '', status: ''}],
    businessInformation: {
      address: {country: '', locality: '', postalCode: '', region: '', streetAddress: ''},
      customerService: {email: '', phoneNumber: '', url: ''},
      koreanBusinessRegistrationNumber: '',
      phoneNumber: ''
    },
    googleMyBusinessLink: {gmbEmail: '', status: ''},
    id: '',
    kind: '',
    name: '',
    reviewsUrl: '',
    sellerId: '',
    users: [
      {
        admin: false,
        emailAddress: '',
        orderManager: false,
        paymentsAnalyst: false,
        paymentsManager: false
      }
    ],
    websiteUrl: '',
    youtubeChannelLinks: [{channelId: '', status: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/accounts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"adultContent":false,"adwordsLinks":[{"adwordsId":"","status":""}],"businessInformation":{"address":{"country":"","locality":"","postalCode":"","region":"","streetAddress":""},"customerService":{"email":"","phoneNumber":"","url":""},"koreanBusinessRegistrationNumber":"","phoneNumber":""},"googleMyBusinessLink":{"gmbEmail":"","status":""},"id":"","kind":"","name":"","reviewsUrl":"","sellerId":"","users":[{"admin":false,"emailAddress":"","orderManager":false,"paymentsAnalyst":false,"paymentsManager":false}],"websiteUrl":"","youtubeChannelLinks":[{"channelId":"","status":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/accounts',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "adultContent": false,\n  "adwordsLinks": [\n    {\n      "adwordsId": "",\n      "status": ""\n    }\n  ],\n  "businessInformation": {\n    "address": {\n      "country": "",\n      "locality": "",\n      "postalCode": "",\n      "region": "",\n      "streetAddress": ""\n    },\n    "customerService": {\n      "email": "",\n      "phoneNumber": "",\n      "url": ""\n    },\n    "koreanBusinessRegistrationNumber": "",\n    "phoneNumber": ""\n  },\n  "googleMyBusinessLink": {\n    "gmbEmail": "",\n    "status": ""\n  },\n  "id": "",\n  "kind": "",\n  "name": "",\n  "reviewsUrl": "",\n  "sellerId": "",\n  "users": [\n    {\n      "admin": false,\n      "emailAddress": "",\n      "orderManager": false,\n      "paymentsAnalyst": false,\n      "paymentsManager": false\n    }\n  ],\n  "websiteUrl": "",\n  "youtubeChannelLinks": [\n    {\n      "channelId": "",\n      "status": ""\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounts")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/accounts',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  adultContent: false,
  adwordsLinks: [{adwordsId: '', status: ''}],
  businessInformation: {
    address: {country: '', locality: '', postalCode: '', region: '', streetAddress: ''},
    customerService: {email: '', phoneNumber: '', url: ''},
    koreanBusinessRegistrationNumber: '',
    phoneNumber: ''
  },
  googleMyBusinessLink: {gmbEmail: '', status: ''},
  id: '',
  kind: '',
  name: '',
  reviewsUrl: '',
  sellerId: '',
  users: [
    {
      admin: false,
      emailAddress: '',
      orderManager: false,
      paymentsAnalyst: false,
      paymentsManager: false
    }
  ],
  websiteUrl: '',
  youtubeChannelLinks: [{channelId: '', status: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/accounts',
  headers: {'content-type': 'application/json'},
  body: {
    adultContent: false,
    adwordsLinks: [{adwordsId: '', status: ''}],
    businessInformation: {
      address: {country: '', locality: '', postalCode: '', region: '', streetAddress: ''},
      customerService: {email: '', phoneNumber: '', url: ''},
      koreanBusinessRegistrationNumber: '',
      phoneNumber: ''
    },
    googleMyBusinessLink: {gmbEmail: '', status: ''},
    id: '',
    kind: '',
    name: '',
    reviewsUrl: '',
    sellerId: '',
    users: [
      {
        admin: false,
        emailAddress: '',
        orderManager: false,
        paymentsAnalyst: false,
        paymentsManager: false
      }
    ],
    websiteUrl: '',
    youtubeChannelLinks: [{channelId: '', status: ''}]
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  adultContent: false,
  adwordsLinks: [
    {
      adwordsId: '',
      status: ''
    }
  ],
  businessInformation: {
    address: {
      country: '',
      locality: '',
      postalCode: '',
      region: '',
      streetAddress: ''
    },
    customerService: {
      email: '',
      phoneNumber: '',
      url: ''
    },
    koreanBusinessRegistrationNumber: '',
    phoneNumber: ''
  },
  googleMyBusinessLink: {
    gmbEmail: '',
    status: ''
  },
  id: '',
  kind: '',
  name: '',
  reviewsUrl: '',
  sellerId: '',
  users: [
    {
      admin: false,
      emailAddress: '',
      orderManager: false,
      paymentsAnalyst: false,
      paymentsManager: false
    }
  ],
  websiteUrl: '',
  youtubeChannelLinks: [
    {
      channelId: '',
      status: ''
    }
  ]
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/accounts',
  headers: {'content-type': 'application/json'},
  data: {
    adultContent: false,
    adwordsLinks: [{adwordsId: '', status: ''}],
    businessInformation: {
      address: {country: '', locality: '', postalCode: '', region: '', streetAddress: ''},
      customerService: {email: '', phoneNumber: '', url: ''},
      koreanBusinessRegistrationNumber: '',
      phoneNumber: ''
    },
    googleMyBusinessLink: {gmbEmail: '', status: ''},
    id: '',
    kind: '',
    name: '',
    reviewsUrl: '',
    sellerId: '',
    users: [
      {
        admin: false,
        emailAddress: '',
        orderManager: false,
        paymentsAnalyst: false,
        paymentsManager: false
      }
    ],
    websiteUrl: '',
    youtubeChannelLinks: [{channelId: '', status: ''}]
  }
};

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

const url = '{{baseUrl}}/:merchantId/accounts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"adultContent":false,"adwordsLinks":[{"adwordsId":"","status":""}],"businessInformation":{"address":{"country":"","locality":"","postalCode":"","region":"","streetAddress":""},"customerService":{"email":"","phoneNumber":"","url":""},"koreanBusinessRegistrationNumber":"","phoneNumber":""},"googleMyBusinessLink":{"gmbEmail":"","status":""},"id":"","kind":"","name":"","reviewsUrl":"","sellerId":"","users":[{"admin":false,"emailAddress":"","orderManager":false,"paymentsAnalyst":false,"paymentsManager":false}],"websiteUrl":"","youtubeChannelLinks":[{"channelId":"","status":""}]}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"adultContent": @NO,
                              @"adwordsLinks": @[ @{ @"adwordsId": @"", @"status": @"" } ],
                              @"businessInformation": @{ @"address": @{ @"country": @"", @"locality": @"", @"postalCode": @"", @"region": @"", @"streetAddress": @"" }, @"customerService": @{ @"email": @"", @"phoneNumber": @"", @"url": @"" }, @"koreanBusinessRegistrationNumber": @"", @"phoneNumber": @"" },
                              @"googleMyBusinessLink": @{ @"gmbEmail": @"", @"status": @"" },
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"reviewsUrl": @"",
                              @"sellerId": @"",
                              @"users": @[ @{ @"admin": @NO, @"emailAddress": @"", @"orderManager": @NO, @"paymentsAnalyst": @NO, @"paymentsManager": @NO } ],
                              @"websiteUrl": @"",
                              @"youtubeChannelLinks": @[ @{ @"channelId": @"", @"status": @"" } ] };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/:merchantId/accounts" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/accounts",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'adultContent' => null,
    'adwordsLinks' => [
        [
                'adwordsId' => '',
                'status' => ''
        ]
    ],
    'businessInformation' => [
        'address' => [
                'country' => '',
                'locality' => '',
                'postalCode' => '',
                'region' => '',
                'streetAddress' => ''
        ],
        'customerService' => [
                'email' => '',
                'phoneNumber' => '',
                'url' => ''
        ],
        'koreanBusinessRegistrationNumber' => '',
        'phoneNumber' => ''
    ],
    'googleMyBusinessLink' => [
        'gmbEmail' => '',
        'status' => ''
    ],
    'id' => '',
    'kind' => '',
    'name' => '',
    'reviewsUrl' => '',
    'sellerId' => '',
    'users' => [
        [
                'admin' => null,
                'emailAddress' => '',
                'orderManager' => null,
                'paymentsAnalyst' => null,
                'paymentsManager' => null
        ]
    ],
    'websiteUrl' => '',
    'youtubeChannelLinks' => [
        [
                'channelId' => '',
                'status' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:merchantId/accounts', [
  'body' => '{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'adultContent' => null,
  'adwordsLinks' => [
    [
        'adwordsId' => '',
        'status' => ''
    ]
  ],
  'businessInformation' => [
    'address' => [
        'country' => '',
        'locality' => '',
        'postalCode' => '',
        'region' => '',
        'streetAddress' => ''
    ],
    'customerService' => [
        'email' => '',
        'phoneNumber' => '',
        'url' => ''
    ],
    'koreanBusinessRegistrationNumber' => '',
    'phoneNumber' => ''
  ],
  'googleMyBusinessLink' => [
    'gmbEmail' => '',
    'status' => ''
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'reviewsUrl' => '',
  'sellerId' => '',
  'users' => [
    [
        'admin' => null,
        'emailAddress' => '',
        'orderManager' => null,
        'paymentsAnalyst' => null,
        'paymentsManager' => null
    ]
  ],
  'websiteUrl' => '',
  'youtubeChannelLinks' => [
    [
        'channelId' => '',
        'status' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'adultContent' => null,
  'adwordsLinks' => [
    [
        'adwordsId' => '',
        'status' => ''
    ]
  ],
  'businessInformation' => [
    'address' => [
        'country' => '',
        'locality' => '',
        'postalCode' => '',
        'region' => '',
        'streetAddress' => ''
    ],
    'customerService' => [
        'email' => '',
        'phoneNumber' => '',
        'url' => ''
    ],
    'koreanBusinessRegistrationNumber' => '',
    'phoneNumber' => ''
  ],
  'googleMyBusinessLink' => [
    'gmbEmail' => '',
    'status' => ''
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'reviewsUrl' => '',
  'sellerId' => '',
  'users' => [
    [
        'admin' => null,
        'emailAddress' => '',
        'orderManager' => null,
        'paymentsAnalyst' => null,
        'paymentsManager' => null
    ]
  ],
  'websiteUrl' => '',
  'youtubeChannelLinks' => [
    [
        'channelId' => '',
        'status' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/accounts');
$request->setRequestMethod('POST');
$request->setBody($body);

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

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/accounts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/accounts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}'
import http.client

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

payload = "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}"

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

conn.request("POST", "/baseUrl/:merchantId/accounts", payload, headers)

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

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

url = "{{baseUrl}}/:merchantId/accounts"

payload = {
    "adultContent": False,
    "adwordsLinks": [
        {
            "adwordsId": "",
            "status": ""
        }
    ],
    "businessInformation": {
        "address": {
            "country": "",
            "locality": "",
            "postalCode": "",
            "region": "",
            "streetAddress": ""
        },
        "customerService": {
            "email": "",
            "phoneNumber": "",
            "url": ""
        },
        "koreanBusinessRegistrationNumber": "",
        "phoneNumber": ""
    },
    "googleMyBusinessLink": {
        "gmbEmail": "",
        "status": ""
    },
    "id": "",
    "kind": "",
    "name": "",
    "reviewsUrl": "",
    "sellerId": "",
    "users": [
        {
            "admin": False,
            "emailAddress": "",
            "orderManager": False,
            "paymentsAnalyst": False,
            "paymentsManager": False
        }
    ],
    "websiteUrl": "",
    "youtubeChannelLinks": [
        {
            "channelId": "",
            "status": ""
        }
    ]
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/:merchantId/accounts"

payload <- "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}"

encode <- "json"

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

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

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

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}"

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

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

response = conn.post('/baseUrl/:merchantId/accounts') do |req|
  req.body = "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}"
end

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

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

    let payload = json!({
        "adultContent": false,
        "adwordsLinks": (
            json!({
                "adwordsId": "",
                "status": ""
            })
        ),
        "businessInformation": json!({
            "address": json!({
                "country": "",
                "locality": "",
                "postalCode": "",
                "region": "",
                "streetAddress": ""
            }),
            "customerService": json!({
                "email": "",
                "phoneNumber": "",
                "url": ""
            }),
            "koreanBusinessRegistrationNumber": "",
            "phoneNumber": ""
        }),
        "googleMyBusinessLink": json!({
            "gmbEmail": "",
            "status": ""
        }),
        "id": "",
        "kind": "",
        "name": "",
        "reviewsUrl": "",
        "sellerId": "",
        "users": (
            json!({
                "admin": false,
                "emailAddress": "",
                "orderManager": false,
                "paymentsAnalyst": false,
                "paymentsManager": false
            })
        ),
        "websiteUrl": "",
        "youtubeChannelLinks": (
            json!({
                "channelId": "",
                "status": ""
            })
        )
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:merchantId/accounts \
  --header 'content-type: application/json' \
  --data '{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}'
echo '{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/:merchantId/accounts \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "adultContent": false,\n  "adwordsLinks": [\n    {\n      "adwordsId": "",\n      "status": ""\n    }\n  ],\n  "businessInformation": {\n    "address": {\n      "country": "",\n      "locality": "",\n      "postalCode": "",\n      "region": "",\n      "streetAddress": ""\n    },\n    "customerService": {\n      "email": "",\n      "phoneNumber": "",\n      "url": ""\n    },\n    "koreanBusinessRegistrationNumber": "",\n    "phoneNumber": ""\n  },\n  "googleMyBusinessLink": {\n    "gmbEmail": "",\n    "status": ""\n  },\n  "id": "",\n  "kind": "",\n  "name": "",\n  "reviewsUrl": "",\n  "sellerId": "",\n  "users": [\n    {\n      "admin": false,\n      "emailAddress": "",\n      "orderManager": false,\n      "paymentsAnalyst": false,\n      "paymentsManager": false\n    }\n  ],\n  "websiteUrl": "",\n  "youtubeChannelLinks": [\n    {\n      "channelId": "",\n      "status": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/accounts
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "adultContent": false,
  "adwordsLinks": [
    [
      "adwordsId": "",
      "status": ""
    ]
  ],
  "businessInformation": [
    "address": [
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    ],
    "customerService": [
      "email": "",
      "phoneNumber": "",
      "url": ""
    ],
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  ],
  "googleMyBusinessLink": [
    "gmbEmail": "",
    "status": ""
  ],
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    [
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    ]
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    [
      "channelId": "",
      "status": ""
    ]
  ]
] as [String : Any]

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

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

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

dataTask.resume()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/accounts/:accountId/link");

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  \"action\": \"\",\n  \"linkType\": \"\",\n  \"linkedAccountId\": \"\"\n}");

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

(client/post "{{baseUrl}}/:merchantId/accounts/:accountId/link" {:content-type :json
                                                                                 :form-params {:action ""
                                                                                               :linkType ""
                                                                                               :linkedAccountId ""}})
require "http/client"

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

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

func main() {

	url := "{{baseUrl}}/:merchantId/accounts/:accountId/link"

	payload := strings.NewReader("{\n  \"action\": \"\",\n  \"linkType\": \"\",\n  \"linkedAccountId\": \"\"\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/:merchantId/accounts/:accountId/link HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 61

{
  "action": "",
  "linkType": "",
  "linkedAccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/accounts/:accountId/link")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"action\": \"\",\n  \"linkType\": \"\",\n  \"linkedAccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/accounts/:accountId/link")
  .header("content-type", "application/json")
  .body("{\n  \"action\": \"\",\n  \"linkType\": \"\",\n  \"linkedAccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  action: '',
  linkType: '',
  linkedAccountId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/:merchantId/accounts/:accountId/link');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/accounts/:accountId/link',
  headers: {'content-type': 'application/json'},
  data: {action: '', linkType: '', linkedAccountId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/accounts/:accountId/link';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"action":"","linkType":"","linkedAccountId":""}'
};

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}}/:merchantId/accounts/:accountId/link',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "action": "",\n  "linkType": "",\n  "linkedAccountId": ""\n}'
};

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/accounts/:accountId/link',
  headers: {'content-type': 'application/json'},
  body: {action: '', linkType: '', linkedAccountId: ''},
  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}}/:merchantId/accounts/:accountId/link');

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

req.type('json');
req.send({
  action: '',
  linkType: '',
  linkedAccountId: ''
});

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}}/:merchantId/accounts/:accountId/link',
  headers: {'content-type': 'application/json'},
  data: {action: '', linkType: '', linkedAccountId: ''}
};

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

const url = '{{baseUrl}}/:merchantId/accounts/:accountId/link';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"action":"","linkType":"","linkedAccountId":""}'
};

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 = @{ @"action": @"",
                              @"linkType": @"",
                              @"linkedAccountId": @"" };

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

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

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

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'action' => '',
  'linkType' => '',
  'linkedAccountId' => ''
]));

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

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

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

payload = "{\n  \"action\": \"\",\n  \"linkType\": \"\",\n  \"linkedAccountId\": \"\"\n}"

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

conn.request("POST", "/baseUrl/:merchantId/accounts/:accountId/link", payload, headers)

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

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

url = "{{baseUrl}}/:merchantId/accounts/:accountId/link"

payload = {
    "action": "",
    "linkType": "",
    "linkedAccountId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/:merchantId/accounts/:accountId/link"

payload <- "{\n  \"action\": \"\",\n  \"linkType\": \"\",\n  \"linkedAccountId\": \"\"\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}}/:merchantId/accounts/:accountId/link")

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  \"action\": \"\",\n  \"linkType\": \"\",\n  \"linkedAccountId\": \"\"\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/:merchantId/accounts/:accountId/link') do |req|
  req.body = "{\n  \"action\": \"\",\n  \"linkType\": \"\",\n  \"linkedAccountId\": \"\"\n}"
end

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

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

    let payload = json!({
        "action": "",
        "linkType": "",
        "linkedAccountId": ""
    });

    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}}/:merchantId/accounts/:accountId/link \
  --header 'content-type: application/json' \
  --data '{
  "action": "",
  "linkType": "",
  "linkedAccountId": ""
}'
echo '{
  "action": "",
  "linkType": "",
  "linkedAccountId": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/accounts/:accountId/link \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "action": "",\n  "linkType": "",\n  "linkedAccountId": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/accounts/:accountId/link
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "action": "",
  "linkType": "",
  "linkedAccountId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/accounts/:accountId/link")! 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()
GET content.accounts.list
{{baseUrl}}/:merchantId/accounts
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/:merchantId/accounts")
require "http/client"

url = "{{baseUrl}}/:merchantId/accounts"

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

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

func main() {

	url := "{{baseUrl}}/:merchantId/accounts"

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

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

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

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

}
GET /baseUrl/:merchantId/accounts HTTP/1.1
Host: example.com

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

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounts")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/accounts")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/:merchantId/accounts');

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

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/accounts'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/accounts';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/accounts',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/accounts',
  headers: {}
};

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/accounts'};

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

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

const req = unirest('GET', '{{baseUrl}}/:merchantId/accounts');

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

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

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/accounts'};

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

const url = '{{baseUrl}}/:merchantId/accounts';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/accounts"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/:merchantId/accounts" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/accounts');

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

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

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

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

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

conn.request("GET", "/baseUrl/:merchantId/accounts")

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

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

url = "{{baseUrl}}/:merchantId/accounts"

response = requests.get(url)

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

url <- "{{baseUrl}}/:merchantId/accounts"

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

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

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

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

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

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

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

response = conn.get('/baseUrl/:merchantId/accounts') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/accounts
http GET {{baseUrl}}/:merchantId/accounts
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/accounts
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/accounts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
PUT content.accounts.update
{{baseUrl}}/:merchantId/accounts/:accountId
QUERY PARAMS

merchantId
accountId
BODY json

{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/accounts/:accountId");

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  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}");

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

(client/put "{{baseUrl}}/:merchantId/accounts/:accountId" {:content-type :json
                                                                           :form-params {:adultContent false
                                                                                         :adwordsLinks [{:adwordsId ""
                                                                                                         :status ""}]
                                                                                         :businessInformation {:address {:country ""
                                                                                                                         :locality ""
                                                                                                                         :postalCode ""
                                                                                                                         :region ""
                                                                                                                         :streetAddress ""}
                                                                                                               :customerService {:email ""
                                                                                                                                 :phoneNumber ""
                                                                                                                                 :url ""}
                                                                                                               :koreanBusinessRegistrationNumber ""
                                                                                                               :phoneNumber ""}
                                                                                         :googleMyBusinessLink {:gmbEmail ""
                                                                                                                :status ""}
                                                                                         :id ""
                                                                                         :kind ""
                                                                                         :name ""
                                                                                         :reviewsUrl ""
                                                                                         :sellerId ""
                                                                                         :users [{:admin false
                                                                                                  :emailAddress ""
                                                                                                  :orderManager false
                                                                                                  :paymentsAnalyst false
                                                                                                  :paymentsManager false}]
                                                                                         :websiteUrl ""
                                                                                         :youtubeChannelLinks [{:channelId ""
                                                                                                                :status ""}]}})
require "http/client"

url = "{{baseUrl}}/:merchantId/accounts/:accountId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/accounts/:accountId"),
    Content = new StringContent("{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/accounts/:accountId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:merchantId/accounts/:accountId"

	payload := strings.NewReader("{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}")

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

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

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

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

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

}
PUT /baseUrl/:merchantId/accounts/:accountId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 857

{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:merchantId/accounts/:accountId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/accounts/:accountId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounts/:accountId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:merchantId/accounts/:accountId")
  .header("content-type", "application/json")
  .body("{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  adultContent: false,
  adwordsLinks: [
    {
      adwordsId: '',
      status: ''
    }
  ],
  businessInformation: {
    address: {
      country: '',
      locality: '',
      postalCode: '',
      region: '',
      streetAddress: ''
    },
    customerService: {
      email: '',
      phoneNumber: '',
      url: ''
    },
    koreanBusinessRegistrationNumber: '',
    phoneNumber: ''
  },
  googleMyBusinessLink: {
    gmbEmail: '',
    status: ''
  },
  id: '',
  kind: '',
  name: '',
  reviewsUrl: '',
  sellerId: '',
  users: [
    {
      admin: false,
      emailAddress: '',
      orderManager: false,
      paymentsAnalyst: false,
      paymentsManager: false
    }
  ],
  websiteUrl: '',
  youtubeChannelLinks: [
    {
      channelId: '',
      status: ''
    }
  ]
});

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

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

xhr.open('PUT', '{{baseUrl}}/:merchantId/accounts/:accountId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/accounts/:accountId',
  headers: {'content-type': 'application/json'},
  data: {
    adultContent: false,
    adwordsLinks: [{adwordsId: '', status: ''}],
    businessInformation: {
      address: {country: '', locality: '', postalCode: '', region: '', streetAddress: ''},
      customerService: {email: '', phoneNumber: '', url: ''},
      koreanBusinessRegistrationNumber: '',
      phoneNumber: ''
    },
    googleMyBusinessLink: {gmbEmail: '', status: ''},
    id: '',
    kind: '',
    name: '',
    reviewsUrl: '',
    sellerId: '',
    users: [
      {
        admin: false,
        emailAddress: '',
        orderManager: false,
        paymentsAnalyst: false,
        paymentsManager: false
      }
    ],
    websiteUrl: '',
    youtubeChannelLinks: [{channelId: '', status: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/accounts/:accountId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"adultContent":false,"adwordsLinks":[{"adwordsId":"","status":""}],"businessInformation":{"address":{"country":"","locality":"","postalCode":"","region":"","streetAddress":""},"customerService":{"email":"","phoneNumber":"","url":""},"koreanBusinessRegistrationNumber":"","phoneNumber":""},"googleMyBusinessLink":{"gmbEmail":"","status":""},"id":"","kind":"","name":"","reviewsUrl":"","sellerId":"","users":[{"admin":false,"emailAddress":"","orderManager":false,"paymentsAnalyst":false,"paymentsManager":false}],"websiteUrl":"","youtubeChannelLinks":[{"channelId":"","status":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/accounts/:accountId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "adultContent": false,\n  "adwordsLinks": [\n    {\n      "adwordsId": "",\n      "status": ""\n    }\n  ],\n  "businessInformation": {\n    "address": {\n      "country": "",\n      "locality": "",\n      "postalCode": "",\n      "region": "",\n      "streetAddress": ""\n    },\n    "customerService": {\n      "email": "",\n      "phoneNumber": "",\n      "url": ""\n    },\n    "koreanBusinessRegistrationNumber": "",\n    "phoneNumber": ""\n  },\n  "googleMyBusinessLink": {\n    "gmbEmail": "",\n    "status": ""\n  },\n  "id": "",\n  "kind": "",\n  "name": "",\n  "reviewsUrl": "",\n  "sellerId": "",\n  "users": [\n    {\n      "admin": false,\n      "emailAddress": "",\n      "orderManager": false,\n      "paymentsAnalyst": false,\n      "paymentsManager": false\n    }\n  ],\n  "websiteUrl": "",\n  "youtubeChannelLinks": [\n    {\n      "channelId": "",\n      "status": ""\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounts/:accountId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/accounts/:accountId',
  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({
  adultContent: false,
  adwordsLinks: [{adwordsId: '', status: ''}],
  businessInformation: {
    address: {country: '', locality: '', postalCode: '', region: '', streetAddress: ''},
    customerService: {email: '', phoneNumber: '', url: ''},
    koreanBusinessRegistrationNumber: '',
    phoneNumber: ''
  },
  googleMyBusinessLink: {gmbEmail: '', status: ''},
  id: '',
  kind: '',
  name: '',
  reviewsUrl: '',
  sellerId: '',
  users: [
    {
      admin: false,
      emailAddress: '',
      orderManager: false,
      paymentsAnalyst: false,
      paymentsManager: false
    }
  ],
  websiteUrl: '',
  youtubeChannelLinks: [{channelId: '', status: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/accounts/:accountId',
  headers: {'content-type': 'application/json'},
  body: {
    adultContent: false,
    adwordsLinks: [{adwordsId: '', status: ''}],
    businessInformation: {
      address: {country: '', locality: '', postalCode: '', region: '', streetAddress: ''},
      customerService: {email: '', phoneNumber: '', url: ''},
      koreanBusinessRegistrationNumber: '',
      phoneNumber: ''
    },
    googleMyBusinessLink: {gmbEmail: '', status: ''},
    id: '',
    kind: '',
    name: '',
    reviewsUrl: '',
    sellerId: '',
    users: [
      {
        admin: false,
        emailAddress: '',
        orderManager: false,
        paymentsAnalyst: false,
        paymentsManager: false
      }
    ],
    websiteUrl: '',
    youtubeChannelLinks: [{channelId: '', status: ''}]
  },
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/:merchantId/accounts/:accountId');

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

req.type('json');
req.send({
  adultContent: false,
  adwordsLinks: [
    {
      adwordsId: '',
      status: ''
    }
  ],
  businessInformation: {
    address: {
      country: '',
      locality: '',
      postalCode: '',
      region: '',
      streetAddress: ''
    },
    customerService: {
      email: '',
      phoneNumber: '',
      url: ''
    },
    koreanBusinessRegistrationNumber: '',
    phoneNumber: ''
  },
  googleMyBusinessLink: {
    gmbEmail: '',
    status: ''
  },
  id: '',
  kind: '',
  name: '',
  reviewsUrl: '',
  sellerId: '',
  users: [
    {
      admin: false,
      emailAddress: '',
      orderManager: false,
      paymentsAnalyst: false,
      paymentsManager: false
    }
  ],
  websiteUrl: '',
  youtubeChannelLinks: [
    {
      channelId: '',
      status: ''
    }
  ]
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/accounts/:accountId',
  headers: {'content-type': 'application/json'},
  data: {
    adultContent: false,
    adwordsLinks: [{adwordsId: '', status: ''}],
    businessInformation: {
      address: {country: '', locality: '', postalCode: '', region: '', streetAddress: ''},
      customerService: {email: '', phoneNumber: '', url: ''},
      koreanBusinessRegistrationNumber: '',
      phoneNumber: ''
    },
    googleMyBusinessLink: {gmbEmail: '', status: ''},
    id: '',
    kind: '',
    name: '',
    reviewsUrl: '',
    sellerId: '',
    users: [
      {
        admin: false,
        emailAddress: '',
        orderManager: false,
        paymentsAnalyst: false,
        paymentsManager: false
      }
    ],
    websiteUrl: '',
    youtubeChannelLinks: [{channelId: '', status: ''}]
  }
};

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

const url = '{{baseUrl}}/:merchantId/accounts/:accountId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"adultContent":false,"adwordsLinks":[{"adwordsId":"","status":""}],"businessInformation":{"address":{"country":"","locality":"","postalCode":"","region":"","streetAddress":""},"customerService":{"email":"","phoneNumber":"","url":""},"koreanBusinessRegistrationNumber":"","phoneNumber":""},"googleMyBusinessLink":{"gmbEmail":"","status":""},"id":"","kind":"","name":"","reviewsUrl":"","sellerId":"","users":[{"admin":false,"emailAddress":"","orderManager":false,"paymentsAnalyst":false,"paymentsManager":false}],"websiteUrl":"","youtubeChannelLinks":[{"channelId":"","status":""}]}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"adultContent": @NO,
                              @"adwordsLinks": @[ @{ @"adwordsId": @"", @"status": @"" } ],
                              @"businessInformation": @{ @"address": @{ @"country": @"", @"locality": @"", @"postalCode": @"", @"region": @"", @"streetAddress": @"" }, @"customerService": @{ @"email": @"", @"phoneNumber": @"", @"url": @"" }, @"koreanBusinessRegistrationNumber": @"", @"phoneNumber": @"" },
                              @"googleMyBusinessLink": @{ @"gmbEmail": @"", @"status": @"" },
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"reviewsUrl": @"",
                              @"sellerId": @"",
                              @"users": @[ @{ @"admin": @NO, @"emailAddress": @"", @"orderManager": @NO, @"paymentsAnalyst": @NO, @"paymentsManager": @NO } ],
                              @"websiteUrl": @"",
                              @"youtubeChannelLinks": @[ @{ @"channelId": @"", @"status": @"" } ] };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/:merchantId/accounts/:accountId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/accounts/:accountId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'adultContent' => null,
    'adwordsLinks' => [
        [
                'adwordsId' => '',
                'status' => ''
        ]
    ],
    'businessInformation' => [
        'address' => [
                'country' => '',
                'locality' => '',
                'postalCode' => '',
                'region' => '',
                'streetAddress' => ''
        ],
        'customerService' => [
                'email' => '',
                'phoneNumber' => '',
                'url' => ''
        ],
        'koreanBusinessRegistrationNumber' => '',
        'phoneNumber' => ''
    ],
    'googleMyBusinessLink' => [
        'gmbEmail' => '',
        'status' => ''
    ],
    'id' => '',
    'kind' => '',
    'name' => '',
    'reviewsUrl' => '',
    'sellerId' => '',
    'users' => [
        [
                'admin' => null,
                'emailAddress' => '',
                'orderManager' => null,
                'paymentsAnalyst' => null,
                'paymentsManager' => null
        ]
    ],
    'websiteUrl' => '',
    'youtubeChannelLinks' => [
        [
                'channelId' => '',
                'status' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:merchantId/accounts/:accountId', [
  'body' => '{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/accounts/:accountId');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'adultContent' => null,
  'adwordsLinks' => [
    [
        'adwordsId' => '',
        'status' => ''
    ]
  ],
  'businessInformation' => [
    'address' => [
        'country' => '',
        'locality' => '',
        'postalCode' => '',
        'region' => '',
        'streetAddress' => ''
    ],
    'customerService' => [
        'email' => '',
        'phoneNumber' => '',
        'url' => ''
    ],
    'koreanBusinessRegistrationNumber' => '',
    'phoneNumber' => ''
  ],
  'googleMyBusinessLink' => [
    'gmbEmail' => '',
    'status' => ''
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'reviewsUrl' => '',
  'sellerId' => '',
  'users' => [
    [
        'admin' => null,
        'emailAddress' => '',
        'orderManager' => null,
        'paymentsAnalyst' => null,
        'paymentsManager' => null
    ]
  ],
  'websiteUrl' => '',
  'youtubeChannelLinks' => [
    [
        'channelId' => '',
        'status' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'adultContent' => null,
  'adwordsLinks' => [
    [
        'adwordsId' => '',
        'status' => ''
    ]
  ],
  'businessInformation' => [
    'address' => [
        'country' => '',
        'locality' => '',
        'postalCode' => '',
        'region' => '',
        'streetAddress' => ''
    ],
    'customerService' => [
        'email' => '',
        'phoneNumber' => '',
        'url' => ''
    ],
    'koreanBusinessRegistrationNumber' => '',
    'phoneNumber' => ''
  ],
  'googleMyBusinessLink' => [
    'gmbEmail' => '',
    'status' => ''
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'reviewsUrl' => '',
  'sellerId' => '',
  'users' => [
    [
        'admin' => null,
        'emailAddress' => '',
        'orderManager' => null,
        'paymentsAnalyst' => null,
        'paymentsManager' => null
    ]
  ],
  'websiteUrl' => '',
  'youtubeChannelLinks' => [
    [
        'channelId' => '',
        'status' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/accounts/:accountId');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/accounts/:accountId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/accounts/:accountId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}'
import http.client

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

payload = "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}"

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

conn.request("PUT", "/baseUrl/:merchantId/accounts/:accountId", payload, headers)

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

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

url = "{{baseUrl}}/:merchantId/accounts/:accountId"

payload = {
    "adultContent": False,
    "adwordsLinks": [
        {
            "adwordsId": "",
            "status": ""
        }
    ],
    "businessInformation": {
        "address": {
            "country": "",
            "locality": "",
            "postalCode": "",
            "region": "",
            "streetAddress": ""
        },
        "customerService": {
            "email": "",
            "phoneNumber": "",
            "url": ""
        },
        "koreanBusinessRegistrationNumber": "",
        "phoneNumber": ""
    },
    "googleMyBusinessLink": {
        "gmbEmail": "",
        "status": ""
    },
    "id": "",
    "kind": "",
    "name": "",
    "reviewsUrl": "",
    "sellerId": "",
    "users": [
        {
            "admin": False,
            "emailAddress": "",
            "orderManager": False,
            "paymentsAnalyst": False,
            "paymentsManager": False
        }
    ],
    "websiteUrl": "",
    "youtubeChannelLinks": [
        {
            "channelId": "",
            "status": ""
        }
    ]
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/:merchantId/accounts/:accountId"

payload <- "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/:merchantId/accounts/:accountId")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}"

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

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

response = conn.put('/baseUrl/:merchantId/accounts/:accountId') do |req|
  req.body = "{\n  \"adultContent\": false,\n  \"adwordsLinks\": [\n    {\n      \"adwordsId\": \"\",\n      \"status\": \"\"\n    }\n  ],\n  \"businessInformation\": {\n    \"address\": {\n      \"country\": \"\",\n      \"locality\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\"\n    },\n    \"customerService\": {\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"url\": \"\"\n    },\n    \"koreanBusinessRegistrationNumber\": \"\",\n    \"phoneNumber\": \"\"\n  },\n  \"googleMyBusinessLink\": {\n    \"gmbEmail\": \"\",\n    \"status\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"reviewsUrl\": \"\",\n  \"sellerId\": \"\",\n  \"users\": [\n    {\n      \"admin\": false,\n      \"emailAddress\": \"\",\n      \"orderManager\": false,\n      \"paymentsAnalyst\": false,\n      \"paymentsManager\": false\n    }\n  ],\n  \"websiteUrl\": \"\",\n  \"youtubeChannelLinks\": [\n    {\n      \"channelId\": \"\",\n      \"status\": \"\"\n    }\n  ]\n}"
end

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

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

    let payload = json!({
        "adultContent": false,
        "adwordsLinks": (
            json!({
                "adwordsId": "",
                "status": ""
            })
        ),
        "businessInformation": json!({
            "address": json!({
                "country": "",
                "locality": "",
                "postalCode": "",
                "region": "",
                "streetAddress": ""
            }),
            "customerService": json!({
                "email": "",
                "phoneNumber": "",
                "url": ""
            }),
            "koreanBusinessRegistrationNumber": "",
            "phoneNumber": ""
        }),
        "googleMyBusinessLink": json!({
            "gmbEmail": "",
            "status": ""
        }),
        "id": "",
        "kind": "",
        "name": "",
        "reviewsUrl": "",
        "sellerId": "",
        "users": (
            json!({
                "admin": false,
                "emailAddress": "",
                "orderManager": false,
                "paymentsAnalyst": false,
                "paymentsManager": false
            })
        ),
        "websiteUrl": "",
        "youtubeChannelLinks": (
            json!({
                "channelId": "",
                "status": ""
            })
        )
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:merchantId/accounts/:accountId \
  --header 'content-type: application/json' \
  --data '{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}'
echo '{
  "adultContent": false,
  "adwordsLinks": [
    {
      "adwordsId": "",
      "status": ""
    }
  ],
  "businessInformation": {
    "address": {
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    },
    "customerService": {
      "email": "",
      "phoneNumber": "",
      "url": ""
    },
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  },
  "googleMyBusinessLink": {
    "gmbEmail": "",
    "status": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    {
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    }
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    {
      "channelId": "",
      "status": ""
    }
  ]
}' |  \
  http PUT {{baseUrl}}/:merchantId/accounts/:accountId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "adultContent": false,\n  "adwordsLinks": [\n    {\n      "adwordsId": "",\n      "status": ""\n    }\n  ],\n  "businessInformation": {\n    "address": {\n      "country": "",\n      "locality": "",\n      "postalCode": "",\n      "region": "",\n      "streetAddress": ""\n    },\n    "customerService": {\n      "email": "",\n      "phoneNumber": "",\n      "url": ""\n    },\n    "koreanBusinessRegistrationNumber": "",\n    "phoneNumber": ""\n  },\n  "googleMyBusinessLink": {\n    "gmbEmail": "",\n    "status": ""\n  },\n  "id": "",\n  "kind": "",\n  "name": "",\n  "reviewsUrl": "",\n  "sellerId": "",\n  "users": [\n    {\n      "admin": false,\n      "emailAddress": "",\n      "orderManager": false,\n      "paymentsAnalyst": false,\n      "paymentsManager": false\n    }\n  ],\n  "websiteUrl": "",\n  "youtubeChannelLinks": [\n    {\n      "channelId": "",\n      "status": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/accounts/:accountId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "adultContent": false,
  "adwordsLinks": [
    [
      "adwordsId": "",
      "status": ""
    ]
  ],
  "businessInformation": [
    "address": [
      "country": "",
      "locality": "",
      "postalCode": "",
      "region": "",
      "streetAddress": ""
    ],
    "customerService": [
      "email": "",
      "phoneNumber": "",
      "url": ""
    ],
    "koreanBusinessRegistrationNumber": "",
    "phoneNumber": ""
  ],
  "googleMyBusinessLink": [
    "gmbEmail": "",
    "status": ""
  ],
  "id": "",
  "kind": "",
  "name": "",
  "reviewsUrl": "",
  "sellerId": "",
  "users": [
    [
      "admin": false,
      "emailAddress": "",
      "orderManager": false,
      "paymentsAnalyst": false,
      "paymentsManager": false
    ]
  ],
  "websiteUrl": "",
  "youtubeChannelLinks": [
    [
      "channelId": "",
      "status": ""
    ]
  ]
] as [String : Any]

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

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

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

dataTask.resume()
POST content.accountstatuses.custombatch
{{baseUrl}}/accountstatuses/batch
BODY json

{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "destinations": [],
      "merchantId": "",
      "method": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/accountstatuses/batch" {:content-type :json
                                                                  :form-params {:entries [{:accountId ""
                                                                                           :batchId 0
                                                                                           :destinations []
                                                                                           :merchantId ""
                                                                                           :method ""}]}})
require "http/client"

url = "{{baseUrl}}/accountstatuses/batch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

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

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

func main() {

	url := "{{baseUrl}}/accountstatuses/batch"

	payload := strings.NewReader("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")

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

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

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

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

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

}
POST /baseUrl/accountstatuses/batch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 146

{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "destinations": [],
      "merchantId": "",
      "method": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/accountstatuses/batch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accountstatuses/batch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/accountstatuses/batch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/accountstatuses/batch")
  .header("content-type", "application/json")
  .body("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  entries: [
    {
      accountId: '',
      batchId: 0,
      destinations: [],
      merchantId: '',
      method: ''
    }
  ]
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accountstatuses/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [{accountId: '', batchId: 0, destinations: [], merchantId: '', method: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accountstatuses/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"accountId":"","batchId":0,"destinations":[],"merchantId":"","method":""}]}'
};

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}}/accountstatuses/batch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entries": [\n    {\n      "accountId": "",\n      "batchId": 0,\n      "destinations": [],\n      "merchantId": "",\n      "method": ""\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/accountstatuses/batch")
  .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/accountstatuses/batch',
  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({
  entries: [{accountId: '', batchId: 0, destinations: [], merchantId: '', method: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accountstatuses/batch',
  headers: {'content-type': 'application/json'},
  body: {
    entries: [{accountId: '', batchId: 0, destinations: [], merchantId: '', method: ''}]
  },
  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}}/accountstatuses/batch');

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

req.type('json');
req.send({
  entries: [
    {
      accountId: '',
      batchId: 0,
      destinations: [],
      merchantId: '',
      method: ''
    }
  ]
});

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}}/accountstatuses/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [{accountId: '', batchId: 0, destinations: [], merchantId: '', method: ''}]
  }
};

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

const url = '{{baseUrl}}/accountstatuses/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"accountId":"","batchId":0,"destinations":[],"merchantId":"","method":""}]}'
};

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 = @{ @"entries": @[ @{ @"accountId": @"", @"batchId": @0, @"destinations": @[  ], @"merchantId": @"", @"method": @"" } ] };

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

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

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accountstatuses/batch",
  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([
    'entries' => [
        [
                'accountId' => '',
                'batchId' => 0,
                'destinations' => [
                                
                ],
                'merchantId' => '',
                'method' => ''
        ]
    ]
  ]),
  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}}/accountstatuses/batch', [
  'body' => '{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "destinations": [],
      "merchantId": "",
      "method": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entries' => [
    [
        'accountId' => '',
        'batchId' => 0,
        'destinations' => [
                
        ],
        'merchantId' => '',
        'method' => ''
    ]
  ]
]));

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

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

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

payload = "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

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

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

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

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

url = "{{baseUrl}}/accountstatuses/batch"

payload = { "entries": [
        {
            "accountId": "",
            "batchId": 0,
            "destinations": [],
            "merchantId": "",
            "method": ""
        }
    ] }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/accountstatuses/batch"

payload <- "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/accountstatuses/batch")

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  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

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

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

response = conn.post('/baseUrl/accountstatuses/batch') do |req|
  req.body = "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"
end

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

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

    let payload = json!({"entries": (
            json!({
                "accountId": "",
                "batchId": 0,
                "destinations": (),
                "merchantId": "",
                "method": ""
            })
        )});

    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}}/accountstatuses/batch \
  --header 'content-type: application/json' \
  --data '{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "destinations": [],
      "merchantId": "",
      "method": ""
    }
  ]
}'
echo '{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "destinations": [],
      "merchantId": "",
      "method": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/accountstatuses/batch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entries": [\n    {\n      "accountId": "",\n      "batchId": 0,\n      "destinations": [],\n      "merchantId": "",\n      "method": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/accountstatuses/batch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["entries": [
    [
      "accountId": "",
      "batchId": 0,
      "destinations": [],
      "merchantId": "",
      "method": ""
    ]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accountstatuses/batch")! 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()
GET content.accountstatuses.get
{{baseUrl}}/:merchantId/accountstatuses/:accountId
QUERY PARAMS

merchantId
accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/accountstatuses/:accountId");

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

(client/get "{{baseUrl}}/:merchantId/accountstatuses/:accountId")
require "http/client"

url = "{{baseUrl}}/:merchantId/accountstatuses/:accountId"

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

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

func main() {

	url := "{{baseUrl}}/:merchantId/accountstatuses/:accountId"

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

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

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

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

}
GET /baseUrl/:merchantId/accountstatuses/:accountId HTTP/1.1
Host: example.com

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

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/accountstatuses/:accountId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/accountstatuses/:accountId")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/:merchantId/accountstatuses/:accountId');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/accountstatuses/:accountId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/accountstatuses/:accountId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/accountstatuses/:accountId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/accountstatuses/:accountId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/accountstatuses/:accountId',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/accountstatuses/:accountId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/:merchantId/accountstatuses/:accountId');

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/accountstatuses/:accountId'
};

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

const url = '{{baseUrl}}/:merchantId/accountstatuses/:accountId';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/accountstatuses/:accountId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/:merchantId/accountstatuses/:accountId" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/accountstatuses/:accountId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/accountstatuses/:accountId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/accountstatuses/:accountId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/accountstatuses/:accountId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/accountstatuses/:accountId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/:merchantId/accountstatuses/:accountId")

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

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

url = "{{baseUrl}}/:merchantId/accountstatuses/:accountId"

response = requests.get(url)

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

url <- "{{baseUrl}}/:merchantId/accountstatuses/:accountId"

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

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

url = URI("{{baseUrl}}/:merchantId/accountstatuses/:accountId")

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

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

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

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

response = conn.get('/baseUrl/:merchantId/accountstatuses/:accountId') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/accountstatuses/:accountId
http GET {{baseUrl}}/:merchantId/accountstatuses/:accountId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/accountstatuses/:accountId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/accountstatuses/:accountId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
GET content.accountstatuses.list
{{baseUrl}}/:merchantId/accountstatuses
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/accountstatuses");

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

(client/get "{{baseUrl}}/:merchantId/accountstatuses")
require "http/client"

url = "{{baseUrl}}/:merchantId/accountstatuses"

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

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

func main() {

	url := "{{baseUrl}}/:merchantId/accountstatuses"

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

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

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

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

}
GET /baseUrl/:merchantId/accountstatuses HTTP/1.1
Host: example.com

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

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/accountstatuses")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/accountstatuses")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/:merchantId/accountstatuses');

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

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/accountstatuses'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/accountstatuses';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/accountstatuses',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/accountstatuses")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/accountstatuses',
  headers: {}
};

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/accountstatuses'};

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

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

const req = unirest('GET', '{{baseUrl}}/:merchantId/accountstatuses');

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

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

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/accountstatuses'};

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

const url = '{{baseUrl}}/:merchantId/accountstatuses';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/accountstatuses"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/:merchantId/accountstatuses" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/accountstatuses');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/accountstatuses');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/:merchantId/accountstatuses")

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

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

url = "{{baseUrl}}/:merchantId/accountstatuses"

response = requests.get(url)

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

url <- "{{baseUrl}}/:merchantId/accountstatuses"

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

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

url = URI("{{baseUrl}}/:merchantId/accountstatuses")

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

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

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

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

response = conn.get('/baseUrl/:merchantId/accountstatuses') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/accountstatuses
http GET {{baseUrl}}/:merchantId/accountstatuses
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/accountstatuses
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/accountstatuses")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
POST content.accounttax.custombatch
{{baseUrl}}/accounttax/batch
BODY json

{
  "entries": [
    {
      "accountId": "",
      "accountTax": {
        "accountId": "",
        "kind": "",
        "rules": [
          {
            "country": "",
            "locationId": "",
            "ratePercent": "",
            "shippingTaxed": false,
            "useGlobalRate": false
          }
        ]
      },
      "batchId": 0,
      "merchantId": "",
      "method": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/accounttax/batch" {:content-type :json
                                                             :form-params {:entries [{:accountId ""
                                                                                      :accountTax {:accountId ""
                                                                                                   :kind ""
                                                                                                   :rules [{:country ""
                                                                                                            :locationId ""
                                                                                                            :ratePercent ""
                                                                                                            :shippingTaxed false
                                                                                                            :useGlobalRate false}]}
                                                                                      :batchId 0
                                                                                      :merchantId ""
                                                                                      :method ""}]}})
require "http/client"

url = "{{baseUrl}}/accounttax/batch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/accounttax/batch"),
    Content = new StringContent("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounttax/batch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/accounttax/batch"

	payload := strings.NewReader("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")

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

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

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

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

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

}
POST /baseUrl/accounttax/batch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 408

{
  "entries": [
    {
      "accountId": "",
      "accountTax": {
        "accountId": "",
        "kind": "",
        "rules": [
          {
            "country": "",
            "locationId": "",
            "ratePercent": "",
            "shippingTaxed": false,
            "useGlobalRate": false
          }
        ]
      },
      "batchId": 0,
      "merchantId": "",
      "method": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/accounttax/batch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounttax/batch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/accounttax/batch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/accounttax/batch")
  .header("content-type", "application/json")
  .body("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  entries: [
    {
      accountId: '',
      accountTax: {
        accountId: '',
        kind: '',
        rules: [
          {
            country: '',
            locationId: '',
            ratePercent: '',
            shippingTaxed: false,
            useGlobalRate: false
          }
        ]
      },
      batchId: 0,
      merchantId: '',
      method: ''
    }
  ]
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounttax/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        accountId: '',
        accountTax: {
          accountId: '',
          kind: '',
          rules: [
            {
              country: '',
              locationId: '',
              ratePercent: '',
              shippingTaxed: false,
              useGlobalRate: false
            }
          ]
        },
        batchId: 0,
        merchantId: '',
        method: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounttax/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"accountId":"","accountTax":{"accountId":"","kind":"","rules":[{"country":"","locationId":"","ratePercent":"","shippingTaxed":false,"useGlobalRate":false}]},"batchId":0,"merchantId":"","method":""}]}'
};

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}}/accounttax/batch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entries": [\n    {\n      "accountId": "",\n      "accountTax": {\n        "accountId": "",\n        "kind": "",\n        "rules": [\n          {\n            "country": "",\n            "locationId": "",\n            "ratePercent": "",\n            "shippingTaxed": false,\n            "useGlobalRate": false\n          }\n        ]\n      },\n      "batchId": 0,\n      "merchantId": "",\n      "method": ""\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/accounttax/batch")
  .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/accounttax/batch',
  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({
  entries: [
    {
      accountId: '',
      accountTax: {
        accountId: '',
        kind: '',
        rules: [
          {
            country: '',
            locationId: '',
            ratePercent: '',
            shippingTaxed: false,
            useGlobalRate: false
          }
        ]
      },
      batchId: 0,
      merchantId: '',
      method: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounttax/batch',
  headers: {'content-type': 'application/json'},
  body: {
    entries: [
      {
        accountId: '',
        accountTax: {
          accountId: '',
          kind: '',
          rules: [
            {
              country: '',
              locationId: '',
              ratePercent: '',
              shippingTaxed: false,
              useGlobalRate: false
            }
          ]
        },
        batchId: 0,
        merchantId: '',
        method: ''
      }
    ]
  },
  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}}/accounttax/batch');

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

req.type('json');
req.send({
  entries: [
    {
      accountId: '',
      accountTax: {
        accountId: '',
        kind: '',
        rules: [
          {
            country: '',
            locationId: '',
            ratePercent: '',
            shippingTaxed: false,
            useGlobalRate: false
          }
        ]
      },
      batchId: 0,
      merchantId: '',
      method: ''
    }
  ]
});

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}}/accounttax/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        accountId: '',
        accountTax: {
          accountId: '',
          kind: '',
          rules: [
            {
              country: '',
              locationId: '',
              ratePercent: '',
              shippingTaxed: false,
              useGlobalRate: false
            }
          ]
        },
        batchId: 0,
        merchantId: '',
        method: ''
      }
    ]
  }
};

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

const url = '{{baseUrl}}/accounttax/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"accountId":"","accountTax":{"accountId":"","kind":"","rules":[{"country":"","locationId":"","ratePercent":"","shippingTaxed":false,"useGlobalRate":false}]},"batchId":0,"merchantId":"","method":""}]}'
};

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 = @{ @"entries": @[ @{ @"accountId": @"", @"accountTax": @{ @"accountId": @"", @"kind": @"", @"rules": @[ @{ @"country": @"", @"locationId": @"", @"ratePercent": @"", @"shippingTaxed": @NO, @"useGlobalRate": @NO } ] }, @"batchId": @0, @"merchantId": @"", @"method": @"" } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounttax/batch"]
                                                       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}}/accounttax/batch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounttax/batch",
  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([
    'entries' => [
        [
                'accountId' => '',
                'accountTax' => [
                                'accountId' => '',
                                'kind' => '',
                                'rules' => [
                                                                [
                                                                                                                                'country' => '',
                                                                                                                                'locationId' => '',
                                                                                                                                'ratePercent' => '',
                                                                                                                                'shippingTaxed' => null,
                                                                                                                                'useGlobalRate' => null
                                                                ]
                                ]
                ],
                'batchId' => 0,
                'merchantId' => '',
                'method' => ''
        ]
    ]
  ]),
  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}}/accounttax/batch', [
  'body' => '{
  "entries": [
    {
      "accountId": "",
      "accountTax": {
        "accountId": "",
        "kind": "",
        "rules": [
          {
            "country": "",
            "locationId": "",
            "ratePercent": "",
            "shippingTaxed": false,
            "useGlobalRate": false
          }
        ]
      },
      "batchId": 0,
      "merchantId": "",
      "method": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entries' => [
    [
        'accountId' => '',
        'accountTax' => [
                'accountId' => '',
                'kind' => '',
                'rules' => [
                                [
                                                                'country' => '',
                                                                'locationId' => '',
                                                                'ratePercent' => '',
                                                                'shippingTaxed' => null,
                                                                'useGlobalRate' => null
                                ]
                ]
        ],
        'batchId' => 0,
        'merchantId' => '',
        'method' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'entries' => [
    [
        'accountId' => '',
        'accountTax' => [
                'accountId' => '',
                'kind' => '',
                'rules' => [
                                [
                                                                'country' => '',
                                                                'locationId' => '',
                                                                'ratePercent' => '',
                                                                'shippingTaxed' => null,
                                                                'useGlobalRate' => null
                                ]
                ]
        ],
        'batchId' => 0,
        'merchantId' => '',
        'method' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/accounttax/batch');
$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}}/accounttax/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "accountId": "",
      "accountTax": {
        "accountId": "",
        "kind": "",
        "rules": [
          {
            "country": "",
            "locationId": "",
            "ratePercent": "",
            "shippingTaxed": false,
            "useGlobalRate": false
          }
        ]
      },
      "batchId": 0,
      "merchantId": "",
      "method": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounttax/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "accountId": "",
      "accountTax": {
        "accountId": "",
        "kind": "",
        "rules": [
          {
            "country": "",
            "locationId": "",
            "ratePercent": "",
            "shippingTaxed": false,
            "useGlobalRate": false
          }
        ]
      },
      "batchId": 0,
      "merchantId": "",
      "method": ""
    }
  ]
}'
import http.client

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

payload = "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

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

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

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

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

url = "{{baseUrl}}/accounttax/batch"

payload = { "entries": [
        {
            "accountId": "",
            "accountTax": {
                "accountId": "",
                "kind": "",
                "rules": [
                    {
                        "country": "",
                        "locationId": "",
                        "ratePercent": "",
                        "shippingTaxed": False,
                        "useGlobalRate": False
                    }
                ]
            },
            "batchId": 0,
            "merchantId": "",
            "method": ""
        }
    ] }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/accounttax/batch"

payload <- "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/accounttax/batch")

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  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

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

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

response = conn.post('/baseUrl/accounttax/batch') do |req|
  req.body = "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"accountTax\": {\n        \"accountId\": \"\",\n        \"kind\": \"\",\n        \"rules\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"ratePercent\": \"\",\n            \"shippingTaxed\": false,\n            \"useGlobalRate\": false\n          }\n        ]\n      },\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"
end

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

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

    let payload = json!({"entries": (
            json!({
                "accountId": "",
                "accountTax": json!({
                    "accountId": "",
                    "kind": "",
                    "rules": (
                        json!({
                            "country": "",
                            "locationId": "",
                            "ratePercent": "",
                            "shippingTaxed": false,
                            "useGlobalRate": false
                        })
                    )
                }),
                "batchId": 0,
                "merchantId": "",
                "method": ""
            })
        )});

    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}}/accounttax/batch \
  --header 'content-type: application/json' \
  --data '{
  "entries": [
    {
      "accountId": "",
      "accountTax": {
        "accountId": "",
        "kind": "",
        "rules": [
          {
            "country": "",
            "locationId": "",
            "ratePercent": "",
            "shippingTaxed": false,
            "useGlobalRate": false
          }
        ]
      },
      "batchId": 0,
      "merchantId": "",
      "method": ""
    }
  ]
}'
echo '{
  "entries": [
    {
      "accountId": "",
      "accountTax": {
        "accountId": "",
        "kind": "",
        "rules": [
          {
            "country": "",
            "locationId": "",
            "ratePercent": "",
            "shippingTaxed": false,
            "useGlobalRate": false
          }
        ]
      },
      "batchId": 0,
      "merchantId": "",
      "method": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/accounttax/batch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entries": [\n    {\n      "accountId": "",\n      "accountTax": {\n        "accountId": "",\n        "kind": "",\n        "rules": [\n          {\n            "country": "",\n            "locationId": "",\n            "ratePercent": "",\n            "shippingTaxed": false,\n            "useGlobalRate": false\n          }\n        ]\n      },\n      "batchId": 0,\n      "merchantId": "",\n      "method": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/accounttax/batch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["entries": [
    [
      "accountId": "",
      "accountTax": [
        "accountId": "",
        "kind": "",
        "rules": [
          [
            "country": "",
            "locationId": "",
            "ratePercent": "",
            "shippingTaxed": false,
            "useGlobalRate": false
          ]
        ]
      ],
      "batchId": 0,
      "merchantId": "",
      "method": ""
    ]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounttax/batch")! 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()
GET content.accounttax.get
{{baseUrl}}/:merchantId/accounttax/:accountId
QUERY PARAMS

merchantId
accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/accounttax/:accountId");

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

(client/get "{{baseUrl}}/:merchantId/accounttax/:accountId")
require "http/client"

url = "{{baseUrl}}/:merchantId/accounttax/:accountId"

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

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

func main() {

	url := "{{baseUrl}}/:merchantId/accounttax/:accountId"

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

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

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

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

}
GET /baseUrl/:merchantId/accounttax/:accountId HTTP/1.1
Host: example.com

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

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounttax/:accountId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/accounttax/:accountId")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/:merchantId/accounttax/:accountId');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/accounttax/:accountId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/accounttax/:accountId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/accounttax/:accountId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounttax/:accountId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/accounttax/:accountId',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/accounttax/:accountId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/:merchantId/accounttax/:accountId');

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/accounttax/:accountId'
};

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

const url = '{{baseUrl}}/:merchantId/accounttax/:accountId';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/accounttax/:accountId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/:merchantId/accounttax/:accountId" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/accounttax/:accountId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/accounttax/:accountId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/accounttax/:accountId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/accounttax/:accountId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/accounttax/:accountId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/:merchantId/accounttax/:accountId")

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

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

url = "{{baseUrl}}/:merchantId/accounttax/:accountId"

response = requests.get(url)

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

url <- "{{baseUrl}}/:merchantId/accounttax/:accountId"

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

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

url = URI("{{baseUrl}}/:merchantId/accounttax/:accountId")

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

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

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

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

response = conn.get('/baseUrl/:merchantId/accounttax/:accountId') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/accounttax/:accountId
http GET {{baseUrl}}/:merchantId/accounttax/:accountId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/accounttax/:accountId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/accounttax/:accountId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
GET content.accounttax.list
{{baseUrl}}/:merchantId/accounttax
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/accounttax");

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

(client/get "{{baseUrl}}/:merchantId/accounttax")
require "http/client"

url = "{{baseUrl}}/:merchantId/accounttax"

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

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

func main() {

	url := "{{baseUrl}}/:merchantId/accounttax"

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

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

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

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

}
GET /baseUrl/:merchantId/accounttax HTTP/1.1
Host: example.com

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

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounttax")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/accounttax")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/:merchantId/accounttax');

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

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/accounttax'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/accounttax';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/accounttax',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounttax")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/accounttax',
  headers: {}
};

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/accounttax'};

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

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

const req = unirest('GET', '{{baseUrl}}/:merchantId/accounttax');

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

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

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/accounttax'};

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

const url = '{{baseUrl}}/:merchantId/accounttax';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/accounttax"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/:merchantId/accounttax" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/accounttax');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/accounttax');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/:merchantId/accounttax")

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

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

url = "{{baseUrl}}/:merchantId/accounttax"

response = requests.get(url)

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

url <- "{{baseUrl}}/:merchantId/accounttax"

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

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

url = URI("{{baseUrl}}/:merchantId/accounttax")

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

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

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

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

response = conn.get('/baseUrl/:merchantId/accounttax') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/accounttax
http GET {{baseUrl}}/:merchantId/accounttax
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/accounttax
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/accounttax")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
PUT content.accounttax.update
{{baseUrl}}/:merchantId/accounttax/:accountId
QUERY PARAMS

merchantId
accountId
BODY json

{
  "accountId": "",
  "kind": "",
  "rules": [
    {
      "country": "",
      "locationId": "",
      "ratePercent": "",
      "shippingTaxed": false,
      "useGlobalRate": false
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/accounttax/:accountId");

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  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}");

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

(client/put "{{baseUrl}}/:merchantId/accounttax/:accountId" {:content-type :json
                                                                             :form-params {:accountId ""
                                                                                           :kind ""
                                                                                           :rules [{:country ""
                                                                                                    :locationId ""
                                                                                                    :ratePercent ""
                                                                                                    :shippingTaxed false
                                                                                                    :useGlobalRate false}]}})
require "http/client"

url = "{{baseUrl}}/:merchantId/accounttax/:accountId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/accounttax/:accountId"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/accounttax/:accountId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:merchantId/accounttax/:accountId"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}")

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

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

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

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

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

}
PUT /baseUrl/:merchantId/accounttax/:accountId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 194

{
  "accountId": "",
  "kind": "",
  "rules": [
    {
      "country": "",
      "locationId": "",
      "ratePercent": "",
      "shippingTaxed": false,
      "useGlobalRate": false
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:merchantId/accounttax/:accountId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/accounttax/:accountId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounttax/:accountId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:merchantId/accounttax/:accountId")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  kind: '',
  rules: [
    {
      country: '',
      locationId: '',
      ratePercent: '',
      shippingTaxed: false,
      useGlobalRate: false
    }
  ]
});

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

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

xhr.open('PUT', '{{baseUrl}}/:merchantId/accounttax/:accountId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/accounttax/:accountId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    kind: '',
    rules: [
      {
        country: '',
        locationId: '',
        ratePercent: '',
        shippingTaxed: false,
        useGlobalRate: false
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/accounttax/:accountId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","kind":"","rules":[{"country":"","locationId":"","ratePercent":"","shippingTaxed":false,"useGlobalRate":false}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/accounttax/:accountId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "kind": "",\n  "rules": [\n    {\n      "country": "",\n      "locationId": "",\n      "ratePercent": "",\n      "shippingTaxed": false,\n      "useGlobalRate": false\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/accounttax/:accountId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/accounttax/:accountId',
  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({
  accountId: '',
  kind: '',
  rules: [
    {
      country: '',
      locationId: '',
      ratePercent: '',
      shippingTaxed: false,
      useGlobalRate: false
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/accounttax/:accountId',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    kind: '',
    rules: [
      {
        country: '',
        locationId: '',
        ratePercent: '',
        shippingTaxed: false,
        useGlobalRate: false
      }
    ]
  },
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/:merchantId/accounttax/:accountId');

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

req.type('json');
req.send({
  accountId: '',
  kind: '',
  rules: [
    {
      country: '',
      locationId: '',
      ratePercent: '',
      shippingTaxed: false,
      useGlobalRate: false
    }
  ]
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/accounttax/:accountId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    kind: '',
    rules: [
      {
        country: '',
        locationId: '',
        ratePercent: '',
        shippingTaxed: false,
        useGlobalRate: false
      }
    ]
  }
};

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

const url = '{{baseUrl}}/:merchantId/accounttax/:accountId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","kind":"","rules":[{"country":"","locationId":"","ratePercent":"","shippingTaxed":false,"useGlobalRate":false}]}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"kind": @"",
                              @"rules": @[ @{ @"country": @"", @"locationId": @"", @"ratePercent": @"", @"shippingTaxed": @NO, @"useGlobalRate": @NO } ] };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/:merchantId/accounttax/:accountId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/accounttax/:accountId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'kind' => '',
    'rules' => [
        [
                'country' => '',
                'locationId' => '',
                'ratePercent' => '',
                'shippingTaxed' => null,
                'useGlobalRate' => null
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:merchantId/accounttax/:accountId', [
  'body' => '{
  "accountId": "",
  "kind": "",
  "rules": [
    {
      "country": "",
      "locationId": "",
      "ratePercent": "",
      "shippingTaxed": false,
      "useGlobalRate": false
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/accounttax/:accountId');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'kind' => '',
  'rules' => [
    [
        'country' => '',
        'locationId' => '',
        'ratePercent' => '',
        'shippingTaxed' => null,
        'useGlobalRate' => null
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'kind' => '',
  'rules' => [
    [
        'country' => '',
        'locationId' => '',
        'ratePercent' => '',
        'shippingTaxed' => null,
        'useGlobalRate' => null
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/accounttax/:accountId');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/accounttax/:accountId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "kind": "",
  "rules": [
    {
      "country": "",
      "locationId": "",
      "ratePercent": "",
      "shippingTaxed": false,
      "useGlobalRate": false
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/accounttax/:accountId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "kind": "",
  "rules": [
    {
      "country": "",
      "locationId": "",
      "ratePercent": "",
      "shippingTaxed": false,
      "useGlobalRate": false
    }
  ]
}'
import http.client

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

payload = "{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}"

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

conn.request("PUT", "/baseUrl/:merchantId/accounttax/:accountId", payload, headers)

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

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

url = "{{baseUrl}}/:merchantId/accounttax/:accountId"

payload = {
    "accountId": "",
    "kind": "",
    "rules": [
        {
            "country": "",
            "locationId": "",
            "ratePercent": "",
            "shippingTaxed": False,
            "useGlobalRate": False
        }
    ]
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/:merchantId/accounttax/:accountId"

payload <- "{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/:merchantId/accounttax/:accountId")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}"

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

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

response = conn.put('/baseUrl/:merchantId/accounttax/:accountId') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"kind\": \"\",\n  \"rules\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"ratePercent\": \"\",\n      \"shippingTaxed\": false,\n      \"useGlobalRate\": false\n    }\n  ]\n}"
end

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

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

    let payload = json!({
        "accountId": "",
        "kind": "",
        "rules": (
            json!({
                "country": "",
                "locationId": "",
                "ratePercent": "",
                "shippingTaxed": false,
                "useGlobalRate": false
            })
        )
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:merchantId/accounttax/:accountId \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "kind": "",
  "rules": [
    {
      "country": "",
      "locationId": "",
      "ratePercent": "",
      "shippingTaxed": false,
      "useGlobalRate": false
    }
  ]
}'
echo '{
  "accountId": "",
  "kind": "",
  "rules": [
    {
      "country": "",
      "locationId": "",
      "ratePercent": "",
      "shippingTaxed": false,
      "useGlobalRate": false
    }
  ]
}' |  \
  http PUT {{baseUrl}}/:merchantId/accounttax/:accountId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "kind": "",\n  "rules": [\n    {\n      "country": "",\n      "locationId": "",\n      "ratePercent": "",\n      "shippingTaxed": false,\n      "useGlobalRate": false\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/accounttax/:accountId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "kind": "",
  "rules": [
    [
      "country": "",
      "locationId": "",
      "ratePercent": "",
      "shippingTaxed": false,
      "useGlobalRate": false
    ]
  ]
] as [String : Any]

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

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

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

dataTask.resume()
POST content.datafeeds.custombatch
{{baseUrl}}/datafeeds/batch
BODY json

{
  "entries": [
    {
      "batchId": 0,
      "datafeed": {
        "attributeLanguage": "",
        "contentLanguage": "",
        "contentType": "",
        "fetchSchedule": {
          "dayOfMonth": 0,
          "fetchUrl": "",
          "hour": 0,
          "minuteOfHour": 0,
          "password": "",
          "paused": false,
          "timeZone": "",
          "username": "",
          "weekday": ""
        },
        "fileName": "",
        "format": {
          "columnDelimiter": "",
          "fileEncoding": "",
          "quotingMode": ""
        },
        "id": "",
        "intendedDestinations": [],
        "kind": "",
        "name": "",
        "targetCountry": "",
        "targets": [
          {
            "country": "",
            "excludedDestinations": [],
            "includedDestinations": [],
            "language": ""
          }
        ]
      },
      "datafeedId": "",
      "merchantId": "",
      "method": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/datafeeds/batch" {:content-type :json
                                                            :form-params {:entries [{:batchId 0
                                                                                     :datafeed {:attributeLanguage ""
                                                                                                :contentLanguage ""
                                                                                                :contentType ""
                                                                                                :fetchSchedule {:dayOfMonth 0
                                                                                                                :fetchUrl ""
                                                                                                                :hour 0
                                                                                                                :minuteOfHour 0
                                                                                                                :password ""
                                                                                                                :paused false
                                                                                                                :timeZone ""
                                                                                                                :username ""
                                                                                                                :weekday ""}
                                                                                                :fileName ""
                                                                                                :format {:columnDelimiter ""
                                                                                                         :fileEncoding ""
                                                                                                         :quotingMode ""}
                                                                                                :id ""
                                                                                                :intendedDestinations []
                                                                                                :kind ""
                                                                                                :name ""
                                                                                                :targetCountry ""
                                                                                                :targets [{:country ""
                                                                                                           :excludedDestinations []
                                                                                                           :includedDestinations []
                                                                                                           :language ""}]}
                                                                                     :datafeedId ""
                                                                                     :merchantId ""
                                                                                     :method ""}]}})
require "http/client"

url = "{{baseUrl}}/datafeeds/batch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/datafeeds/batch"),
    Content = new StringContent("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/datafeeds/batch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/datafeeds/batch"

	payload := strings.NewReader("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")

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

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

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

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

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

}
POST /baseUrl/datafeeds/batch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 969

{
  "entries": [
    {
      "batchId": 0,
      "datafeed": {
        "attributeLanguage": "",
        "contentLanguage": "",
        "contentType": "",
        "fetchSchedule": {
          "dayOfMonth": 0,
          "fetchUrl": "",
          "hour": 0,
          "minuteOfHour": 0,
          "password": "",
          "paused": false,
          "timeZone": "",
          "username": "",
          "weekday": ""
        },
        "fileName": "",
        "format": {
          "columnDelimiter": "",
          "fileEncoding": "",
          "quotingMode": ""
        },
        "id": "",
        "intendedDestinations": [],
        "kind": "",
        "name": "",
        "targetCountry": "",
        "targets": [
          {
            "country": "",
            "excludedDestinations": [],
            "includedDestinations": [],
            "language": ""
          }
        ]
      },
      "datafeedId": "",
      "merchantId": "",
      "method": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/datafeeds/batch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/datafeeds/batch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/datafeeds/batch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/datafeeds/batch")
  .header("content-type", "application/json")
  .body("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  entries: [
    {
      batchId: 0,
      datafeed: {
        attributeLanguage: '',
        contentLanguage: '',
        contentType: '',
        fetchSchedule: {
          dayOfMonth: 0,
          fetchUrl: '',
          hour: 0,
          minuteOfHour: 0,
          password: '',
          paused: false,
          timeZone: '',
          username: '',
          weekday: ''
        },
        fileName: '',
        format: {
          columnDelimiter: '',
          fileEncoding: '',
          quotingMode: ''
        },
        id: '',
        intendedDestinations: [],
        kind: '',
        name: '',
        targetCountry: '',
        targets: [
          {
            country: '',
            excludedDestinations: [],
            includedDestinations: [],
            language: ''
          }
        ]
      },
      datafeedId: '',
      merchantId: '',
      method: ''
    }
  ]
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/datafeeds/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        batchId: 0,
        datafeed: {
          attributeLanguage: '',
          contentLanguage: '',
          contentType: '',
          fetchSchedule: {
            dayOfMonth: 0,
            fetchUrl: '',
            hour: 0,
            minuteOfHour: 0,
            password: '',
            paused: false,
            timeZone: '',
            username: '',
            weekday: ''
          },
          fileName: '',
          format: {columnDelimiter: '', fileEncoding: '', quotingMode: ''},
          id: '',
          intendedDestinations: [],
          kind: '',
          name: '',
          targetCountry: '',
          targets: [
            {country: '', excludedDestinations: [], includedDestinations: [], language: ''}
          ]
        },
        datafeedId: '',
        merchantId: '',
        method: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/datafeeds/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"batchId":0,"datafeed":{"attributeLanguage":"","contentLanguage":"","contentType":"","fetchSchedule":{"dayOfMonth":0,"fetchUrl":"","hour":0,"minuteOfHour":0,"password":"","paused":false,"timeZone":"","username":"","weekday":""},"fileName":"","format":{"columnDelimiter":"","fileEncoding":"","quotingMode":""},"id":"","intendedDestinations":[],"kind":"","name":"","targetCountry":"","targets":[{"country":"","excludedDestinations":[],"includedDestinations":[],"language":""}]},"datafeedId":"","merchantId":"","method":""}]}'
};

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}}/datafeeds/batch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entries": [\n    {\n      "batchId": 0,\n      "datafeed": {\n        "attributeLanguage": "",\n        "contentLanguage": "",\n        "contentType": "",\n        "fetchSchedule": {\n          "dayOfMonth": 0,\n          "fetchUrl": "",\n          "hour": 0,\n          "minuteOfHour": 0,\n          "password": "",\n          "paused": false,\n          "timeZone": "",\n          "username": "",\n          "weekday": ""\n        },\n        "fileName": "",\n        "format": {\n          "columnDelimiter": "",\n          "fileEncoding": "",\n          "quotingMode": ""\n        },\n        "id": "",\n        "intendedDestinations": [],\n        "kind": "",\n        "name": "",\n        "targetCountry": "",\n        "targets": [\n          {\n            "country": "",\n            "excludedDestinations": [],\n            "includedDestinations": [],\n            "language": ""\n          }\n        ]\n      },\n      "datafeedId": "",\n      "merchantId": "",\n      "method": ""\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/datafeeds/batch")
  .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/datafeeds/batch',
  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({
  entries: [
    {
      batchId: 0,
      datafeed: {
        attributeLanguage: '',
        contentLanguage: '',
        contentType: '',
        fetchSchedule: {
          dayOfMonth: 0,
          fetchUrl: '',
          hour: 0,
          minuteOfHour: 0,
          password: '',
          paused: false,
          timeZone: '',
          username: '',
          weekday: ''
        },
        fileName: '',
        format: {columnDelimiter: '', fileEncoding: '', quotingMode: ''},
        id: '',
        intendedDestinations: [],
        kind: '',
        name: '',
        targetCountry: '',
        targets: [
          {country: '', excludedDestinations: [], includedDestinations: [], language: ''}
        ]
      },
      datafeedId: '',
      merchantId: '',
      method: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/datafeeds/batch',
  headers: {'content-type': 'application/json'},
  body: {
    entries: [
      {
        batchId: 0,
        datafeed: {
          attributeLanguage: '',
          contentLanguage: '',
          contentType: '',
          fetchSchedule: {
            dayOfMonth: 0,
            fetchUrl: '',
            hour: 0,
            minuteOfHour: 0,
            password: '',
            paused: false,
            timeZone: '',
            username: '',
            weekday: ''
          },
          fileName: '',
          format: {columnDelimiter: '', fileEncoding: '', quotingMode: ''},
          id: '',
          intendedDestinations: [],
          kind: '',
          name: '',
          targetCountry: '',
          targets: [
            {country: '', excludedDestinations: [], includedDestinations: [], language: ''}
          ]
        },
        datafeedId: '',
        merchantId: '',
        method: ''
      }
    ]
  },
  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}}/datafeeds/batch');

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

req.type('json');
req.send({
  entries: [
    {
      batchId: 0,
      datafeed: {
        attributeLanguage: '',
        contentLanguage: '',
        contentType: '',
        fetchSchedule: {
          dayOfMonth: 0,
          fetchUrl: '',
          hour: 0,
          minuteOfHour: 0,
          password: '',
          paused: false,
          timeZone: '',
          username: '',
          weekday: ''
        },
        fileName: '',
        format: {
          columnDelimiter: '',
          fileEncoding: '',
          quotingMode: ''
        },
        id: '',
        intendedDestinations: [],
        kind: '',
        name: '',
        targetCountry: '',
        targets: [
          {
            country: '',
            excludedDestinations: [],
            includedDestinations: [],
            language: ''
          }
        ]
      },
      datafeedId: '',
      merchantId: '',
      method: ''
    }
  ]
});

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}}/datafeeds/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        batchId: 0,
        datafeed: {
          attributeLanguage: '',
          contentLanguage: '',
          contentType: '',
          fetchSchedule: {
            dayOfMonth: 0,
            fetchUrl: '',
            hour: 0,
            minuteOfHour: 0,
            password: '',
            paused: false,
            timeZone: '',
            username: '',
            weekday: ''
          },
          fileName: '',
          format: {columnDelimiter: '', fileEncoding: '', quotingMode: ''},
          id: '',
          intendedDestinations: [],
          kind: '',
          name: '',
          targetCountry: '',
          targets: [
            {country: '', excludedDestinations: [], includedDestinations: [], language: ''}
          ]
        },
        datafeedId: '',
        merchantId: '',
        method: ''
      }
    ]
  }
};

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

const url = '{{baseUrl}}/datafeeds/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"batchId":0,"datafeed":{"attributeLanguage":"","contentLanguage":"","contentType":"","fetchSchedule":{"dayOfMonth":0,"fetchUrl":"","hour":0,"minuteOfHour":0,"password":"","paused":false,"timeZone":"","username":"","weekday":""},"fileName":"","format":{"columnDelimiter":"","fileEncoding":"","quotingMode":""},"id":"","intendedDestinations":[],"kind":"","name":"","targetCountry":"","targets":[{"country":"","excludedDestinations":[],"includedDestinations":[],"language":""}]},"datafeedId":"","merchantId":"","method":""}]}'
};

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 = @{ @"entries": @[ @{ @"batchId": @0, @"datafeed": @{ @"attributeLanguage": @"", @"contentLanguage": @"", @"contentType": @"", @"fetchSchedule": @{ @"dayOfMonth": @0, @"fetchUrl": @"", @"hour": @0, @"minuteOfHour": @0, @"password": @"", @"paused": @NO, @"timeZone": @"", @"username": @"", @"weekday": @"" }, @"fileName": @"", @"format": @{ @"columnDelimiter": @"", @"fileEncoding": @"", @"quotingMode": @"" }, @"id": @"", @"intendedDestinations": @[  ], @"kind": @"", @"name": @"", @"targetCountry": @"", @"targets": @[ @{ @"country": @"", @"excludedDestinations": @[  ], @"includedDestinations": @[  ], @"language": @"" } ] }, @"datafeedId": @"", @"merchantId": @"", @"method": @"" } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/datafeeds/batch"]
                                                       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}}/datafeeds/batch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/datafeeds/batch",
  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([
    'entries' => [
        [
                'batchId' => 0,
                'datafeed' => [
                                'attributeLanguage' => '',
                                'contentLanguage' => '',
                                'contentType' => '',
                                'fetchSchedule' => [
                                                                'dayOfMonth' => 0,
                                                                'fetchUrl' => '',
                                                                'hour' => 0,
                                                                'minuteOfHour' => 0,
                                                                'password' => '',
                                                                'paused' => null,
                                                                'timeZone' => '',
                                                                'username' => '',
                                                                'weekday' => ''
                                ],
                                'fileName' => '',
                                'format' => [
                                                                'columnDelimiter' => '',
                                                                'fileEncoding' => '',
                                                                'quotingMode' => ''
                                ],
                                'id' => '',
                                'intendedDestinations' => [
                                                                
                                ],
                                'kind' => '',
                                'name' => '',
                                'targetCountry' => '',
                                'targets' => [
                                                                [
                                                                                                                                'country' => '',
                                                                                                                                'excludedDestinations' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'includedDestinations' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'language' => ''
                                                                ]
                                ]
                ],
                'datafeedId' => '',
                'merchantId' => '',
                'method' => ''
        ]
    ]
  ]),
  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}}/datafeeds/batch', [
  'body' => '{
  "entries": [
    {
      "batchId": 0,
      "datafeed": {
        "attributeLanguage": "",
        "contentLanguage": "",
        "contentType": "",
        "fetchSchedule": {
          "dayOfMonth": 0,
          "fetchUrl": "",
          "hour": 0,
          "minuteOfHour": 0,
          "password": "",
          "paused": false,
          "timeZone": "",
          "username": "",
          "weekday": ""
        },
        "fileName": "",
        "format": {
          "columnDelimiter": "",
          "fileEncoding": "",
          "quotingMode": ""
        },
        "id": "",
        "intendedDestinations": [],
        "kind": "",
        "name": "",
        "targetCountry": "",
        "targets": [
          {
            "country": "",
            "excludedDestinations": [],
            "includedDestinations": [],
            "language": ""
          }
        ]
      },
      "datafeedId": "",
      "merchantId": "",
      "method": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entries' => [
    [
        'batchId' => 0,
        'datafeed' => [
                'attributeLanguage' => '',
                'contentLanguage' => '',
                'contentType' => '',
                'fetchSchedule' => [
                                'dayOfMonth' => 0,
                                'fetchUrl' => '',
                                'hour' => 0,
                                'minuteOfHour' => 0,
                                'password' => '',
                                'paused' => null,
                                'timeZone' => '',
                                'username' => '',
                                'weekday' => ''
                ],
                'fileName' => '',
                'format' => [
                                'columnDelimiter' => '',
                                'fileEncoding' => '',
                                'quotingMode' => ''
                ],
                'id' => '',
                'intendedDestinations' => [
                                
                ],
                'kind' => '',
                'name' => '',
                'targetCountry' => '',
                'targets' => [
                                [
                                                                'country' => '',
                                                                'excludedDestinations' => [
                                                                                                                                
                                                                ],
                                                                'includedDestinations' => [
                                                                                                                                
                                                                ],
                                                                'language' => ''
                                ]
                ]
        ],
        'datafeedId' => '',
        'merchantId' => '',
        'method' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'entries' => [
    [
        'batchId' => 0,
        'datafeed' => [
                'attributeLanguage' => '',
                'contentLanguage' => '',
                'contentType' => '',
                'fetchSchedule' => [
                                'dayOfMonth' => 0,
                                'fetchUrl' => '',
                                'hour' => 0,
                                'minuteOfHour' => 0,
                                'password' => '',
                                'paused' => null,
                                'timeZone' => '',
                                'username' => '',
                                'weekday' => ''
                ],
                'fileName' => '',
                'format' => [
                                'columnDelimiter' => '',
                                'fileEncoding' => '',
                                'quotingMode' => ''
                ],
                'id' => '',
                'intendedDestinations' => [
                                
                ],
                'kind' => '',
                'name' => '',
                'targetCountry' => '',
                'targets' => [
                                [
                                                                'country' => '',
                                                                'excludedDestinations' => [
                                                                                                                                
                                                                ],
                                                                'includedDestinations' => [
                                                                                                                                
                                                                ],
                                                                'language' => ''
                                ]
                ]
        ],
        'datafeedId' => '',
        'merchantId' => '',
        'method' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/datafeeds/batch');
$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}}/datafeeds/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "batchId": 0,
      "datafeed": {
        "attributeLanguage": "",
        "contentLanguage": "",
        "contentType": "",
        "fetchSchedule": {
          "dayOfMonth": 0,
          "fetchUrl": "",
          "hour": 0,
          "minuteOfHour": 0,
          "password": "",
          "paused": false,
          "timeZone": "",
          "username": "",
          "weekday": ""
        },
        "fileName": "",
        "format": {
          "columnDelimiter": "",
          "fileEncoding": "",
          "quotingMode": ""
        },
        "id": "",
        "intendedDestinations": [],
        "kind": "",
        "name": "",
        "targetCountry": "",
        "targets": [
          {
            "country": "",
            "excludedDestinations": [],
            "includedDestinations": [],
            "language": ""
          }
        ]
      },
      "datafeedId": "",
      "merchantId": "",
      "method": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/datafeeds/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "batchId": 0,
      "datafeed": {
        "attributeLanguage": "",
        "contentLanguage": "",
        "contentType": "",
        "fetchSchedule": {
          "dayOfMonth": 0,
          "fetchUrl": "",
          "hour": 0,
          "minuteOfHour": 0,
          "password": "",
          "paused": false,
          "timeZone": "",
          "username": "",
          "weekday": ""
        },
        "fileName": "",
        "format": {
          "columnDelimiter": "",
          "fileEncoding": "",
          "quotingMode": ""
        },
        "id": "",
        "intendedDestinations": [],
        "kind": "",
        "name": "",
        "targetCountry": "",
        "targets": [
          {
            "country": "",
            "excludedDestinations": [],
            "includedDestinations": [],
            "language": ""
          }
        ]
      },
      "datafeedId": "",
      "merchantId": "",
      "method": ""
    }
  ]
}'
import http.client

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

payload = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

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

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

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

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

url = "{{baseUrl}}/datafeeds/batch"

payload = { "entries": [
        {
            "batchId": 0,
            "datafeed": {
                "attributeLanguage": "",
                "contentLanguage": "",
                "contentType": "",
                "fetchSchedule": {
                    "dayOfMonth": 0,
                    "fetchUrl": "",
                    "hour": 0,
                    "minuteOfHour": 0,
                    "password": "",
                    "paused": False,
                    "timeZone": "",
                    "username": "",
                    "weekday": ""
                },
                "fileName": "",
                "format": {
                    "columnDelimiter": "",
                    "fileEncoding": "",
                    "quotingMode": ""
                },
                "id": "",
                "intendedDestinations": [],
                "kind": "",
                "name": "",
                "targetCountry": "",
                "targets": [
                    {
                        "country": "",
                        "excludedDestinations": [],
                        "includedDestinations": [],
                        "language": ""
                    }
                ]
            },
            "datafeedId": "",
            "merchantId": "",
            "method": ""
        }
    ] }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/datafeeds/batch"

payload <- "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/datafeeds/batch")

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  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

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

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

response = conn.post('/baseUrl/datafeeds/batch') do |req|
  req.body = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"datafeed\": {\n        \"attributeLanguage\": \"\",\n        \"contentLanguage\": \"\",\n        \"contentType\": \"\",\n        \"fetchSchedule\": {\n          \"dayOfMonth\": 0,\n          \"fetchUrl\": \"\",\n          \"hour\": 0,\n          \"minuteOfHour\": 0,\n          \"password\": \"\",\n          \"paused\": false,\n          \"timeZone\": \"\",\n          \"username\": \"\",\n          \"weekday\": \"\"\n        },\n        \"fileName\": \"\",\n        \"format\": {\n          \"columnDelimiter\": \"\",\n          \"fileEncoding\": \"\",\n          \"quotingMode\": \"\"\n        },\n        \"id\": \"\",\n        \"intendedDestinations\": [],\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"targetCountry\": \"\",\n        \"targets\": [\n          {\n            \"country\": \"\",\n            \"excludedDestinations\": [],\n            \"includedDestinations\": [],\n            \"language\": \"\"\n          }\n        ]\n      },\n      \"datafeedId\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"
end

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

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

    let payload = json!({"entries": (
            json!({
                "batchId": 0,
                "datafeed": json!({
                    "attributeLanguage": "",
                    "contentLanguage": "",
                    "contentType": "",
                    "fetchSchedule": json!({
                        "dayOfMonth": 0,
                        "fetchUrl": "",
                        "hour": 0,
                        "minuteOfHour": 0,
                        "password": "",
                        "paused": false,
                        "timeZone": "",
                        "username": "",
                        "weekday": ""
                    }),
                    "fileName": "",
                    "format": json!({
                        "columnDelimiter": "",
                        "fileEncoding": "",
                        "quotingMode": ""
                    }),
                    "id": "",
                    "intendedDestinations": (),
                    "kind": "",
                    "name": "",
                    "targetCountry": "",
                    "targets": (
                        json!({
                            "country": "",
                            "excludedDestinations": (),
                            "includedDestinations": (),
                            "language": ""
                        })
                    )
                }),
                "datafeedId": "",
                "merchantId": "",
                "method": ""
            })
        )});

    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}}/datafeeds/batch \
  --header 'content-type: application/json' \
  --data '{
  "entries": [
    {
      "batchId": 0,
      "datafeed": {
        "attributeLanguage": "",
        "contentLanguage": "",
        "contentType": "",
        "fetchSchedule": {
          "dayOfMonth": 0,
          "fetchUrl": "",
          "hour": 0,
          "minuteOfHour": 0,
          "password": "",
          "paused": false,
          "timeZone": "",
          "username": "",
          "weekday": ""
        },
        "fileName": "",
        "format": {
          "columnDelimiter": "",
          "fileEncoding": "",
          "quotingMode": ""
        },
        "id": "",
        "intendedDestinations": [],
        "kind": "",
        "name": "",
        "targetCountry": "",
        "targets": [
          {
            "country": "",
            "excludedDestinations": [],
            "includedDestinations": [],
            "language": ""
          }
        ]
      },
      "datafeedId": "",
      "merchantId": "",
      "method": ""
    }
  ]
}'
echo '{
  "entries": [
    {
      "batchId": 0,
      "datafeed": {
        "attributeLanguage": "",
        "contentLanguage": "",
        "contentType": "",
        "fetchSchedule": {
          "dayOfMonth": 0,
          "fetchUrl": "",
          "hour": 0,
          "minuteOfHour": 0,
          "password": "",
          "paused": false,
          "timeZone": "",
          "username": "",
          "weekday": ""
        },
        "fileName": "",
        "format": {
          "columnDelimiter": "",
          "fileEncoding": "",
          "quotingMode": ""
        },
        "id": "",
        "intendedDestinations": [],
        "kind": "",
        "name": "",
        "targetCountry": "",
        "targets": [
          {
            "country": "",
            "excludedDestinations": [],
            "includedDestinations": [],
            "language": ""
          }
        ]
      },
      "datafeedId": "",
      "merchantId": "",
      "method": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/datafeeds/batch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entries": [\n    {\n      "batchId": 0,\n      "datafeed": {\n        "attributeLanguage": "",\n        "contentLanguage": "",\n        "contentType": "",\n        "fetchSchedule": {\n          "dayOfMonth": 0,\n          "fetchUrl": "",\n          "hour": 0,\n          "minuteOfHour": 0,\n          "password": "",\n          "paused": false,\n          "timeZone": "",\n          "username": "",\n          "weekday": ""\n        },\n        "fileName": "",\n        "format": {\n          "columnDelimiter": "",\n          "fileEncoding": "",\n          "quotingMode": ""\n        },\n        "id": "",\n        "intendedDestinations": [],\n        "kind": "",\n        "name": "",\n        "targetCountry": "",\n        "targets": [\n          {\n            "country": "",\n            "excludedDestinations": [],\n            "includedDestinations": [],\n            "language": ""\n          }\n        ]\n      },\n      "datafeedId": "",\n      "merchantId": "",\n      "method": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/datafeeds/batch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["entries": [
    [
      "batchId": 0,
      "datafeed": [
        "attributeLanguage": "",
        "contentLanguage": "",
        "contentType": "",
        "fetchSchedule": [
          "dayOfMonth": 0,
          "fetchUrl": "",
          "hour": 0,
          "minuteOfHour": 0,
          "password": "",
          "paused": false,
          "timeZone": "",
          "username": "",
          "weekday": ""
        ],
        "fileName": "",
        "format": [
          "columnDelimiter": "",
          "fileEncoding": "",
          "quotingMode": ""
        ],
        "id": "",
        "intendedDestinations": [],
        "kind": "",
        "name": "",
        "targetCountry": "",
        "targets": [
          [
            "country": "",
            "excludedDestinations": [],
            "includedDestinations": [],
            "language": ""
          ]
        ]
      ],
      "datafeedId": "",
      "merchantId": "",
      "method": ""
    ]
  ]] as [String : Any]

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

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

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

dataTask.resume()
DELETE content.datafeeds.delete
{{baseUrl}}/:merchantId/datafeeds/:datafeedId
QUERY PARAMS

merchantId
datafeedId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/datafeeds/:datafeedId");

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

(client/delete "{{baseUrl}}/:merchantId/datafeeds/:datafeedId")
require "http/client"

url = "{{baseUrl}}/:merchantId/datafeeds/:datafeedId"

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

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

func main() {

	url := "{{baseUrl}}/:merchantId/datafeeds/:datafeedId"

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

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

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

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

}
DELETE /baseUrl/:merchantId/datafeeds/:datafeedId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:merchantId/datafeeds/:datafeedId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeeds/:datafeedId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:merchantId/datafeeds/:datafeedId")
  .asString();
const data = null;

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

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

xhr.open('DELETE', '{{baseUrl}}/:merchantId/datafeeds/:datafeedId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/datafeeds/:datafeedId';
const options = {method: 'DELETE'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeeds/:datafeedId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/datafeeds/:datafeedId',
  headers: {}
};

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

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/:merchantId/datafeeds/:datafeedId');

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId'
};

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

const url = '{{baseUrl}}/:merchantId/datafeeds/:datafeedId';
const options = {method: 'DELETE'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/datafeeds/:datafeedId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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

let uri = Uri.of_string "{{baseUrl}}/:merchantId/datafeeds/:datafeedId" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:merchantId/datafeeds/:datafeedId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/datafeeds/:datafeedId');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/datafeeds/:datafeedId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/datafeeds/:datafeedId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/datafeeds/:datafeedId' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/:merchantId/datafeeds/:datafeedId")

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

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

url = "{{baseUrl}}/:merchantId/datafeeds/:datafeedId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/:merchantId/datafeeds/:datafeedId"

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

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

url = URI("{{baseUrl}}/:merchantId/datafeeds/:datafeedId")

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

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

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

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

response = conn.delete('/baseUrl/:merchantId/datafeeds/:datafeedId') do |req|
end

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

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

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

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

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:merchantId/datafeeds/:datafeedId
http DELETE {{baseUrl}}/:merchantId/datafeeds/:datafeedId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:merchantId/datafeeds/:datafeedId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/datafeeds/:datafeedId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

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

dataTask.resume()
POST content.datafeeds.fetchnow
{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow
QUERY PARAMS

merchantId
datafeedId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow");

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

(client/post "{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow")
require "http/client"

url = "{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow"

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

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

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

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

}
POST /baseUrl/:merchantId/datafeeds/:datafeedId/fetchNow HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow")
  .asString();
const data = null;

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

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

xhr.open('POST', '{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/datafeeds/:datafeedId/fetchNow',
  headers: {}
};

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow'
};

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

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

const req = unirest('POST', '{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow');

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}}/:merchantId/datafeeds/:datafeedId/fetchNow'
};

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

const url = '{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow';
const options = {method: 'POST'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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

let uri = Uri.of_string "{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow');
$request->setMethod(HTTP_METH_POST);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/:merchantId/datafeeds/:datafeedId/fetchNow")

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

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

url = "{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow"

response = requests.post(url)

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

url <- "{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow"

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

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

url = URI("{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow")

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

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

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

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

response = conn.post('/baseUrl/:merchantId/datafeeds/:datafeedId/fetchNow') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow
http POST {{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/datafeeds/:datafeedId/fetchNow")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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

dataTask.resume()
GET content.datafeeds.get
{{baseUrl}}/:merchantId/datafeeds/:datafeedId
QUERY PARAMS

merchantId
datafeedId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/datafeeds/:datafeedId");

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

(client/get "{{baseUrl}}/:merchantId/datafeeds/:datafeedId")
require "http/client"

url = "{{baseUrl}}/:merchantId/datafeeds/:datafeedId"

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

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

func main() {

	url := "{{baseUrl}}/:merchantId/datafeeds/:datafeedId"

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

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

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

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

}
GET /baseUrl/:merchantId/datafeeds/:datafeedId HTTP/1.1
Host: example.com

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

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeeds/:datafeedId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/datafeeds/:datafeedId")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/:merchantId/datafeeds/:datafeedId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/datafeeds/:datafeedId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeeds/:datafeedId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/datafeeds/:datafeedId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/datafeeds/:datafeedId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/datafeeds/:datafeedId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/datafeeds/:datafeedId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/datafeeds/:datafeedId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/datafeeds/:datafeedId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/datafeeds/:datafeedId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/datafeeds/:datafeedId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/datafeeds/:datafeedId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/datafeeds/:datafeedId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/datafeeds/:datafeedId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/datafeeds/:datafeedId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/datafeeds/:datafeedId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/datafeeds/:datafeedId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/datafeeds/:datafeedId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/datafeeds/:datafeedId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/datafeeds/:datafeedId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/datafeeds/:datafeedId
http GET {{baseUrl}}/:merchantId/datafeeds/:datafeedId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/datafeeds/:datafeedId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/datafeeds/:datafeedId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.datafeeds.insert
{{baseUrl}}/:merchantId/datafeeds
QUERY PARAMS

merchantId
BODY json

{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/datafeeds");

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  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/datafeeds" {:content-type :json
                                                                  :form-params {:attributeLanguage ""
                                                                                :contentLanguage ""
                                                                                :contentType ""
                                                                                :fetchSchedule {:dayOfMonth 0
                                                                                                :fetchUrl ""
                                                                                                :hour 0
                                                                                                :minuteOfHour 0
                                                                                                :password ""
                                                                                                :paused false
                                                                                                :timeZone ""
                                                                                                :username ""
                                                                                                :weekday ""}
                                                                                :fileName ""
                                                                                :format {:columnDelimiter ""
                                                                                         :fileEncoding ""
                                                                                         :quotingMode ""}
                                                                                :id ""
                                                                                :intendedDestinations []
                                                                                :kind ""
                                                                                :name ""
                                                                                :targetCountry ""
                                                                                :targets [{:country ""
                                                                                           :excludedDestinations []
                                                                                           :includedDestinations []
                                                                                           :language ""}]}})
require "http/client"

url = "{{baseUrl}}/:merchantId/datafeeds"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/datafeeds"),
    Content = new StringContent("{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/datafeeds");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/datafeeds"

	payload := strings.NewReader("{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:merchantId/datafeeds HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 624

{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/datafeeds")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/datafeeds"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeeds")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/datafeeds")
  .header("content-type", "application/json")
  .body("{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  attributeLanguage: '',
  contentLanguage: '',
  contentType: '',
  fetchSchedule: {
    dayOfMonth: 0,
    fetchUrl: '',
    hour: 0,
    minuteOfHour: 0,
    password: '',
    paused: false,
    timeZone: '',
    username: '',
    weekday: ''
  },
  fileName: '',
  format: {
    columnDelimiter: '',
    fileEncoding: '',
    quotingMode: ''
  },
  id: '',
  intendedDestinations: [],
  kind: '',
  name: '',
  targetCountry: '',
  targets: [
    {
      country: '',
      excludedDestinations: [],
      includedDestinations: [],
      language: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/datafeeds');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/datafeeds',
  headers: {'content-type': 'application/json'},
  data: {
    attributeLanguage: '',
    contentLanguage: '',
    contentType: '',
    fetchSchedule: {
      dayOfMonth: 0,
      fetchUrl: '',
      hour: 0,
      minuteOfHour: 0,
      password: '',
      paused: false,
      timeZone: '',
      username: '',
      weekday: ''
    },
    fileName: '',
    format: {columnDelimiter: '', fileEncoding: '', quotingMode: ''},
    id: '',
    intendedDestinations: [],
    kind: '',
    name: '',
    targetCountry: '',
    targets: [
      {country: '', excludedDestinations: [], includedDestinations: [], language: ''}
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/datafeeds';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attributeLanguage":"","contentLanguage":"","contentType":"","fetchSchedule":{"dayOfMonth":0,"fetchUrl":"","hour":0,"minuteOfHour":0,"password":"","paused":false,"timeZone":"","username":"","weekday":""},"fileName":"","format":{"columnDelimiter":"","fileEncoding":"","quotingMode":""},"id":"","intendedDestinations":[],"kind":"","name":"","targetCountry":"","targets":[{"country":"","excludedDestinations":[],"includedDestinations":[],"language":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/datafeeds',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attributeLanguage": "",\n  "contentLanguage": "",\n  "contentType": "",\n  "fetchSchedule": {\n    "dayOfMonth": 0,\n    "fetchUrl": "",\n    "hour": 0,\n    "minuteOfHour": 0,\n    "password": "",\n    "paused": false,\n    "timeZone": "",\n    "username": "",\n    "weekday": ""\n  },\n  "fileName": "",\n  "format": {\n    "columnDelimiter": "",\n    "fileEncoding": "",\n    "quotingMode": ""\n  },\n  "id": "",\n  "intendedDestinations": [],\n  "kind": "",\n  "name": "",\n  "targetCountry": "",\n  "targets": [\n    {\n      "country": "",\n      "excludedDestinations": [],\n      "includedDestinations": [],\n      "language": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeeds")
  .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/:merchantId/datafeeds',
  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({
  attributeLanguage: '',
  contentLanguage: '',
  contentType: '',
  fetchSchedule: {
    dayOfMonth: 0,
    fetchUrl: '',
    hour: 0,
    minuteOfHour: 0,
    password: '',
    paused: false,
    timeZone: '',
    username: '',
    weekday: ''
  },
  fileName: '',
  format: {columnDelimiter: '', fileEncoding: '', quotingMode: ''},
  id: '',
  intendedDestinations: [],
  kind: '',
  name: '',
  targetCountry: '',
  targets: [
    {country: '', excludedDestinations: [], includedDestinations: [], language: ''}
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/datafeeds',
  headers: {'content-type': 'application/json'},
  body: {
    attributeLanguage: '',
    contentLanguage: '',
    contentType: '',
    fetchSchedule: {
      dayOfMonth: 0,
      fetchUrl: '',
      hour: 0,
      minuteOfHour: 0,
      password: '',
      paused: false,
      timeZone: '',
      username: '',
      weekday: ''
    },
    fileName: '',
    format: {columnDelimiter: '', fileEncoding: '', quotingMode: ''},
    id: '',
    intendedDestinations: [],
    kind: '',
    name: '',
    targetCountry: '',
    targets: [
      {country: '', excludedDestinations: [], includedDestinations: [], language: ''}
    ]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:merchantId/datafeeds');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  attributeLanguage: '',
  contentLanguage: '',
  contentType: '',
  fetchSchedule: {
    dayOfMonth: 0,
    fetchUrl: '',
    hour: 0,
    minuteOfHour: 0,
    password: '',
    paused: false,
    timeZone: '',
    username: '',
    weekday: ''
  },
  fileName: '',
  format: {
    columnDelimiter: '',
    fileEncoding: '',
    quotingMode: ''
  },
  id: '',
  intendedDestinations: [],
  kind: '',
  name: '',
  targetCountry: '',
  targets: [
    {
      country: '',
      excludedDestinations: [],
      includedDestinations: [],
      language: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/datafeeds',
  headers: {'content-type': 'application/json'},
  data: {
    attributeLanguage: '',
    contentLanguage: '',
    contentType: '',
    fetchSchedule: {
      dayOfMonth: 0,
      fetchUrl: '',
      hour: 0,
      minuteOfHour: 0,
      password: '',
      paused: false,
      timeZone: '',
      username: '',
      weekday: ''
    },
    fileName: '',
    format: {columnDelimiter: '', fileEncoding: '', quotingMode: ''},
    id: '',
    intendedDestinations: [],
    kind: '',
    name: '',
    targetCountry: '',
    targets: [
      {country: '', excludedDestinations: [], includedDestinations: [], language: ''}
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/datafeeds';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attributeLanguage":"","contentLanguage":"","contentType":"","fetchSchedule":{"dayOfMonth":0,"fetchUrl":"","hour":0,"minuteOfHour":0,"password":"","paused":false,"timeZone":"","username":"","weekday":""},"fileName":"","format":{"columnDelimiter":"","fileEncoding":"","quotingMode":""},"id":"","intendedDestinations":[],"kind":"","name":"","targetCountry":"","targets":[{"country":"","excludedDestinations":[],"includedDestinations":[],"language":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"attributeLanguage": @"",
                              @"contentLanguage": @"",
                              @"contentType": @"",
                              @"fetchSchedule": @{ @"dayOfMonth": @0, @"fetchUrl": @"", @"hour": @0, @"minuteOfHour": @0, @"password": @"", @"paused": @NO, @"timeZone": @"", @"username": @"", @"weekday": @"" },
                              @"fileName": @"",
                              @"format": @{ @"columnDelimiter": @"", @"fileEncoding": @"", @"quotingMode": @"" },
                              @"id": @"",
                              @"intendedDestinations": @[  ],
                              @"kind": @"",
                              @"name": @"",
                              @"targetCountry": @"",
                              @"targets": @[ @{ @"country": @"", @"excludedDestinations": @[  ], @"includedDestinations": @[  ], @"language": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/datafeeds"]
                                                       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}}/:merchantId/datafeeds" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/datafeeds",
  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([
    'attributeLanguage' => '',
    'contentLanguage' => '',
    'contentType' => '',
    'fetchSchedule' => [
        'dayOfMonth' => 0,
        'fetchUrl' => '',
        'hour' => 0,
        'minuteOfHour' => 0,
        'password' => '',
        'paused' => null,
        'timeZone' => '',
        'username' => '',
        'weekday' => ''
    ],
    'fileName' => '',
    'format' => [
        'columnDelimiter' => '',
        'fileEncoding' => '',
        'quotingMode' => ''
    ],
    'id' => '',
    'intendedDestinations' => [
        
    ],
    'kind' => '',
    'name' => '',
    'targetCountry' => '',
    'targets' => [
        [
                'country' => '',
                'excludedDestinations' => [
                                
                ],
                'includedDestinations' => [
                                
                ],
                'language' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:merchantId/datafeeds', [
  'body' => '{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/datafeeds');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attributeLanguage' => '',
  'contentLanguage' => '',
  'contentType' => '',
  'fetchSchedule' => [
    'dayOfMonth' => 0,
    'fetchUrl' => '',
    'hour' => 0,
    'minuteOfHour' => 0,
    'password' => '',
    'paused' => null,
    'timeZone' => '',
    'username' => '',
    'weekday' => ''
  ],
  'fileName' => '',
  'format' => [
    'columnDelimiter' => '',
    'fileEncoding' => '',
    'quotingMode' => ''
  ],
  'id' => '',
  'intendedDestinations' => [
    
  ],
  'kind' => '',
  'name' => '',
  'targetCountry' => '',
  'targets' => [
    [
        'country' => '',
        'excludedDestinations' => [
                
        ],
        'includedDestinations' => [
                
        ],
        'language' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attributeLanguage' => '',
  'contentLanguage' => '',
  'contentType' => '',
  'fetchSchedule' => [
    'dayOfMonth' => 0,
    'fetchUrl' => '',
    'hour' => 0,
    'minuteOfHour' => 0,
    'password' => '',
    'paused' => null,
    'timeZone' => '',
    'username' => '',
    'weekday' => ''
  ],
  'fileName' => '',
  'format' => [
    'columnDelimiter' => '',
    'fileEncoding' => '',
    'quotingMode' => ''
  ],
  'id' => '',
  'intendedDestinations' => [
    
  ],
  'kind' => '',
  'name' => '',
  'targetCountry' => '',
  'targets' => [
    [
        'country' => '',
        'excludedDestinations' => [
                
        ],
        'includedDestinations' => [
                
        ],
        'language' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/datafeeds');
$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}}/:merchantId/datafeeds' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/datafeeds' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/datafeeds", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/datafeeds"

payload = {
    "attributeLanguage": "",
    "contentLanguage": "",
    "contentType": "",
    "fetchSchedule": {
        "dayOfMonth": 0,
        "fetchUrl": "",
        "hour": 0,
        "minuteOfHour": 0,
        "password": "",
        "paused": False,
        "timeZone": "",
        "username": "",
        "weekday": ""
    },
    "fileName": "",
    "format": {
        "columnDelimiter": "",
        "fileEncoding": "",
        "quotingMode": ""
    },
    "id": "",
    "intendedDestinations": [],
    "kind": "",
    "name": "",
    "targetCountry": "",
    "targets": [
        {
            "country": "",
            "excludedDestinations": [],
            "includedDestinations": [],
            "language": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/datafeeds"

payload <- "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/datafeeds")

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  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:merchantId/datafeeds') do |req|
  req.body = "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/datafeeds";

    let payload = json!({
        "attributeLanguage": "",
        "contentLanguage": "",
        "contentType": "",
        "fetchSchedule": json!({
            "dayOfMonth": 0,
            "fetchUrl": "",
            "hour": 0,
            "minuteOfHour": 0,
            "password": "",
            "paused": false,
            "timeZone": "",
            "username": "",
            "weekday": ""
        }),
        "fileName": "",
        "format": json!({
            "columnDelimiter": "",
            "fileEncoding": "",
            "quotingMode": ""
        }),
        "id": "",
        "intendedDestinations": (),
        "kind": "",
        "name": "",
        "targetCountry": "",
        "targets": (
            json!({
                "country": "",
                "excludedDestinations": (),
                "includedDestinations": (),
                "language": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:merchantId/datafeeds \
  --header 'content-type: application/json' \
  --data '{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}'
echo '{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/:merchantId/datafeeds \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "attributeLanguage": "",\n  "contentLanguage": "",\n  "contentType": "",\n  "fetchSchedule": {\n    "dayOfMonth": 0,\n    "fetchUrl": "",\n    "hour": 0,\n    "minuteOfHour": 0,\n    "password": "",\n    "paused": false,\n    "timeZone": "",\n    "username": "",\n    "weekday": ""\n  },\n  "fileName": "",\n  "format": {\n    "columnDelimiter": "",\n    "fileEncoding": "",\n    "quotingMode": ""\n  },\n  "id": "",\n  "intendedDestinations": [],\n  "kind": "",\n  "name": "",\n  "targetCountry": "",\n  "targets": [\n    {\n      "country": "",\n      "excludedDestinations": [],\n      "includedDestinations": [],\n      "language": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/datafeeds
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": [
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  ],
  "fileName": "",
  "format": [
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  ],
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    [
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/datafeeds")! 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()
GET content.datafeeds.list
{{baseUrl}}/:merchantId/datafeeds
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/datafeeds");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/datafeeds")
require "http/client"

url = "{{baseUrl}}/:merchantId/datafeeds"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/datafeeds"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/datafeeds");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/datafeeds"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/datafeeds HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/datafeeds")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/datafeeds"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeeds")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/datafeeds")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/datafeeds');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/datafeeds'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/datafeeds';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/datafeeds',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeeds")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/datafeeds',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/datafeeds'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/datafeeds');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/datafeeds'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/datafeeds';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/datafeeds"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/datafeeds" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/datafeeds",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/datafeeds');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/datafeeds');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/datafeeds');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/datafeeds' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/datafeeds' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/datafeeds")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/datafeeds"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/datafeeds"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/datafeeds")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/datafeeds') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/datafeeds";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/datafeeds
http GET {{baseUrl}}/:merchantId/datafeeds
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/datafeeds
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/datafeeds")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT content.datafeeds.update
{{baseUrl}}/:merchantId/datafeeds/:datafeedId
QUERY PARAMS

merchantId
datafeedId
BODY json

{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/datafeeds/:datafeedId");

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  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:merchantId/datafeeds/:datafeedId" {:content-type :json
                                                                             :form-params {:attributeLanguage ""
                                                                                           :contentLanguage ""
                                                                                           :contentType ""
                                                                                           :fetchSchedule {:dayOfMonth 0
                                                                                                           :fetchUrl ""
                                                                                                           :hour 0
                                                                                                           :minuteOfHour 0
                                                                                                           :password ""
                                                                                                           :paused false
                                                                                                           :timeZone ""
                                                                                                           :username ""
                                                                                                           :weekday ""}
                                                                                           :fileName ""
                                                                                           :format {:columnDelimiter ""
                                                                                                    :fileEncoding ""
                                                                                                    :quotingMode ""}
                                                                                           :id ""
                                                                                           :intendedDestinations []
                                                                                           :kind ""
                                                                                           :name ""
                                                                                           :targetCountry ""
                                                                                           :targets [{:country ""
                                                                                                      :excludedDestinations []
                                                                                                      :includedDestinations []
                                                                                                      :language ""}]}})
require "http/client"

url = "{{baseUrl}}/:merchantId/datafeeds/:datafeedId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/datafeeds/:datafeedId"),
    Content = new StringContent("{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/datafeeds/:datafeedId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/datafeeds/:datafeedId"

	payload := strings.NewReader("{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:merchantId/datafeeds/:datafeedId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 624

{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:merchantId/datafeeds/:datafeedId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/datafeeds/:datafeedId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeeds/:datafeedId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:merchantId/datafeeds/:datafeedId")
  .header("content-type", "application/json")
  .body("{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  attributeLanguage: '',
  contentLanguage: '',
  contentType: '',
  fetchSchedule: {
    dayOfMonth: 0,
    fetchUrl: '',
    hour: 0,
    minuteOfHour: 0,
    password: '',
    paused: false,
    timeZone: '',
    username: '',
    weekday: ''
  },
  fileName: '',
  format: {
    columnDelimiter: '',
    fileEncoding: '',
    quotingMode: ''
  },
  id: '',
  intendedDestinations: [],
  kind: '',
  name: '',
  targetCountry: '',
  targets: [
    {
      country: '',
      excludedDestinations: [],
      includedDestinations: [],
      language: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:merchantId/datafeeds/:datafeedId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId',
  headers: {'content-type': 'application/json'},
  data: {
    attributeLanguage: '',
    contentLanguage: '',
    contentType: '',
    fetchSchedule: {
      dayOfMonth: 0,
      fetchUrl: '',
      hour: 0,
      minuteOfHour: 0,
      password: '',
      paused: false,
      timeZone: '',
      username: '',
      weekday: ''
    },
    fileName: '',
    format: {columnDelimiter: '', fileEncoding: '', quotingMode: ''},
    id: '',
    intendedDestinations: [],
    kind: '',
    name: '',
    targetCountry: '',
    targets: [
      {country: '', excludedDestinations: [], includedDestinations: [], language: ''}
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/datafeeds/:datafeedId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"attributeLanguage":"","contentLanguage":"","contentType":"","fetchSchedule":{"dayOfMonth":0,"fetchUrl":"","hour":0,"minuteOfHour":0,"password":"","paused":false,"timeZone":"","username":"","weekday":""},"fileName":"","format":{"columnDelimiter":"","fileEncoding":"","quotingMode":""},"id":"","intendedDestinations":[],"kind":"","name":"","targetCountry":"","targets":[{"country":"","excludedDestinations":[],"includedDestinations":[],"language":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attributeLanguage": "",\n  "contentLanguage": "",\n  "contentType": "",\n  "fetchSchedule": {\n    "dayOfMonth": 0,\n    "fetchUrl": "",\n    "hour": 0,\n    "minuteOfHour": 0,\n    "password": "",\n    "paused": false,\n    "timeZone": "",\n    "username": "",\n    "weekday": ""\n  },\n  "fileName": "",\n  "format": {\n    "columnDelimiter": "",\n    "fileEncoding": "",\n    "quotingMode": ""\n  },\n  "id": "",\n  "intendedDestinations": [],\n  "kind": "",\n  "name": "",\n  "targetCountry": "",\n  "targets": [\n    {\n      "country": "",\n      "excludedDestinations": [],\n      "includedDestinations": [],\n      "language": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeeds/:datafeedId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/datafeeds/:datafeedId',
  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({
  attributeLanguage: '',
  contentLanguage: '',
  contentType: '',
  fetchSchedule: {
    dayOfMonth: 0,
    fetchUrl: '',
    hour: 0,
    minuteOfHour: 0,
    password: '',
    paused: false,
    timeZone: '',
    username: '',
    weekday: ''
  },
  fileName: '',
  format: {columnDelimiter: '', fileEncoding: '', quotingMode: ''},
  id: '',
  intendedDestinations: [],
  kind: '',
  name: '',
  targetCountry: '',
  targets: [
    {country: '', excludedDestinations: [], includedDestinations: [], language: ''}
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId',
  headers: {'content-type': 'application/json'},
  body: {
    attributeLanguage: '',
    contentLanguage: '',
    contentType: '',
    fetchSchedule: {
      dayOfMonth: 0,
      fetchUrl: '',
      hour: 0,
      minuteOfHour: 0,
      password: '',
      paused: false,
      timeZone: '',
      username: '',
      weekday: ''
    },
    fileName: '',
    format: {columnDelimiter: '', fileEncoding: '', quotingMode: ''},
    id: '',
    intendedDestinations: [],
    kind: '',
    name: '',
    targetCountry: '',
    targets: [
      {country: '', excludedDestinations: [], includedDestinations: [], language: ''}
    ]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:merchantId/datafeeds/:datafeedId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  attributeLanguage: '',
  contentLanguage: '',
  contentType: '',
  fetchSchedule: {
    dayOfMonth: 0,
    fetchUrl: '',
    hour: 0,
    minuteOfHour: 0,
    password: '',
    paused: false,
    timeZone: '',
    username: '',
    weekday: ''
  },
  fileName: '',
  format: {
    columnDelimiter: '',
    fileEncoding: '',
    quotingMode: ''
  },
  id: '',
  intendedDestinations: [],
  kind: '',
  name: '',
  targetCountry: '',
  targets: [
    {
      country: '',
      excludedDestinations: [],
      includedDestinations: [],
      language: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/datafeeds/:datafeedId',
  headers: {'content-type': 'application/json'},
  data: {
    attributeLanguage: '',
    contentLanguage: '',
    contentType: '',
    fetchSchedule: {
      dayOfMonth: 0,
      fetchUrl: '',
      hour: 0,
      minuteOfHour: 0,
      password: '',
      paused: false,
      timeZone: '',
      username: '',
      weekday: ''
    },
    fileName: '',
    format: {columnDelimiter: '', fileEncoding: '', quotingMode: ''},
    id: '',
    intendedDestinations: [],
    kind: '',
    name: '',
    targetCountry: '',
    targets: [
      {country: '', excludedDestinations: [], includedDestinations: [], language: ''}
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/datafeeds/:datafeedId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"attributeLanguage":"","contentLanguage":"","contentType":"","fetchSchedule":{"dayOfMonth":0,"fetchUrl":"","hour":0,"minuteOfHour":0,"password":"","paused":false,"timeZone":"","username":"","weekday":""},"fileName":"","format":{"columnDelimiter":"","fileEncoding":"","quotingMode":""},"id":"","intendedDestinations":[],"kind":"","name":"","targetCountry":"","targets":[{"country":"","excludedDestinations":[],"includedDestinations":[],"language":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"attributeLanguage": @"",
                              @"contentLanguage": @"",
                              @"contentType": @"",
                              @"fetchSchedule": @{ @"dayOfMonth": @0, @"fetchUrl": @"", @"hour": @0, @"minuteOfHour": @0, @"password": @"", @"paused": @NO, @"timeZone": @"", @"username": @"", @"weekday": @"" },
                              @"fileName": @"",
                              @"format": @{ @"columnDelimiter": @"", @"fileEncoding": @"", @"quotingMode": @"" },
                              @"id": @"",
                              @"intendedDestinations": @[  ],
                              @"kind": @"",
                              @"name": @"",
                              @"targetCountry": @"",
                              @"targets": @[ @{ @"country": @"", @"excludedDestinations": @[  ], @"includedDestinations": @[  ], @"language": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/datafeeds/:datafeedId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/datafeeds/:datafeedId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/datafeeds/:datafeedId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'attributeLanguage' => '',
    'contentLanguage' => '',
    'contentType' => '',
    'fetchSchedule' => [
        'dayOfMonth' => 0,
        'fetchUrl' => '',
        'hour' => 0,
        'minuteOfHour' => 0,
        'password' => '',
        'paused' => null,
        'timeZone' => '',
        'username' => '',
        'weekday' => ''
    ],
    'fileName' => '',
    'format' => [
        'columnDelimiter' => '',
        'fileEncoding' => '',
        'quotingMode' => ''
    ],
    'id' => '',
    'intendedDestinations' => [
        
    ],
    'kind' => '',
    'name' => '',
    'targetCountry' => '',
    'targets' => [
        [
                'country' => '',
                'excludedDestinations' => [
                                
                ],
                'includedDestinations' => [
                                
                ],
                'language' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:merchantId/datafeeds/:datafeedId', [
  'body' => '{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/datafeeds/:datafeedId');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attributeLanguage' => '',
  'contentLanguage' => '',
  'contentType' => '',
  'fetchSchedule' => [
    'dayOfMonth' => 0,
    'fetchUrl' => '',
    'hour' => 0,
    'minuteOfHour' => 0,
    'password' => '',
    'paused' => null,
    'timeZone' => '',
    'username' => '',
    'weekday' => ''
  ],
  'fileName' => '',
  'format' => [
    'columnDelimiter' => '',
    'fileEncoding' => '',
    'quotingMode' => ''
  ],
  'id' => '',
  'intendedDestinations' => [
    
  ],
  'kind' => '',
  'name' => '',
  'targetCountry' => '',
  'targets' => [
    [
        'country' => '',
        'excludedDestinations' => [
                
        ],
        'includedDestinations' => [
                
        ],
        'language' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attributeLanguage' => '',
  'contentLanguage' => '',
  'contentType' => '',
  'fetchSchedule' => [
    'dayOfMonth' => 0,
    'fetchUrl' => '',
    'hour' => 0,
    'minuteOfHour' => 0,
    'password' => '',
    'paused' => null,
    'timeZone' => '',
    'username' => '',
    'weekday' => ''
  ],
  'fileName' => '',
  'format' => [
    'columnDelimiter' => '',
    'fileEncoding' => '',
    'quotingMode' => ''
  ],
  'id' => '',
  'intendedDestinations' => [
    
  ],
  'kind' => '',
  'name' => '',
  'targetCountry' => '',
  'targets' => [
    [
        'country' => '',
        'excludedDestinations' => [
                
        ],
        'includedDestinations' => [
                
        ],
        'language' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/datafeeds/:datafeedId');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/datafeeds/:datafeedId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/datafeeds/:datafeedId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:merchantId/datafeeds/:datafeedId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/datafeeds/:datafeedId"

payload = {
    "attributeLanguage": "",
    "contentLanguage": "",
    "contentType": "",
    "fetchSchedule": {
        "dayOfMonth": 0,
        "fetchUrl": "",
        "hour": 0,
        "minuteOfHour": 0,
        "password": "",
        "paused": False,
        "timeZone": "",
        "username": "",
        "weekday": ""
    },
    "fileName": "",
    "format": {
        "columnDelimiter": "",
        "fileEncoding": "",
        "quotingMode": ""
    },
    "id": "",
    "intendedDestinations": [],
    "kind": "",
    "name": "",
    "targetCountry": "",
    "targets": [
        {
            "country": "",
            "excludedDestinations": [],
            "includedDestinations": [],
            "language": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/datafeeds/:datafeedId"

payload <- "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/datafeeds/:datafeedId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:merchantId/datafeeds/:datafeedId') do |req|
  req.body = "{\n  \"attributeLanguage\": \"\",\n  \"contentLanguage\": \"\",\n  \"contentType\": \"\",\n  \"fetchSchedule\": {\n    \"dayOfMonth\": 0,\n    \"fetchUrl\": \"\",\n    \"hour\": 0,\n    \"minuteOfHour\": 0,\n    \"password\": \"\",\n    \"paused\": false,\n    \"timeZone\": \"\",\n    \"username\": \"\",\n    \"weekday\": \"\"\n  },\n  \"fileName\": \"\",\n  \"format\": {\n    \"columnDelimiter\": \"\",\n    \"fileEncoding\": \"\",\n    \"quotingMode\": \"\"\n  },\n  \"id\": \"\",\n  \"intendedDestinations\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"targetCountry\": \"\",\n  \"targets\": [\n    {\n      \"country\": \"\",\n      \"excludedDestinations\": [],\n      \"includedDestinations\": [],\n      \"language\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/datafeeds/:datafeedId";

    let payload = json!({
        "attributeLanguage": "",
        "contentLanguage": "",
        "contentType": "",
        "fetchSchedule": json!({
            "dayOfMonth": 0,
            "fetchUrl": "",
            "hour": 0,
            "minuteOfHour": 0,
            "password": "",
            "paused": false,
            "timeZone": "",
            "username": "",
            "weekday": ""
        }),
        "fileName": "",
        "format": json!({
            "columnDelimiter": "",
            "fileEncoding": "",
            "quotingMode": ""
        }),
        "id": "",
        "intendedDestinations": (),
        "kind": "",
        "name": "",
        "targetCountry": "",
        "targets": (
            json!({
                "country": "",
                "excludedDestinations": (),
                "includedDestinations": (),
                "language": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:merchantId/datafeeds/:datafeedId \
  --header 'content-type: application/json' \
  --data '{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}'
echo '{
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": {
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  },
  "fileName": "",
  "format": {
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  },
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    {
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    }
  ]
}' |  \
  http PUT {{baseUrl}}/:merchantId/datafeeds/:datafeedId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "attributeLanguage": "",\n  "contentLanguage": "",\n  "contentType": "",\n  "fetchSchedule": {\n    "dayOfMonth": 0,\n    "fetchUrl": "",\n    "hour": 0,\n    "minuteOfHour": 0,\n    "password": "",\n    "paused": false,\n    "timeZone": "",\n    "username": "",\n    "weekday": ""\n  },\n  "fileName": "",\n  "format": {\n    "columnDelimiter": "",\n    "fileEncoding": "",\n    "quotingMode": ""\n  },\n  "id": "",\n  "intendedDestinations": [],\n  "kind": "",\n  "name": "",\n  "targetCountry": "",\n  "targets": [\n    {\n      "country": "",\n      "excludedDestinations": [],\n      "includedDestinations": [],\n      "language": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/datafeeds/:datafeedId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attributeLanguage": "",
  "contentLanguage": "",
  "contentType": "",
  "fetchSchedule": [
    "dayOfMonth": 0,
    "fetchUrl": "",
    "hour": 0,
    "minuteOfHour": 0,
    "password": "",
    "paused": false,
    "timeZone": "",
    "username": "",
    "weekday": ""
  ],
  "fileName": "",
  "format": [
    "columnDelimiter": "",
    "fileEncoding": "",
    "quotingMode": ""
  ],
  "id": "",
  "intendedDestinations": [],
  "kind": "",
  "name": "",
  "targetCountry": "",
  "targets": [
    [
      "country": "",
      "excludedDestinations": [],
      "includedDestinations": [],
      "language": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/datafeeds/:datafeedId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.datafeedstatuses.custombatch
{{baseUrl}}/datafeedstatuses/batch
BODY json

{
  "entries": [
    {
      "batchId": 0,
      "country": "",
      "datafeedId": "",
      "language": "",
      "merchantId": "",
      "method": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/datafeedstatuses/batch");

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  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/datafeedstatuses/batch" {:content-type :json
                                                                   :form-params {:entries [{:batchId 0
                                                                                            :country ""
                                                                                            :datafeedId ""
                                                                                            :language ""
                                                                                            :merchantId ""
                                                                                            :method ""}]}})
require "http/client"

url = "{{baseUrl}}/datafeedstatuses/batch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/datafeedstatuses/batch"),
    Content = new StringContent("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/datafeedstatuses/batch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/datafeedstatuses/batch"

	payload := strings.NewReader("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/datafeedstatuses/batch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 164

{
  "entries": [
    {
      "batchId": 0,
      "country": "",
      "datafeedId": "",
      "language": "",
      "merchantId": "",
      "method": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/datafeedstatuses/batch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/datafeedstatuses/batch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/datafeedstatuses/batch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/datafeedstatuses/batch")
  .header("content-type", "application/json")
  .body("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  entries: [
    {
      batchId: 0,
      country: '',
      datafeedId: '',
      language: '',
      merchantId: '',
      method: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/datafeedstatuses/batch');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/datafeedstatuses/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        batchId: 0,
        country: '',
        datafeedId: '',
        language: '',
        merchantId: '',
        method: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/datafeedstatuses/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"batchId":0,"country":"","datafeedId":"","language":"","merchantId":"","method":""}]}'
};

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}}/datafeedstatuses/batch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entries": [\n    {\n      "batchId": 0,\n      "country": "",\n      "datafeedId": "",\n      "language": "",\n      "merchantId": "",\n      "method": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/datafeedstatuses/batch")
  .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/datafeedstatuses/batch',
  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({
  entries: [
    {
      batchId: 0,
      country: '',
      datafeedId: '',
      language: '',
      merchantId: '',
      method: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/datafeedstatuses/batch',
  headers: {'content-type': 'application/json'},
  body: {
    entries: [
      {
        batchId: 0,
        country: '',
        datafeedId: '',
        language: '',
        merchantId: '',
        method: ''
      }
    ]
  },
  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}}/datafeedstatuses/batch');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  entries: [
    {
      batchId: 0,
      country: '',
      datafeedId: '',
      language: '',
      merchantId: '',
      method: ''
    }
  ]
});

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}}/datafeedstatuses/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        batchId: 0,
        country: '',
        datafeedId: '',
        language: '',
        merchantId: '',
        method: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/datafeedstatuses/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"batchId":0,"country":"","datafeedId":"","language":"","merchantId":"","method":""}]}'
};

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 = @{ @"entries": @[ @{ @"batchId": @0, @"country": @"", @"datafeedId": @"", @"language": @"", @"merchantId": @"", @"method": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/datafeedstatuses/batch"]
                                                       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}}/datafeedstatuses/batch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/datafeedstatuses/batch",
  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([
    'entries' => [
        [
                'batchId' => 0,
                'country' => '',
                'datafeedId' => '',
                'language' => '',
                'merchantId' => '',
                'method' => ''
        ]
    ]
  ]),
  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}}/datafeedstatuses/batch', [
  'body' => '{
  "entries": [
    {
      "batchId": 0,
      "country": "",
      "datafeedId": "",
      "language": "",
      "merchantId": "",
      "method": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/datafeedstatuses/batch');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entries' => [
    [
        'batchId' => 0,
        'country' => '',
        'datafeedId' => '',
        'language' => '',
        'merchantId' => '',
        'method' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'entries' => [
    [
        'batchId' => 0,
        'country' => '',
        'datafeedId' => '',
        'language' => '',
        'merchantId' => '',
        'method' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/datafeedstatuses/batch');
$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}}/datafeedstatuses/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "batchId": 0,
      "country": "",
      "datafeedId": "",
      "language": "",
      "merchantId": "",
      "method": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/datafeedstatuses/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "batchId": 0,
      "country": "",
      "datafeedId": "",
      "language": "",
      "merchantId": "",
      "method": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/datafeedstatuses/batch", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/datafeedstatuses/batch"

payload = { "entries": [
        {
            "batchId": 0,
            "country": "",
            "datafeedId": "",
            "language": "",
            "merchantId": "",
            "method": ""
        }
    ] }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/datafeedstatuses/batch"

payload <- "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/datafeedstatuses/batch")

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  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/datafeedstatuses/batch') do |req|
  req.body = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"country\": \"\",\n      \"datafeedId\": \"\",\n      \"language\": \"\",\n      \"merchantId\": \"\",\n      \"method\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/datafeedstatuses/batch";

    let payload = json!({"entries": (
            json!({
                "batchId": 0,
                "country": "",
                "datafeedId": "",
                "language": "",
                "merchantId": "",
                "method": ""
            })
        )});

    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}}/datafeedstatuses/batch \
  --header 'content-type: application/json' \
  --data '{
  "entries": [
    {
      "batchId": 0,
      "country": "",
      "datafeedId": "",
      "language": "",
      "merchantId": "",
      "method": ""
    }
  ]
}'
echo '{
  "entries": [
    {
      "batchId": 0,
      "country": "",
      "datafeedId": "",
      "language": "",
      "merchantId": "",
      "method": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/datafeedstatuses/batch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entries": [\n    {\n      "batchId": 0,\n      "country": "",\n      "datafeedId": "",\n      "language": "",\n      "merchantId": "",\n      "method": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/datafeedstatuses/batch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["entries": [
    [
      "batchId": 0,
      "country": "",
      "datafeedId": "",
      "language": "",
      "merchantId": "",
      "method": ""
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/datafeedstatuses/batch")! 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()
GET content.datafeedstatuses.get
{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId
QUERY PARAMS

merchantId
datafeedId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId")
require "http/client"

url = "{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/datafeedstatuses/:datafeedId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/datafeedstatuses/:datafeedId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/datafeedstatuses/:datafeedId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/datafeedstatuses/:datafeedId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId
http GET {{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/datafeedstatuses/:datafeedId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.datafeedstatuses.list
{{baseUrl}}/:merchantId/datafeedstatuses
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/datafeedstatuses");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/datafeedstatuses")
require "http/client"

url = "{{baseUrl}}/:merchantId/datafeedstatuses"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/datafeedstatuses"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/datafeedstatuses");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/datafeedstatuses"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/datafeedstatuses HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/datafeedstatuses")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/datafeedstatuses"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeedstatuses")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/datafeedstatuses")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/datafeedstatuses');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/datafeedstatuses'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/datafeedstatuses';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/datafeedstatuses',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/datafeedstatuses")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/datafeedstatuses',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/datafeedstatuses'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/datafeedstatuses');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/datafeedstatuses'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/datafeedstatuses';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/datafeedstatuses"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/datafeedstatuses" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/datafeedstatuses",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/datafeedstatuses');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/datafeedstatuses');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/datafeedstatuses');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/datafeedstatuses' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/datafeedstatuses' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/datafeedstatuses")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/datafeedstatuses"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/datafeedstatuses"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/datafeedstatuses")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/datafeedstatuses') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/datafeedstatuses";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/datafeedstatuses
http GET {{baseUrl}}/:merchantId/datafeedstatuses
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/datafeedstatuses
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/datafeedstatuses")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.liasettings.custombatch
{{baseUrl}}/liasettings/batch
BODY json

{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "contactEmail": "",
      "contactName": "",
      "country": "",
      "gmbEmail": "",
      "liaSettings": {
        "accountId": "",
        "countrySettings": [
          {
            "about": {
              "status": "",
              "url": ""
            },
            "country": "",
            "hostedLocalStorefrontActive": false,
            "inventory": {
              "inventoryVerificationContactEmail": "",
              "inventoryVerificationContactName": "",
              "inventoryVerificationContactStatus": "",
              "status": ""
            },
            "onDisplayToOrder": {
              "shippingCostPolicyUrl": "",
              "status": ""
            },
            "posDataProvider": {
              "posDataProviderId": "",
              "posExternalAccountId": ""
            },
            "storePickupActive": false
          }
        ],
        "kind": ""
      },
      "merchantId": "",
      "method": "",
      "posDataProviderId": "",
      "posExternalAccountId": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/liasettings/batch");

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  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/liasettings/batch" {:content-type :json
                                                              :form-params {:entries [{:accountId ""
                                                                                       :batchId 0
                                                                                       :contactEmail ""
                                                                                       :contactName ""
                                                                                       :country ""
                                                                                       :gmbEmail ""
                                                                                       :liaSettings {:accountId ""
                                                                                                     :countrySettings [{:about {:status ""
                                                                                                                                :url ""}
                                                                                                                        :country ""
                                                                                                                        :hostedLocalStorefrontActive false
                                                                                                                        :inventory {:inventoryVerificationContactEmail ""
                                                                                                                                    :inventoryVerificationContactName ""
                                                                                                                                    :inventoryVerificationContactStatus ""
                                                                                                                                    :status ""}
                                                                                                                        :onDisplayToOrder {:shippingCostPolicyUrl ""
                                                                                                                                           :status ""}
                                                                                                                        :posDataProvider {:posDataProviderId ""
                                                                                                                                          :posExternalAccountId ""}
                                                                                                                        :storePickupActive false}]
                                                                                                     :kind ""}
                                                                                       :merchantId ""
                                                                                       :method ""
                                                                                       :posDataProviderId ""
                                                                                       :posExternalAccountId ""}]}})
require "http/client"

url = "{{baseUrl}}/liasettings/batch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/liasettings/batch"),
    Content = new StringContent("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/liasettings/batch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/liasettings/batch"

	payload := strings.NewReader("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/liasettings/batch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1106

{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "contactEmail": "",
      "contactName": "",
      "country": "",
      "gmbEmail": "",
      "liaSettings": {
        "accountId": "",
        "countrySettings": [
          {
            "about": {
              "status": "",
              "url": ""
            },
            "country": "",
            "hostedLocalStorefrontActive": false,
            "inventory": {
              "inventoryVerificationContactEmail": "",
              "inventoryVerificationContactName": "",
              "inventoryVerificationContactStatus": "",
              "status": ""
            },
            "onDisplayToOrder": {
              "shippingCostPolicyUrl": "",
              "status": ""
            },
            "posDataProvider": {
              "posDataProviderId": "",
              "posExternalAccountId": ""
            },
            "storePickupActive": false
          }
        ],
        "kind": ""
      },
      "merchantId": "",
      "method": "",
      "posDataProviderId": "",
      "posExternalAccountId": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/liasettings/batch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/liasettings/batch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/liasettings/batch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/liasettings/batch")
  .header("content-type", "application/json")
  .body("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  entries: [
    {
      accountId: '',
      batchId: 0,
      contactEmail: '',
      contactName: '',
      country: '',
      gmbEmail: '',
      liaSettings: {
        accountId: '',
        countrySettings: [
          {
            about: {
              status: '',
              url: ''
            },
            country: '',
            hostedLocalStorefrontActive: false,
            inventory: {
              inventoryVerificationContactEmail: '',
              inventoryVerificationContactName: '',
              inventoryVerificationContactStatus: '',
              status: ''
            },
            onDisplayToOrder: {
              shippingCostPolicyUrl: '',
              status: ''
            },
            posDataProvider: {
              posDataProviderId: '',
              posExternalAccountId: ''
            },
            storePickupActive: false
          }
        ],
        kind: ''
      },
      merchantId: '',
      method: '',
      posDataProviderId: '',
      posExternalAccountId: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/liasettings/batch');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/liasettings/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        accountId: '',
        batchId: 0,
        contactEmail: '',
        contactName: '',
        country: '',
        gmbEmail: '',
        liaSettings: {
          accountId: '',
          countrySettings: [
            {
              about: {status: '', url: ''},
              country: '',
              hostedLocalStorefrontActive: false,
              inventory: {
                inventoryVerificationContactEmail: '',
                inventoryVerificationContactName: '',
                inventoryVerificationContactStatus: '',
                status: ''
              },
              onDisplayToOrder: {shippingCostPolicyUrl: '', status: ''},
              posDataProvider: {posDataProviderId: '', posExternalAccountId: ''},
              storePickupActive: false
            }
          ],
          kind: ''
        },
        merchantId: '',
        method: '',
        posDataProviderId: '',
        posExternalAccountId: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/liasettings/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"accountId":"","batchId":0,"contactEmail":"","contactName":"","country":"","gmbEmail":"","liaSettings":{"accountId":"","countrySettings":[{"about":{"status":"","url":""},"country":"","hostedLocalStorefrontActive":false,"inventory":{"inventoryVerificationContactEmail":"","inventoryVerificationContactName":"","inventoryVerificationContactStatus":"","status":""},"onDisplayToOrder":{"shippingCostPolicyUrl":"","status":""},"posDataProvider":{"posDataProviderId":"","posExternalAccountId":""},"storePickupActive":false}],"kind":""},"merchantId":"","method":"","posDataProviderId":"","posExternalAccountId":""}]}'
};

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}}/liasettings/batch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entries": [\n    {\n      "accountId": "",\n      "batchId": 0,\n      "contactEmail": "",\n      "contactName": "",\n      "country": "",\n      "gmbEmail": "",\n      "liaSettings": {\n        "accountId": "",\n        "countrySettings": [\n          {\n            "about": {\n              "status": "",\n              "url": ""\n            },\n            "country": "",\n            "hostedLocalStorefrontActive": false,\n            "inventory": {\n              "inventoryVerificationContactEmail": "",\n              "inventoryVerificationContactName": "",\n              "inventoryVerificationContactStatus": "",\n              "status": ""\n            },\n            "onDisplayToOrder": {\n              "shippingCostPolicyUrl": "",\n              "status": ""\n            },\n            "posDataProvider": {\n              "posDataProviderId": "",\n              "posExternalAccountId": ""\n            },\n            "storePickupActive": false\n          }\n        ],\n        "kind": ""\n      },\n      "merchantId": "",\n      "method": "",\n      "posDataProviderId": "",\n      "posExternalAccountId": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/liasettings/batch")
  .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/liasettings/batch',
  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({
  entries: [
    {
      accountId: '',
      batchId: 0,
      contactEmail: '',
      contactName: '',
      country: '',
      gmbEmail: '',
      liaSettings: {
        accountId: '',
        countrySettings: [
          {
            about: {status: '', url: ''},
            country: '',
            hostedLocalStorefrontActive: false,
            inventory: {
              inventoryVerificationContactEmail: '',
              inventoryVerificationContactName: '',
              inventoryVerificationContactStatus: '',
              status: ''
            },
            onDisplayToOrder: {shippingCostPolicyUrl: '', status: ''},
            posDataProvider: {posDataProviderId: '', posExternalAccountId: ''},
            storePickupActive: false
          }
        ],
        kind: ''
      },
      merchantId: '',
      method: '',
      posDataProviderId: '',
      posExternalAccountId: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/liasettings/batch',
  headers: {'content-type': 'application/json'},
  body: {
    entries: [
      {
        accountId: '',
        batchId: 0,
        contactEmail: '',
        contactName: '',
        country: '',
        gmbEmail: '',
        liaSettings: {
          accountId: '',
          countrySettings: [
            {
              about: {status: '', url: ''},
              country: '',
              hostedLocalStorefrontActive: false,
              inventory: {
                inventoryVerificationContactEmail: '',
                inventoryVerificationContactName: '',
                inventoryVerificationContactStatus: '',
                status: ''
              },
              onDisplayToOrder: {shippingCostPolicyUrl: '', status: ''},
              posDataProvider: {posDataProviderId: '', posExternalAccountId: ''},
              storePickupActive: false
            }
          ],
          kind: ''
        },
        merchantId: '',
        method: '',
        posDataProviderId: '',
        posExternalAccountId: ''
      }
    ]
  },
  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}}/liasettings/batch');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  entries: [
    {
      accountId: '',
      batchId: 0,
      contactEmail: '',
      contactName: '',
      country: '',
      gmbEmail: '',
      liaSettings: {
        accountId: '',
        countrySettings: [
          {
            about: {
              status: '',
              url: ''
            },
            country: '',
            hostedLocalStorefrontActive: false,
            inventory: {
              inventoryVerificationContactEmail: '',
              inventoryVerificationContactName: '',
              inventoryVerificationContactStatus: '',
              status: ''
            },
            onDisplayToOrder: {
              shippingCostPolicyUrl: '',
              status: ''
            },
            posDataProvider: {
              posDataProviderId: '',
              posExternalAccountId: ''
            },
            storePickupActive: false
          }
        ],
        kind: ''
      },
      merchantId: '',
      method: '',
      posDataProviderId: '',
      posExternalAccountId: ''
    }
  ]
});

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}}/liasettings/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        accountId: '',
        batchId: 0,
        contactEmail: '',
        contactName: '',
        country: '',
        gmbEmail: '',
        liaSettings: {
          accountId: '',
          countrySettings: [
            {
              about: {status: '', url: ''},
              country: '',
              hostedLocalStorefrontActive: false,
              inventory: {
                inventoryVerificationContactEmail: '',
                inventoryVerificationContactName: '',
                inventoryVerificationContactStatus: '',
                status: ''
              },
              onDisplayToOrder: {shippingCostPolicyUrl: '', status: ''},
              posDataProvider: {posDataProviderId: '', posExternalAccountId: ''},
              storePickupActive: false
            }
          ],
          kind: ''
        },
        merchantId: '',
        method: '',
        posDataProviderId: '',
        posExternalAccountId: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/liasettings/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"accountId":"","batchId":0,"contactEmail":"","contactName":"","country":"","gmbEmail":"","liaSettings":{"accountId":"","countrySettings":[{"about":{"status":"","url":""},"country":"","hostedLocalStorefrontActive":false,"inventory":{"inventoryVerificationContactEmail":"","inventoryVerificationContactName":"","inventoryVerificationContactStatus":"","status":""},"onDisplayToOrder":{"shippingCostPolicyUrl":"","status":""},"posDataProvider":{"posDataProviderId":"","posExternalAccountId":""},"storePickupActive":false}],"kind":""},"merchantId":"","method":"","posDataProviderId":"","posExternalAccountId":""}]}'
};

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 = @{ @"entries": @[ @{ @"accountId": @"", @"batchId": @0, @"contactEmail": @"", @"contactName": @"", @"country": @"", @"gmbEmail": @"", @"liaSettings": @{ @"accountId": @"", @"countrySettings": @[ @{ @"about": @{ @"status": @"", @"url": @"" }, @"country": @"", @"hostedLocalStorefrontActive": @NO, @"inventory": @{ @"inventoryVerificationContactEmail": @"", @"inventoryVerificationContactName": @"", @"inventoryVerificationContactStatus": @"", @"status": @"" }, @"onDisplayToOrder": @{ @"shippingCostPolicyUrl": @"", @"status": @"" }, @"posDataProvider": @{ @"posDataProviderId": @"", @"posExternalAccountId": @"" }, @"storePickupActive": @NO } ], @"kind": @"" }, @"merchantId": @"", @"method": @"", @"posDataProviderId": @"", @"posExternalAccountId": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/liasettings/batch"]
                                                       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}}/liasettings/batch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/liasettings/batch",
  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([
    'entries' => [
        [
                'accountId' => '',
                'batchId' => 0,
                'contactEmail' => '',
                'contactName' => '',
                'country' => '',
                'gmbEmail' => '',
                'liaSettings' => [
                                'accountId' => '',
                                'countrySettings' => [
                                                                [
                                                                                                                                'about' => [
                                                                                                                                                                                                                                                                'status' => '',
                                                                                                                                                                                                                                                                'url' => ''
                                                                                                                                ],
                                                                                                                                'country' => '',
                                                                                                                                'hostedLocalStorefrontActive' => null,
                                                                                                                                'inventory' => [
                                                                                                                                                                                                                                                                'inventoryVerificationContactEmail' => '',
                                                                                                                                                                                                                                                                'inventoryVerificationContactName' => '',
                                                                                                                                                                                                                                                                'inventoryVerificationContactStatus' => '',
                                                                                                                                                                                                                                                                'status' => ''
                                                                                                                                ],
                                                                                                                                'onDisplayToOrder' => [
                                                                                                                                                                                                                                                                'shippingCostPolicyUrl' => '',
                                                                                                                                                                                                                                                                'status' => ''
                                                                                                                                ],
                                                                                                                                'posDataProvider' => [
                                                                                                                                                                                                                                                                'posDataProviderId' => '',
                                                                                                                                                                                                                                                                'posExternalAccountId' => ''
                                                                                                                                ],
                                                                                                                                'storePickupActive' => null
                                                                ]
                                ],
                                'kind' => ''
                ],
                'merchantId' => '',
                'method' => '',
                'posDataProviderId' => '',
                'posExternalAccountId' => ''
        ]
    ]
  ]),
  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}}/liasettings/batch', [
  'body' => '{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "contactEmail": "",
      "contactName": "",
      "country": "",
      "gmbEmail": "",
      "liaSettings": {
        "accountId": "",
        "countrySettings": [
          {
            "about": {
              "status": "",
              "url": ""
            },
            "country": "",
            "hostedLocalStorefrontActive": false,
            "inventory": {
              "inventoryVerificationContactEmail": "",
              "inventoryVerificationContactName": "",
              "inventoryVerificationContactStatus": "",
              "status": ""
            },
            "onDisplayToOrder": {
              "shippingCostPolicyUrl": "",
              "status": ""
            },
            "posDataProvider": {
              "posDataProviderId": "",
              "posExternalAccountId": ""
            },
            "storePickupActive": false
          }
        ],
        "kind": ""
      },
      "merchantId": "",
      "method": "",
      "posDataProviderId": "",
      "posExternalAccountId": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/liasettings/batch');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entries' => [
    [
        'accountId' => '',
        'batchId' => 0,
        'contactEmail' => '',
        'contactName' => '',
        'country' => '',
        'gmbEmail' => '',
        'liaSettings' => [
                'accountId' => '',
                'countrySettings' => [
                                [
                                                                'about' => [
                                                                                                                                'status' => '',
                                                                                                                                'url' => ''
                                                                ],
                                                                'country' => '',
                                                                'hostedLocalStorefrontActive' => null,
                                                                'inventory' => [
                                                                                                                                'inventoryVerificationContactEmail' => '',
                                                                                                                                'inventoryVerificationContactName' => '',
                                                                                                                                'inventoryVerificationContactStatus' => '',
                                                                                                                                'status' => ''
                                                                ],
                                                                'onDisplayToOrder' => [
                                                                                                                                'shippingCostPolicyUrl' => '',
                                                                                                                                'status' => ''
                                                                ],
                                                                'posDataProvider' => [
                                                                                                                                'posDataProviderId' => '',
                                                                                                                                'posExternalAccountId' => ''
                                                                ],
                                                                'storePickupActive' => null
                                ]
                ],
                'kind' => ''
        ],
        'merchantId' => '',
        'method' => '',
        'posDataProviderId' => '',
        'posExternalAccountId' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'entries' => [
    [
        'accountId' => '',
        'batchId' => 0,
        'contactEmail' => '',
        'contactName' => '',
        'country' => '',
        'gmbEmail' => '',
        'liaSettings' => [
                'accountId' => '',
                'countrySettings' => [
                                [
                                                                'about' => [
                                                                                                                                'status' => '',
                                                                                                                                'url' => ''
                                                                ],
                                                                'country' => '',
                                                                'hostedLocalStorefrontActive' => null,
                                                                'inventory' => [
                                                                                                                                'inventoryVerificationContactEmail' => '',
                                                                                                                                'inventoryVerificationContactName' => '',
                                                                                                                                'inventoryVerificationContactStatus' => '',
                                                                                                                                'status' => ''
                                                                ],
                                                                'onDisplayToOrder' => [
                                                                                                                                'shippingCostPolicyUrl' => '',
                                                                                                                                'status' => ''
                                                                ],
                                                                'posDataProvider' => [
                                                                                                                                'posDataProviderId' => '',
                                                                                                                                'posExternalAccountId' => ''
                                                                ],
                                                                'storePickupActive' => null
                                ]
                ],
                'kind' => ''
        ],
        'merchantId' => '',
        'method' => '',
        'posDataProviderId' => '',
        'posExternalAccountId' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/liasettings/batch');
$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}}/liasettings/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "contactEmail": "",
      "contactName": "",
      "country": "",
      "gmbEmail": "",
      "liaSettings": {
        "accountId": "",
        "countrySettings": [
          {
            "about": {
              "status": "",
              "url": ""
            },
            "country": "",
            "hostedLocalStorefrontActive": false,
            "inventory": {
              "inventoryVerificationContactEmail": "",
              "inventoryVerificationContactName": "",
              "inventoryVerificationContactStatus": "",
              "status": ""
            },
            "onDisplayToOrder": {
              "shippingCostPolicyUrl": "",
              "status": ""
            },
            "posDataProvider": {
              "posDataProviderId": "",
              "posExternalAccountId": ""
            },
            "storePickupActive": false
          }
        ],
        "kind": ""
      },
      "merchantId": "",
      "method": "",
      "posDataProviderId": "",
      "posExternalAccountId": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/liasettings/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "contactEmail": "",
      "contactName": "",
      "country": "",
      "gmbEmail": "",
      "liaSettings": {
        "accountId": "",
        "countrySettings": [
          {
            "about": {
              "status": "",
              "url": ""
            },
            "country": "",
            "hostedLocalStorefrontActive": false,
            "inventory": {
              "inventoryVerificationContactEmail": "",
              "inventoryVerificationContactName": "",
              "inventoryVerificationContactStatus": "",
              "status": ""
            },
            "onDisplayToOrder": {
              "shippingCostPolicyUrl": "",
              "status": ""
            },
            "posDataProvider": {
              "posDataProviderId": "",
              "posExternalAccountId": ""
            },
            "storePickupActive": false
          }
        ],
        "kind": ""
      },
      "merchantId": "",
      "method": "",
      "posDataProviderId": "",
      "posExternalAccountId": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/liasettings/batch", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/liasettings/batch"

payload = { "entries": [
        {
            "accountId": "",
            "batchId": 0,
            "contactEmail": "",
            "contactName": "",
            "country": "",
            "gmbEmail": "",
            "liaSettings": {
                "accountId": "",
                "countrySettings": [
                    {
                        "about": {
                            "status": "",
                            "url": ""
                        },
                        "country": "",
                        "hostedLocalStorefrontActive": False,
                        "inventory": {
                            "inventoryVerificationContactEmail": "",
                            "inventoryVerificationContactName": "",
                            "inventoryVerificationContactStatus": "",
                            "status": ""
                        },
                        "onDisplayToOrder": {
                            "shippingCostPolicyUrl": "",
                            "status": ""
                        },
                        "posDataProvider": {
                            "posDataProviderId": "",
                            "posExternalAccountId": ""
                        },
                        "storePickupActive": False
                    }
                ],
                "kind": ""
            },
            "merchantId": "",
            "method": "",
            "posDataProviderId": "",
            "posExternalAccountId": ""
        }
    ] }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/liasettings/batch"

payload <- "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/liasettings/batch")

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  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/liasettings/batch') do |req|
  req.body = "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"contactEmail\": \"\",\n      \"contactName\": \"\",\n      \"country\": \"\",\n      \"gmbEmail\": \"\",\n      \"liaSettings\": {\n        \"accountId\": \"\",\n        \"countrySettings\": [\n          {\n            \"about\": {\n              \"status\": \"\",\n              \"url\": \"\"\n            },\n            \"country\": \"\",\n            \"hostedLocalStorefrontActive\": false,\n            \"inventory\": {\n              \"inventoryVerificationContactEmail\": \"\",\n              \"inventoryVerificationContactName\": \"\",\n              \"inventoryVerificationContactStatus\": \"\",\n              \"status\": \"\"\n            },\n            \"onDisplayToOrder\": {\n              \"shippingCostPolicyUrl\": \"\",\n              \"status\": \"\"\n            },\n            \"posDataProvider\": {\n              \"posDataProviderId\": \"\",\n              \"posExternalAccountId\": \"\"\n            },\n            \"storePickupActive\": false\n          }\n        ],\n        \"kind\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"posDataProviderId\": \"\",\n      \"posExternalAccountId\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/liasettings/batch";

    let payload = json!({"entries": (
            json!({
                "accountId": "",
                "batchId": 0,
                "contactEmail": "",
                "contactName": "",
                "country": "",
                "gmbEmail": "",
                "liaSettings": json!({
                    "accountId": "",
                    "countrySettings": (
                        json!({
                            "about": json!({
                                "status": "",
                                "url": ""
                            }),
                            "country": "",
                            "hostedLocalStorefrontActive": false,
                            "inventory": json!({
                                "inventoryVerificationContactEmail": "",
                                "inventoryVerificationContactName": "",
                                "inventoryVerificationContactStatus": "",
                                "status": ""
                            }),
                            "onDisplayToOrder": json!({
                                "shippingCostPolicyUrl": "",
                                "status": ""
                            }),
                            "posDataProvider": json!({
                                "posDataProviderId": "",
                                "posExternalAccountId": ""
                            }),
                            "storePickupActive": false
                        })
                    ),
                    "kind": ""
                }),
                "merchantId": "",
                "method": "",
                "posDataProviderId": "",
                "posExternalAccountId": ""
            })
        )});

    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}}/liasettings/batch \
  --header 'content-type: application/json' \
  --data '{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "contactEmail": "",
      "contactName": "",
      "country": "",
      "gmbEmail": "",
      "liaSettings": {
        "accountId": "",
        "countrySettings": [
          {
            "about": {
              "status": "",
              "url": ""
            },
            "country": "",
            "hostedLocalStorefrontActive": false,
            "inventory": {
              "inventoryVerificationContactEmail": "",
              "inventoryVerificationContactName": "",
              "inventoryVerificationContactStatus": "",
              "status": ""
            },
            "onDisplayToOrder": {
              "shippingCostPolicyUrl": "",
              "status": ""
            },
            "posDataProvider": {
              "posDataProviderId": "",
              "posExternalAccountId": ""
            },
            "storePickupActive": false
          }
        ],
        "kind": ""
      },
      "merchantId": "",
      "method": "",
      "posDataProviderId": "",
      "posExternalAccountId": ""
    }
  ]
}'
echo '{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "contactEmail": "",
      "contactName": "",
      "country": "",
      "gmbEmail": "",
      "liaSettings": {
        "accountId": "",
        "countrySettings": [
          {
            "about": {
              "status": "",
              "url": ""
            },
            "country": "",
            "hostedLocalStorefrontActive": false,
            "inventory": {
              "inventoryVerificationContactEmail": "",
              "inventoryVerificationContactName": "",
              "inventoryVerificationContactStatus": "",
              "status": ""
            },
            "onDisplayToOrder": {
              "shippingCostPolicyUrl": "",
              "status": ""
            },
            "posDataProvider": {
              "posDataProviderId": "",
              "posExternalAccountId": ""
            },
            "storePickupActive": false
          }
        ],
        "kind": ""
      },
      "merchantId": "",
      "method": "",
      "posDataProviderId": "",
      "posExternalAccountId": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/liasettings/batch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entries": [\n    {\n      "accountId": "",\n      "batchId": 0,\n      "contactEmail": "",\n      "contactName": "",\n      "country": "",\n      "gmbEmail": "",\n      "liaSettings": {\n        "accountId": "",\n        "countrySettings": [\n          {\n            "about": {\n              "status": "",\n              "url": ""\n            },\n            "country": "",\n            "hostedLocalStorefrontActive": false,\n            "inventory": {\n              "inventoryVerificationContactEmail": "",\n              "inventoryVerificationContactName": "",\n              "inventoryVerificationContactStatus": "",\n              "status": ""\n            },\n            "onDisplayToOrder": {\n              "shippingCostPolicyUrl": "",\n              "status": ""\n            },\n            "posDataProvider": {\n              "posDataProviderId": "",\n              "posExternalAccountId": ""\n            },\n            "storePickupActive": false\n          }\n        ],\n        "kind": ""\n      },\n      "merchantId": "",\n      "method": "",\n      "posDataProviderId": "",\n      "posExternalAccountId": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/liasettings/batch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["entries": [
    [
      "accountId": "",
      "batchId": 0,
      "contactEmail": "",
      "contactName": "",
      "country": "",
      "gmbEmail": "",
      "liaSettings": [
        "accountId": "",
        "countrySettings": [
          [
            "about": [
              "status": "",
              "url": ""
            ],
            "country": "",
            "hostedLocalStorefrontActive": false,
            "inventory": [
              "inventoryVerificationContactEmail": "",
              "inventoryVerificationContactName": "",
              "inventoryVerificationContactStatus": "",
              "status": ""
            ],
            "onDisplayToOrder": [
              "shippingCostPolicyUrl": "",
              "status": ""
            ],
            "posDataProvider": [
              "posDataProviderId": "",
              "posExternalAccountId": ""
            ],
            "storePickupActive": false
          ]
        ],
        "kind": ""
      ],
      "merchantId": "",
      "method": "",
      "posDataProviderId": "",
      "posExternalAccountId": ""
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/liasettings/batch")! 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()
GET content.liasettings.get
{{baseUrl}}/:merchantId/liasettings/:accountId
QUERY PARAMS

merchantId
accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/liasettings/:accountId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/liasettings/:accountId")
require "http/client"

url = "{{baseUrl}}/:merchantId/liasettings/:accountId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/liasettings/:accountId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/liasettings/:accountId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/liasettings/:accountId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/liasettings/:accountId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/liasettings/:accountId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/liasettings/:accountId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/liasettings/:accountId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/liasettings/:accountId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/liasettings/:accountId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/liasettings/:accountId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/liasettings/:accountId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/liasettings/:accountId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/liasettings/:accountId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/liasettings/:accountId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/liasettings/:accountId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/liasettings/:accountId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/liasettings/:accountId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/liasettings/:accountId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/liasettings/:accountId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/liasettings/:accountId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/liasettings/:accountId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/liasettings/:accountId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/liasettings/:accountId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/liasettings/:accountId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/liasettings/:accountId
http GET {{baseUrl}}/:merchantId/liasettings/:accountId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/liasettings/:accountId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/liasettings/:accountId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.liasettings.getaccessiblegmbaccounts
{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts
QUERY PARAMS

merchantId
accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts")
require "http/client"

url = "{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/liasettings/:accountId/accessiblegmbaccounts HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/liasettings/:accountId/accessiblegmbaccounts',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/liasettings/:accountId/accessiblegmbaccounts")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/liasettings/:accountId/accessiblegmbaccounts') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts
http GET {{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/liasettings/:accountId/accessiblegmbaccounts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.liasettings.list
{{baseUrl}}/:merchantId/liasettings
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/liasettings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/liasettings")
require "http/client"

url = "{{baseUrl}}/:merchantId/liasettings"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/liasettings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/liasettings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/liasettings"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/liasettings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/liasettings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/liasettings"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/liasettings")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/liasettings');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/liasettings'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/liasettings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/liasettings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/liasettings',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/liasettings'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/liasettings');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/liasettings'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/liasettings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/liasettings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/liasettings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/liasettings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/liasettings');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/liasettings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/liasettings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/liasettings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/liasettings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/liasettings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/liasettings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/liasettings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/liasettings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/liasettings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/liasettings";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/liasettings
http GET {{baseUrl}}/:merchantId/liasettings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/liasettings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/liasettings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.liasettings.listposdataproviders
{{baseUrl}}/liasettings/posdataproviders
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/liasettings/posdataproviders");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/liasettings/posdataproviders")
require "http/client"

url = "{{baseUrl}}/liasettings/posdataproviders"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/liasettings/posdataproviders"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/liasettings/posdataproviders");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/liasettings/posdataproviders"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/liasettings/posdataproviders HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/liasettings/posdataproviders")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/liasettings/posdataproviders"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/liasettings/posdataproviders")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/liasettings/posdataproviders")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/liasettings/posdataproviders');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/liasettings/posdataproviders'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/liasettings/posdataproviders';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/liasettings/posdataproviders',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/liasettings/posdataproviders")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/liasettings/posdataproviders',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/liasettings/posdataproviders'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/liasettings/posdataproviders');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/liasettings/posdataproviders'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/liasettings/posdataproviders';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/liasettings/posdataproviders"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/liasettings/posdataproviders" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/liasettings/posdataproviders",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/liasettings/posdataproviders');

echo $response->getBody();
setUrl('{{baseUrl}}/liasettings/posdataproviders');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/liasettings/posdataproviders');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/liasettings/posdataproviders' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/liasettings/posdataproviders' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/liasettings/posdataproviders")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/liasettings/posdataproviders"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/liasettings/posdataproviders"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/liasettings/posdataproviders")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/liasettings/posdataproviders') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/liasettings/posdataproviders";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/liasettings/posdataproviders
http GET {{baseUrl}}/liasettings/posdataproviders
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/liasettings/posdataproviders
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/liasettings/posdataproviders")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.liasettings.requestgmbaccess
{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess
QUERY PARAMS

gmbEmail
merchantId
accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess" {:query-params {:gmbEmail ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail="

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail="

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail="))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess',
  params: {gmbEmail: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess',
  qs: {gmbEmail: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess');

req.query({
  gmbEmail: ''
});

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}}/:merchantId/liasettings/:accountId/requestgmbaccess',
  params: {gmbEmail: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'gmbEmail' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess');
$request->setRequestMethod('POST');
$request->setQuery(new http\QueryString([
  'gmbEmail' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess"

querystring = {"gmbEmail":""}

response = requests.post(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess"

queryString <- list(gmbEmail = "")

response <- VERB("POST", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/:merchantId/liasettings/:accountId/requestgmbaccess') do |req|
  req.params['gmbEmail'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess";

    let querystring = [
        ("gmbEmail", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.post(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail='
http POST '{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail='
wget --quiet \
  --method POST \
  --output-document \
  - '{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/liasettings/:accountId/requestgmbaccess?gmbEmail=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.liasettings.requestinventoryverification
{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country
QUERY PARAMS

merchantId
accountId
country
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country")
require "http/client"

url = "{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:merchantId/liasettings/:accountId/requestinventoryverification/:country HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/liasettings/:accountId/requestinventoryverification/:country',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country');

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}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:merchantId/liasettings/:accountId/requestinventoryverification/:country")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/:merchantId/liasettings/:accountId/requestinventoryverification/:country') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country
http POST {{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/liasettings/:accountId/requestinventoryverification/:country")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.liasettings.setinventoryverificationcontact
{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact
QUERY PARAMS

country
language
contactName
contactEmail
merchantId
accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact" {:query-params {:country ""
                                                                                                                              :language ""
                                                                                                                              :contactName ""
                                                                                                                              :contactEmail ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail="

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail="

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail="))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact',
  params: {country: '', language: '', contactName: '', contactEmail: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact',
  qs: {country: '', language: '', contactName: '', contactEmail: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact');

req.query({
  country: '',
  language: '',
  contactName: '',
  contactEmail: ''
});

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}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact',
  params: {country: '', language: '', contactName: '', contactEmail: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'country' => '',
  'language' => '',
  'contactName' => '',
  'contactEmail' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact');
$request->setRequestMethod('POST');
$request->setQuery(new http\QueryString([
  'country' => '',
  'language' => '',
  'contactName' => '',
  'contactEmail' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact"

querystring = {"country":"","language":"","contactName":"","contactEmail":""}

response = requests.post(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact"

queryString <- list(
  country = "",
  language = "",
  contactName = "",
  contactEmail = ""
)

response <- VERB("POST", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/:merchantId/liasettings/:accountId/setinventoryverificationcontact') do |req|
  req.params['country'] = ''
  req.params['language'] = ''
  req.params['contactName'] = ''
  req.params['contactEmail'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact";

    let querystring = [
        ("country", ""),
        ("language", ""),
        ("contactName", ""),
        ("contactEmail", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.post(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail='
http POST '{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail='
wget --quiet \
  --method POST \
  --output-document \
  - '{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/liasettings/:accountId/setinventoryverificationcontact?country=&language=&contactName=&contactEmail=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.liasettings.setposdataprovider
{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider
QUERY PARAMS

country
merchantId
accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider" {:query-params {:country ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country="

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country="

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:merchantId/liasettings/:accountId/setposdataprovider?country= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country="))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider',
  params: {country: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/liasettings/:accountId/setposdataprovider?country=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider',
  qs: {country: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider');

req.query({
  country: ''
});

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}}/:merchantId/liasettings/:accountId/setposdataprovider',
  params: {country: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'country' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider');
$request->setRequestMethod('POST');
$request->setQuery(new http\QueryString([
  'country' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:merchantId/liasettings/:accountId/setposdataprovider?country=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider"

querystring = {"country":""}

response = requests.post(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider"

queryString <- list(country = "")

response <- VERB("POST", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/:merchantId/liasettings/:accountId/setposdataprovider') do |req|
  req.params['country'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider";

    let querystring = [
        ("country", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.post(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country='
http POST '{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country='
wget --quiet \
  --method POST \
  --output-document \
  - '{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/liasettings/:accountId/setposdataprovider?country=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT content.liasettings.update
{{baseUrl}}/:merchantId/liasettings/:accountId
QUERY PARAMS

merchantId
accountId
BODY json

{
  "accountId": "",
  "countrySettings": [
    {
      "about": {
        "status": "",
        "url": ""
      },
      "country": "",
      "hostedLocalStorefrontActive": false,
      "inventory": {
        "inventoryVerificationContactEmail": "",
        "inventoryVerificationContactName": "",
        "inventoryVerificationContactStatus": "",
        "status": ""
      },
      "onDisplayToOrder": {
        "shippingCostPolicyUrl": "",
        "status": ""
      },
      "posDataProvider": {
        "posDataProviderId": "",
        "posExternalAccountId": ""
      },
      "storePickupActive": false
    }
  ],
  "kind": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/liasettings/:accountId");

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  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:merchantId/liasettings/:accountId" {:content-type :json
                                                                              :form-params {:accountId ""
                                                                                            :countrySettings [{:about {:status ""
                                                                                                                       :url ""}
                                                                                                               :country ""
                                                                                                               :hostedLocalStorefrontActive false
                                                                                                               :inventory {:inventoryVerificationContactEmail ""
                                                                                                                           :inventoryVerificationContactName ""
                                                                                                                           :inventoryVerificationContactStatus ""
                                                                                                                           :status ""}
                                                                                                               :onDisplayToOrder {:shippingCostPolicyUrl ""
                                                                                                                                  :status ""}
                                                                                                               :posDataProvider {:posDataProviderId ""
                                                                                                                                 :posExternalAccountId ""}
                                                                                                               :storePickupActive false}]
                                                                                            :kind ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/liasettings/:accountId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/liasettings/:accountId"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\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}}/:merchantId/liasettings/:accountId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/liasettings/:accountId"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:merchantId/liasettings/:accountId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 636

{
  "accountId": "",
  "countrySettings": [
    {
      "about": {
        "status": "",
        "url": ""
      },
      "country": "",
      "hostedLocalStorefrontActive": false,
      "inventory": {
        "inventoryVerificationContactEmail": "",
        "inventoryVerificationContactName": "",
        "inventoryVerificationContactStatus": "",
        "status": ""
      },
      "onDisplayToOrder": {
        "shippingCostPolicyUrl": "",
        "status": ""
      },
      "posDataProvider": {
        "posDataProviderId": "",
        "posExternalAccountId": ""
      },
      "storePickupActive": false
    }
  ],
  "kind": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:merchantId/liasettings/:accountId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/liasettings/:accountId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\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  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:merchantId/liasettings/:accountId")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  countrySettings: [
    {
      about: {
        status: '',
        url: ''
      },
      country: '',
      hostedLocalStorefrontActive: false,
      inventory: {
        inventoryVerificationContactEmail: '',
        inventoryVerificationContactName: '',
        inventoryVerificationContactStatus: '',
        status: ''
      },
      onDisplayToOrder: {
        shippingCostPolicyUrl: '',
        status: ''
      },
      posDataProvider: {
        posDataProviderId: '',
        posExternalAccountId: ''
      },
      storePickupActive: false
    }
  ],
  kind: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:merchantId/liasettings/:accountId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    countrySettings: [
      {
        about: {status: '', url: ''},
        country: '',
        hostedLocalStorefrontActive: false,
        inventory: {
          inventoryVerificationContactEmail: '',
          inventoryVerificationContactName: '',
          inventoryVerificationContactStatus: '',
          status: ''
        },
        onDisplayToOrder: {shippingCostPolicyUrl: '', status: ''},
        posDataProvider: {posDataProviderId: '', posExternalAccountId: ''},
        storePickupActive: false
      }
    ],
    kind: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/liasettings/:accountId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","countrySettings":[{"about":{"status":"","url":""},"country":"","hostedLocalStorefrontActive":false,"inventory":{"inventoryVerificationContactEmail":"","inventoryVerificationContactName":"","inventoryVerificationContactStatus":"","status":""},"onDisplayToOrder":{"shippingCostPolicyUrl":"","status":""},"posDataProvider":{"posDataProviderId":"","posExternalAccountId":""},"storePickupActive":false}],"kind":""}'
};

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}}/:merchantId/liasettings/:accountId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "countrySettings": [\n    {\n      "about": {\n        "status": "",\n        "url": ""\n      },\n      "country": "",\n      "hostedLocalStorefrontActive": false,\n      "inventory": {\n        "inventoryVerificationContactEmail": "",\n        "inventoryVerificationContactName": "",\n        "inventoryVerificationContactStatus": "",\n        "status": ""\n      },\n      "onDisplayToOrder": {\n        "shippingCostPolicyUrl": "",\n        "status": ""\n      },\n      "posDataProvider": {\n        "posDataProviderId": "",\n        "posExternalAccountId": ""\n      },\n      "storePickupActive": false\n    }\n  ],\n  "kind": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/liasettings/:accountId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/liasettings/:accountId',
  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({
  accountId: '',
  countrySettings: [
    {
      about: {status: '', url: ''},
      country: '',
      hostedLocalStorefrontActive: false,
      inventory: {
        inventoryVerificationContactEmail: '',
        inventoryVerificationContactName: '',
        inventoryVerificationContactStatus: '',
        status: ''
      },
      onDisplayToOrder: {shippingCostPolicyUrl: '', status: ''},
      posDataProvider: {posDataProviderId: '', posExternalAccountId: ''},
      storePickupActive: false
    }
  ],
  kind: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    countrySettings: [
      {
        about: {status: '', url: ''},
        country: '',
        hostedLocalStorefrontActive: false,
        inventory: {
          inventoryVerificationContactEmail: '',
          inventoryVerificationContactName: '',
          inventoryVerificationContactStatus: '',
          status: ''
        },
        onDisplayToOrder: {shippingCostPolicyUrl: '', status: ''},
        posDataProvider: {posDataProviderId: '', posExternalAccountId: ''},
        storePickupActive: false
      }
    ],
    kind: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:merchantId/liasettings/:accountId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  countrySettings: [
    {
      about: {
        status: '',
        url: ''
      },
      country: '',
      hostedLocalStorefrontActive: false,
      inventory: {
        inventoryVerificationContactEmail: '',
        inventoryVerificationContactName: '',
        inventoryVerificationContactStatus: '',
        status: ''
      },
      onDisplayToOrder: {
        shippingCostPolicyUrl: '',
        status: ''
      },
      posDataProvider: {
        posDataProviderId: '',
        posExternalAccountId: ''
      },
      storePickupActive: false
    }
  ],
  kind: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/liasettings/:accountId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    countrySettings: [
      {
        about: {status: '', url: ''},
        country: '',
        hostedLocalStorefrontActive: false,
        inventory: {
          inventoryVerificationContactEmail: '',
          inventoryVerificationContactName: '',
          inventoryVerificationContactStatus: '',
          status: ''
        },
        onDisplayToOrder: {shippingCostPolicyUrl: '', status: ''},
        posDataProvider: {posDataProviderId: '', posExternalAccountId: ''},
        storePickupActive: false
      }
    ],
    kind: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/liasettings/:accountId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","countrySettings":[{"about":{"status":"","url":""},"country":"","hostedLocalStorefrontActive":false,"inventory":{"inventoryVerificationContactEmail":"","inventoryVerificationContactName":"","inventoryVerificationContactStatus":"","status":""},"onDisplayToOrder":{"shippingCostPolicyUrl":"","status":""},"posDataProvider":{"posDataProviderId":"","posExternalAccountId":""},"storePickupActive":false}],"kind":""}'
};

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 = @{ @"accountId": @"",
                              @"countrySettings": @[ @{ @"about": @{ @"status": @"", @"url": @"" }, @"country": @"", @"hostedLocalStorefrontActive": @NO, @"inventory": @{ @"inventoryVerificationContactEmail": @"", @"inventoryVerificationContactName": @"", @"inventoryVerificationContactStatus": @"", @"status": @"" }, @"onDisplayToOrder": @{ @"shippingCostPolicyUrl": @"", @"status": @"" }, @"posDataProvider": @{ @"posDataProviderId": @"", @"posExternalAccountId": @"" }, @"storePickupActive": @NO } ],
                              @"kind": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/liasettings/:accountId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/liasettings/:accountId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/liasettings/:accountId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'countrySettings' => [
        [
                'about' => [
                                'status' => '',
                                'url' => ''
                ],
                'country' => '',
                'hostedLocalStorefrontActive' => null,
                'inventory' => [
                                'inventoryVerificationContactEmail' => '',
                                'inventoryVerificationContactName' => '',
                                'inventoryVerificationContactStatus' => '',
                                'status' => ''
                ],
                'onDisplayToOrder' => [
                                'shippingCostPolicyUrl' => '',
                                'status' => ''
                ],
                'posDataProvider' => [
                                'posDataProviderId' => '',
                                'posExternalAccountId' => ''
                ],
                'storePickupActive' => null
        ]
    ],
    'kind' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:merchantId/liasettings/:accountId', [
  'body' => '{
  "accountId": "",
  "countrySettings": [
    {
      "about": {
        "status": "",
        "url": ""
      },
      "country": "",
      "hostedLocalStorefrontActive": false,
      "inventory": {
        "inventoryVerificationContactEmail": "",
        "inventoryVerificationContactName": "",
        "inventoryVerificationContactStatus": "",
        "status": ""
      },
      "onDisplayToOrder": {
        "shippingCostPolicyUrl": "",
        "status": ""
      },
      "posDataProvider": {
        "posDataProviderId": "",
        "posExternalAccountId": ""
      },
      "storePickupActive": false
    }
  ],
  "kind": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/liasettings/:accountId');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'countrySettings' => [
    [
        'about' => [
                'status' => '',
                'url' => ''
        ],
        'country' => '',
        'hostedLocalStorefrontActive' => null,
        'inventory' => [
                'inventoryVerificationContactEmail' => '',
                'inventoryVerificationContactName' => '',
                'inventoryVerificationContactStatus' => '',
                'status' => ''
        ],
        'onDisplayToOrder' => [
                'shippingCostPolicyUrl' => '',
                'status' => ''
        ],
        'posDataProvider' => [
                'posDataProviderId' => '',
                'posExternalAccountId' => ''
        ],
        'storePickupActive' => null
    ]
  ],
  'kind' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'countrySettings' => [
    [
        'about' => [
                'status' => '',
                'url' => ''
        ],
        'country' => '',
        'hostedLocalStorefrontActive' => null,
        'inventory' => [
                'inventoryVerificationContactEmail' => '',
                'inventoryVerificationContactName' => '',
                'inventoryVerificationContactStatus' => '',
                'status' => ''
        ],
        'onDisplayToOrder' => [
                'shippingCostPolicyUrl' => '',
                'status' => ''
        ],
        'posDataProvider' => [
                'posDataProviderId' => '',
                'posExternalAccountId' => ''
        ],
        'storePickupActive' => null
    ]
  ],
  'kind' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/liasettings/:accountId');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "countrySettings": [
    {
      "about": {
        "status": "",
        "url": ""
      },
      "country": "",
      "hostedLocalStorefrontActive": false,
      "inventory": {
        "inventoryVerificationContactEmail": "",
        "inventoryVerificationContactName": "",
        "inventoryVerificationContactStatus": "",
        "status": ""
      },
      "onDisplayToOrder": {
        "shippingCostPolicyUrl": "",
        "status": ""
      },
      "posDataProvider": {
        "posDataProviderId": "",
        "posExternalAccountId": ""
      },
      "storePickupActive": false
    }
  ],
  "kind": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/liasettings/:accountId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "countrySettings": [
    {
      "about": {
        "status": "",
        "url": ""
      },
      "country": "",
      "hostedLocalStorefrontActive": false,
      "inventory": {
        "inventoryVerificationContactEmail": "",
        "inventoryVerificationContactName": "",
        "inventoryVerificationContactStatus": "",
        "status": ""
      },
      "onDisplayToOrder": {
        "shippingCostPolicyUrl": "",
        "status": ""
      },
      "posDataProvider": {
        "posDataProviderId": "",
        "posExternalAccountId": ""
      },
      "storePickupActive": false
    }
  ],
  "kind": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:merchantId/liasettings/:accountId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/liasettings/:accountId"

payload = {
    "accountId": "",
    "countrySettings": [
        {
            "about": {
                "status": "",
                "url": ""
            },
            "country": "",
            "hostedLocalStorefrontActive": False,
            "inventory": {
                "inventoryVerificationContactEmail": "",
                "inventoryVerificationContactName": "",
                "inventoryVerificationContactStatus": "",
                "status": ""
            },
            "onDisplayToOrder": {
                "shippingCostPolicyUrl": "",
                "status": ""
            },
            "posDataProvider": {
                "posDataProviderId": "",
                "posExternalAccountId": ""
            },
            "storePickupActive": False
        }
    ],
    "kind": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/liasettings/:accountId"

payload <- "{\n  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/liasettings/:accountId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:merchantId/liasettings/:accountId') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"countrySettings\": [\n    {\n      \"about\": {\n        \"status\": \"\",\n        \"url\": \"\"\n      },\n      \"country\": \"\",\n      \"hostedLocalStorefrontActive\": false,\n      \"inventory\": {\n        \"inventoryVerificationContactEmail\": \"\",\n        \"inventoryVerificationContactName\": \"\",\n        \"inventoryVerificationContactStatus\": \"\",\n        \"status\": \"\"\n      },\n      \"onDisplayToOrder\": {\n        \"shippingCostPolicyUrl\": \"\",\n        \"status\": \"\"\n      },\n      \"posDataProvider\": {\n        \"posDataProviderId\": \"\",\n        \"posExternalAccountId\": \"\"\n      },\n      \"storePickupActive\": false\n    }\n  ],\n  \"kind\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/liasettings/:accountId";

    let payload = json!({
        "accountId": "",
        "countrySettings": (
            json!({
                "about": json!({
                    "status": "",
                    "url": ""
                }),
                "country": "",
                "hostedLocalStorefrontActive": false,
                "inventory": json!({
                    "inventoryVerificationContactEmail": "",
                    "inventoryVerificationContactName": "",
                    "inventoryVerificationContactStatus": "",
                    "status": ""
                }),
                "onDisplayToOrder": json!({
                    "shippingCostPolicyUrl": "",
                    "status": ""
                }),
                "posDataProvider": json!({
                    "posDataProviderId": "",
                    "posExternalAccountId": ""
                }),
                "storePickupActive": false
            })
        ),
        "kind": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:merchantId/liasettings/:accountId \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "countrySettings": [
    {
      "about": {
        "status": "",
        "url": ""
      },
      "country": "",
      "hostedLocalStorefrontActive": false,
      "inventory": {
        "inventoryVerificationContactEmail": "",
        "inventoryVerificationContactName": "",
        "inventoryVerificationContactStatus": "",
        "status": ""
      },
      "onDisplayToOrder": {
        "shippingCostPolicyUrl": "",
        "status": ""
      },
      "posDataProvider": {
        "posDataProviderId": "",
        "posExternalAccountId": ""
      },
      "storePickupActive": false
    }
  ],
  "kind": ""
}'
echo '{
  "accountId": "",
  "countrySettings": [
    {
      "about": {
        "status": "",
        "url": ""
      },
      "country": "",
      "hostedLocalStorefrontActive": false,
      "inventory": {
        "inventoryVerificationContactEmail": "",
        "inventoryVerificationContactName": "",
        "inventoryVerificationContactStatus": "",
        "status": ""
      },
      "onDisplayToOrder": {
        "shippingCostPolicyUrl": "",
        "status": ""
      },
      "posDataProvider": {
        "posDataProviderId": "",
        "posExternalAccountId": ""
      },
      "storePickupActive": false
    }
  ],
  "kind": ""
}' |  \
  http PUT {{baseUrl}}/:merchantId/liasettings/:accountId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "countrySettings": [\n    {\n      "about": {\n        "status": "",\n        "url": ""\n      },\n      "country": "",\n      "hostedLocalStorefrontActive": false,\n      "inventory": {\n        "inventoryVerificationContactEmail": "",\n        "inventoryVerificationContactName": "",\n        "inventoryVerificationContactStatus": "",\n        "status": ""\n      },\n      "onDisplayToOrder": {\n        "shippingCostPolicyUrl": "",\n        "status": ""\n      },\n      "posDataProvider": {\n        "posDataProviderId": "",\n        "posExternalAccountId": ""\n      },\n      "storePickupActive": false\n    }\n  ],\n  "kind": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/liasettings/:accountId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "countrySettings": [
    [
      "about": [
        "status": "",
        "url": ""
      ],
      "country": "",
      "hostedLocalStorefrontActive": false,
      "inventory": [
        "inventoryVerificationContactEmail": "",
        "inventoryVerificationContactName": "",
        "inventoryVerificationContactStatus": "",
        "status": ""
      ],
      "onDisplayToOrder": [
        "shippingCostPolicyUrl": "",
        "status": ""
      ],
      "posDataProvider": [
        "posDataProviderId": "",
        "posExternalAccountId": ""
      ],
      "storePickupActive": false
    ]
  ],
  "kind": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/liasettings/:accountId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.orderinvoices.createchargeinvoice
{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice
QUERY PARAMS

merchantId
orderId
BODY json

{
  "invoiceId": "",
  "invoiceSummary": {
    "additionalChargeSummaries": [
      {
        "totalAmount": {
          "pretax": {
            "currency": "",
            "value": ""
          },
          "tax": {}
        },
        "type": ""
      }
    ],
    "customerBalance": {},
    "googleBalance": {},
    "merchantBalance": {},
    "productTotal": {},
    "promotionSummaries": [
      {
        "promotionAmount": {},
        "promotionId": ""
      }
    ]
  },
  "lineItemInvoices": [
    {
      "lineItemId": "",
      "productId": "",
      "shipmentUnitIds": [],
      "unitInvoice": {
        "additionalCharges": [
          {
            "additionalChargeAmount": {},
            "additionalChargePromotions": [
              {}
            ],
            "type": ""
          }
        ],
        "promotions": [
          {}
        ],
        "unitPricePretax": {},
        "unitPriceTaxes": [
          {
            "taxAmount": {},
            "taxName": "",
            "taxType": ""
          }
        ]
      }
    }
  ],
  "operationId": "",
  "shipmentGroupId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice");

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  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice" {:content-type :json
                                                                                                   :form-params {:invoiceId ""
                                                                                                                 :invoiceSummary {:additionalChargeSummaries [{:totalAmount {:pretax {:currency ""
                                                                                                                                                                                      :value ""}
                                                                                                                                                                             :tax {}}
                                                                                                                                                               :type ""}]
                                                                                                                                  :customerBalance {}
                                                                                                                                  :googleBalance {}
                                                                                                                                  :merchantBalance {}
                                                                                                                                  :productTotal {}
                                                                                                                                  :promotionSummaries [{:promotionAmount {}
                                                                                                                                                        :promotionId ""}]}
                                                                                                                 :lineItemInvoices [{:lineItemId ""
                                                                                                                                     :productId ""
                                                                                                                                     :shipmentUnitIds []
                                                                                                                                     :unitInvoice {:additionalCharges [{:additionalChargeAmount {}
                                                                                                                                                                        :additionalChargePromotions [{}]
                                                                                                                                                                        :type ""}]
                                                                                                                                                   :promotions [{}]
                                                                                                                                                   :unitPricePretax {}
                                                                                                                                                   :unitPriceTaxes [{:taxAmount {}
                                                                                                                                                                     :taxName ""
                                                                                                                                                                     :taxType ""}]}}]
                                                                                                                 :operationId ""
                                                                                                                 :shipmentGroupId ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\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}}/:merchantId/orderinvoices/:orderId/createChargeInvoice"),
    Content = new StringContent("{\n  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\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}}/:merchantId/orderinvoices/:orderId/createChargeInvoice");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice"

	payload := strings.NewReader("{\n  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\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/:merchantId/orderinvoices/:orderId/createChargeInvoice HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1102

{
  "invoiceId": "",
  "invoiceSummary": {
    "additionalChargeSummaries": [
      {
        "totalAmount": {
          "pretax": {
            "currency": "",
            "value": ""
          },
          "tax": {}
        },
        "type": ""
      }
    ],
    "customerBalance": {},
    "googleBalance": {},
    "merchantBalance": {},
    "productTotal": {},
    "promotionSummaries": [
      {
        "promotionAmount": {},
        "promotionId": ""
      }
    ]
  },
  "lineItemInvoices": [
    {
      "lineItemId": "",
      "productId": "",
      "shipmentUnitIds": [],
      "unitInvoice": {
        "additionalCharges": [
          {
            "additionalChargeAmount": {},
            "additionalChargePromotions": [
              {}
            ],
            "type": ""
          }
        ],
        "promotions": [
          {}
        ],
        "unitPricePretax": {},
        "unitPriceTaxes": [
          {
            "taxAmount": {},
            "taxName": "",
            "taxType": ""
          }
        ]
      }
    }
  ],
  "operationId": "",
  "shipmentGroupId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\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  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice")
  .header("content-type", "application/json")
  .body("{\n  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  invoiceId: '',
  invoiceSummary: {
    additionalChargeSummaries: [
      {
        totalAmount: {
          pretax: {
            currency: '',
            value: ''
          },
          tax: {}
        },
        type: ''
      }
    ],
    customerBalance: {},
    googleBalance: {},
    merchantBalance: {},
    productTotal: {},
    promotionSummaries: [
      {
        promotionAmount: {},
        promotionId: ''
      }
    ]
  },
  lineItemInvoices: [
    {
      lineItemId: '',
      productId: '',
      shipmentUnitIds: [],
      unitInvoice: {
        additionalCharges: [
          {
            additionalChargeAmount: {},
            additionalChargePromotions: [
              {}
            ],
            type: ''
          }
        ],
        promotions: [
          {}
        ],
        unitPricePretax: {},
        unitPriceTaxes: [
          {
            taxAmount: {},
            taxName: '',
            taxType: ''
          }
        ]
      }
    }
  ],
  operationId: '',
  shipmentGroupId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice',
  headers: {'content-type': 'application/json'},
  data: {
    invoiceId: '',
    invoiceSummary: {
      additionalChargeSummaries: [{totalAmount: {pretax: {currency: '', value: ''}, tax: {}}, type: ''}],
      customerBalance: {},
      googleBalance: {},
      merchantBalance: {},
      productTotal: {},
      promotionSummaries: [{promotionAmount: {}, promotionId: ''}]
    },
    lineItemInvoices: [
      {
        lineItemId: '',
        productId: '',
        shipmentUnitIds: [],
        unitInvoice: {
          additionalCharges: [{additionalChargeAmount: {}, additionalChargePromotions: [{}], type: ''}],
          promotions: [{}],
          unitPricePretax: {},
          unitPriceTaxes: [{taxAmount: {}, taxName: '', taxType: ''}]
        }
      }
    ],
    operationId: '',
    shipmentGroupId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"invoiceId":"","invoiceSummary":{"additionalChargeSummaries":[{"totalAmount":{"pretax":{"currency":"","value":""},"tax":{}},"type":""}],"customerBalance":{},"googleBalance":{},"merchantBalance":{},"productTotal":{},"promotionSummaries":[{"promotionAmount":{},"promotionId":""}]},"lineItemInvoices":[{"lineItemId":"","productId":"","shipmentUnitIds":[],"unitInvoice":{"additionalCharges":[{"additionalChargeAmount":{},"additionalChargePromotions":[{}],"type":""}],"promotions":[{}],"unitPricePretax":{},"unitPriceTaxes":[{"taxAmount":{},"taxName":"","taxType":""}]}}],"operationId":"","shipmentGroupId":""}'
};

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}}/:merchantId/orderinvoices/:orderId/createChargeInvoice',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "invoiceId": "",\n  "invoiceSummary": {\n    "additionalChargeSummaries": [\n      {\n        "totalAmount": {\n          "pretax": {\n            "currency": "",\n            "value": ""\n          },\n          "tax": {}\n        },\n        "type": ""\n      }\n    ],\n    "customerBalance": {},\n    "googleBalance": {},\n    "merchantBalance": {},\n    "productTotal": {},\n    "promotionSummaries": [\n      {\n        "promotionAmount": {},\n        "promotionId": ""\n      }\n    ]\n  },\n  "lineItemInvoices": [\n    {\n      "lineItemId": "",\n      "productId": "",\n      "shipmentUnitIds": [],\n      "unitInvoice": {\n        "additionalCharges": [\n          {\n            "additionalChargeAmount": {},\n            "additionalChargePromotions": [\n              {}\n            ],\n            "type": ""\n          }\n        ],\n        "promotions": [\n          {}\n        ],\n        "unitPricePretax": {},\n        "unitPriceTaxes": [\n          {\n            "taxAmount": {},\n            "taxName": "",\n            "taxType": ""\n          }\n        ]\n      }\n    }\n  ],\n  "operationId": "",\n  "shipmentGroupId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice")
  .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/:merchantId/orderinvoices/:orderId/createChargeInvoice',
  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({
  invoiceId: '',
  invoiceSummary: {
    additionalChargeSummaries: [{totalAmount: {pretax: {currency: '', value: ''}, tax: {}}, type: ''}],
    customerBalance: {},
    googleBalance: {},
    merchantBalance: {},
    productTotal: {},
    promotionSummaries: [{promotionAmount: {}, promotionId: ''}]
  },
  lineItemInvoices: [
    {
      lineItemId: '',
      productId: '',
      shipmentUnitIds: [],
      unitInvoice: {
        additionalCharges: [{additionalChargeAmount: {}, additionalChargePromotions: [{}], type: ''}],
        promotions: [{}],
        unitPricePretax: {},
        unitPriceTaxes: [{taxAmount: {}, taxName: '', taxType: ''}]
      }
    }
  ],
  operationId: '',
  shipmentGroupId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice',
  headers: {'content-type': 'application/json'},
  body: {
    invoiceId: '',
    invoiceSummary: {
      additionalChargeSummaries: [{totalAmount: {pretax: {currency: '', value: ''}, tax: {}}, type: ''}],
      customerBalance: {},
      googleBalance: {},
      merchantBalance: {},
      productTotal: {},
      promotionSummaries: [{promotionAmount: {}, promotionId: ''}]
    },
    lineItemInvoices: [
      {
        lineItemId: '',
        productId: '',
        shipmentUnitIds: [],
        unitInvoice: {
          additionalCharges: [{additionalChargeAmount: {}, additionalChargePromotions: [{}], type: ''}],
          promotions: [{}],
          unitPricePretax: {},
          unitPriceTaxes: [{taxAmount: {}, taxName: '', taxType: ''}]
        }
      }
    ],
    operationId: '',
    shipmentGroupId: ''
  },
  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}}/:merchantId/orderinvoices/:orderId/createChargeInvoice');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  invoiceId: '',
  invoiceSummary: {
    additionalChargeSummaries: [
      {
        totalAmount: {
          pretax: {
            currency: '',
            value: ''
          },
          tax: {}
        },
        type: ''
      }
    ],
    customerBalance: {},
    googleBalance: {},
    merchantBalance: {},
    productTotal: {},
    promotionSummaries: [
      {
        promotionAmount: {},
        promotionId: ''
      }
    ]
  },
  lineItemInvoices: [
    {
      lineItemId: '',
      productId: '',
      shipmentUnitIds: [],
      unitInvoice: {
        additionalCharges: [
          {
            additionalChargeAmount: {},
            additionalChargePromotions: [
              {}
            ],
            type: ''
          }
        ],
        promotions: [
          {}
        ],
        unitPricePretax: {},
        unitPriceTaxes: [
          {
            taxAmount: {},
            taxName: '',
            taxType: ''
          }
        ]
      }
    }
  ],
  operationId: '',
  shipmentGroupId: ''
});

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}}/:merchantId/orderinvoices/:orderId/createChargeInvoice',
  headers: {'content-type': 'application/json'},
  data: {
    invoiceId: '',
    invoiceSummary: {
      additionalChargeSummaries: [{totalAmount: {pretax: {currency: '', value: ''}, tax: {}}, type: ''}],
      customerBalance: {},
      googleBalance: {},
      merchantBalance: {},
      productTotal: {},
      promotionSummaries: [{promotionAmount: {}, promotionId: ''}]
    },
    lineItemInvoices: [
      {
        lineItemId: '',
        productId: '',
        shipmentUnitIds: [],
        unitInvoice: {
          additionalCharges: [{additionalChargeAmount: {}, additionalChargePromotions: [{}], type: ''}],
          promotions: [{}],
          unitPricePretax: {},
          unitPriceTaxes: [{taxAmount: {}, taxName: '', taxType: ''}]
        }
      }
    ],
    operationId: '',
    shipmentGroupId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"invoiceId":"","invoiceSummary":{"additionalChargeSummaries":[{"totalAmount":{"pretax":{"currency":"","value":""},"tax":{}},"type":""}],"customerBalance":{},"googleBalance":{},"merchantBalance":{},"productTotal":{},"promotionSummaries":[{"promotionAmount":{},"promotionId":""}]},"lineItemInvoices":[{"lineItemId":"","productId":"","shipmentUnitIds":[],"unitInvoice":{"additionalCharges":[{"additionalChargeAmount":{},"additionalChargePromotions":[{}],"type":""}],"promotions":[{}],"unitPricePretax":{},"unitPriceTaxes":[{"taxAmount":{},"taxName":"","taxType":""}]}}],"operationId":"","shipmentGroupId":""}'
};

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 = @{ @"invoiceId": @"",
                              @"invoiceSummary": @{ @"additionalChargeSummaries": @[ @{ @"totalAmount": @{ @"pretax": @{ @"currency": @"", @"value": @"" }, @"tax": @{  } }, @"type": @"" } ], @"customerBalance": @{  }, @"googleBalance": @{  }, @"merchantBalance": @{  }, @"productTotal": @{  }, @"promotionSummaries": @[ @{ @"promotionAmount": @{  }, @"promotionId": @"" } ] },
                              @"lineItemInvoices": @[ @{ @"lineItemId": @"", @"productId": @"", @"shipmentUnitIds": @[  ], @"unitInvoice": @{ @"additionalCharges": @[ @{ @"additionalChargeAmount": @{  }, @"additionalChargePromotions": @[ @{  } ], @"type": @"" } ], @"promotions": @[ @{  } ], @"unitPricePretax": @{  }, @"unitPriceTaxes": @[ @{ @"taxAmount": @{  }, @"taxName": @"", @"taxType": @"" } ] } } ],
                              @"operationId": @"",
                              @"shipmentGroupId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice"]
                                                       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}}/:merchantId/orderinvoices/:orderId/createChargeInvoice" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice",
  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([
    'invoiceId' => '',
    'invoiceSummary' => [
        'additionalChargeSummaries' => [
                [
                                'totalAmount' => [
                                                                'pretax' => [
                                                                                                                                'currency' => '',
                                                                                                                                'value' => ''
                                                                ],
                                                                'tax' => [
                                                                                                                                
                                                                ]
                                ],
                                'type' => ''
                ]
        ],
        'customerBalance' => [
                
        ],
        'googleBalance' => [
                
        ],
        'merchantBalance' => [
                
        ],
        'productTotal' => [
                
        ],
        'promotionSummaries' => [
                [
                                'promotionAmount' => [
                                                                
                                ],
                                'promotionId' => ''
                ]
        ]
    ],
    'lineItemInvoices' => [
        [
                'lineItemId' => '',
                'productId' => '',
                'shipmentUnitIds' => [
                                
                ],
                'unitInvoice' => [
                                'additionalCharges' => [
                                                                [
                                                                                                                                'additionalChargeAmount' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'additionalChargePromotions' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'promotions' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'unitPricePretax' => [
                                                                
                                ],
                                'unitPriceTaxes' => [
                                                                [
                                                                                                                                'taxAmount' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'taxName' => '',
                                                                                                                                'taxType' => ''
                                                                ]
                                ]
                ]
        ]
    ],
    'operationId' => '',
    'shipmentGroupId' => ''
  ]),
  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}}/:merchantId/orderinvoices/:orderId/createChargeInvoice', [
  'body' => '{
  "invoiceId": "",
  "invoiceSummary": {
    "additionalChargeSummaries": [
      {
        "totalAmount": {
          "pretax": {
            "currency": "",
            "value": ""
          },
          "tax": {}
        },
        "type": ""
      }
    ],
    "customerBalance": {},
    "googleBalance": {},
    "merchantBalance": {},
    "productTotal": {},
    "promotionSummaries": [
      {
        "promotionAmount": {},
        "promotionId": ""
      }
    ]
  },
  "lineItemInvoices": [
    {
      "lineItemId": "",
      "productId": "",
      "shipmentUnitIds": [],
      "unitInvoice": {
        "additionalCharges": [
          {
            "additionalChargeAmount": {},
            "additionalChargePromotions": [
              {}
            ],
            "type": ""
          }
        ],
        "promotions": [
          {}
        ],
        "unitPricePretax": {},
        "unitPriceTaxes": [
          {
            "taxAmount": {},
            "taxName": "",
            "taxType": ""
          }
        ]
      }
    }
  ],
  "operationId": "",
  "shipmentGroupId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'invoiceId' => '',
  'invoiceSummary' => [
    'additionalChargeSummaries' => [
        [
                'totalAmount' => [
                                'pretax' => [
                                                                'currency' => '',
                                                                'value' => ''
                                ],
                                'tax' => [
                                                                
                                ]
                ],
                'type' => ''
        ]
    ],
    'customerBalance' => [
        
    ],
    'googleBalance' => [
        
    ],
    'merchantBalance' => [
        
    ],
    'productTotal' => [
        
    ],
    'promotionSummaries' => [
        [
                'promotionAmount' => [
                                
                ],
                'promotionId' => ''
        ]
    ]
  ],
  'lineItemInvoices' => [
    [
        'lineItemId' => '',
        'productId' => '',
        'shipmentUnitIds' => [
                
        ],
        'unitInvoice' => [
                'additionalCharges' => [
                                [
                                                                'additionalChargeAmount' => [
                                                                                                                                
                                                                ],
                                                                'additionalChargePromotions' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'promotions' => [
                                [
                                                                
                                ]
                ],
                'unitPricePretax' => [
                                
                ],
                'unitPriceTaxes' => [
                                [
                                                                'taxAmount' => [
                                                                                                                                
                                                                ],
                                                                'taxName' => '',
                                                                'taxType' => ''
                                ]
                ]
        ]
    ]
  ],
  'operationId' => '',
  'shipmentGroupId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'invoiceId' => '',
  'invoiceSummary' => [
    'additionalChargeSummaries' => [
        [
                'totalAmount' => [
                                'pretax' => [
                                                                'currency' => '',
                                                                'value' => ''
                                ],
                                'tax' => [
                                                                
                                ]
                ],
                'type' => ''
        ]
    ],
    'customerBalance' => [
        
    ],
    'googleBalance' => [
        
    ],
    'merchantBalance' => [
        
    ],
    'productTotal' => [
        
    ],
    'promotionSummaries' => [
        [
                'promotionAmount' => [
                                
                ],
                'promotionId' => ''
        ]
    ]
  ],
  'lineItemInvoices' => [
    [
        'lineItemId' => '',
        'productId' => '',
        'shipmentUnitIds' => [
                
        ],
        'unitInvoice' => [
                'additionalCharges' => [
                                [
                                                                'additionalChargeAmount' => [
                                                                                                                                
                                                                ],
                                                                'additionalChargePromotions' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'promotions' => [
                                [
                                                                
                                ]
                ],
                'unitPricePretax' => [
                                
                ],
                'unitPriceTaxes' => [
                                [
                                                                'taxAmount' => [
                                                                                                                                
                                                                ],
                                                                'taxName' => '',
                                                                'taxType' => ''
                                ]
                ]
        ]
    ]
  ],
  'operationId' => '',
  'shipmentGroupId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice');
$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}}/:merchantId/orderinvoices/:orderId/createChargeInvoice' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "invoiceId": "",
  "invoiceSummary": {
    "additionalChargeSummaries": [
      {
        "totalAmount": {
          "pretax": {
            "currency": "",
            "value": ""
          },
          "tax": {}
        },
        "type": ""
      }
    ],
    "customerBalance": {},
    "googleBalance": {},
    "merchantBalance": {},
    "productTotal": {},
    "promotionSummaries": [
      {
        "promotionAmount": {},
        "promotionId": ""
      }
    ]
  },
  "lineItemInvoices": [
    {
      "lineItemId": "",
      "productId": "",
      "shipmentUnitIds": [],
      "unitInvoice": {
        "additionalCharges": [
          {
            "additionalChargeAmount": {},
            "additionalChargePromotions": [
              {}
            ],
            "type": ""
          }
        ],
        "promotions": [
          {}
        ],
        "unitPricePretax": {},
        "unitPriceTaxes": [
          {
            "taxAmount": {},
            "taxName": "",
            "taxType": ""
          }
        ]
      }
    }
  ],
  "operationId": "",
  "shipmentGroupId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "invoiceId": "",
  "invoiceSummary": {
    "additionalChargeSummaries": [
      {
        "totalAmount": {
          "pretax": {
            "currency": "",
            "value": ""
          },
          "tax": {}
        },
        "type": ""
      }
    ],
    "customerBalance": {},
    "googleBalance": {},
    "merchantBalance": {},
    "productTotal": {},
    "promotionSummaries": [
      {
        "promotionAmount": {},
        "promotionId": ""
      }
    ]
  },
  "lineItemInvoices": [
    {
      "lineItemId": "",
      "productId": "",
      "shipmentUnitIds": [],
      "unitInvoice": {
        "additionalCharges": [
          {
            "additionalChargeAmount": {},
            "additionalChargePromotions": [
              {}
            ],
            "type": ""
          }
        ],
        "promotions": [
          {}
        ],
        "unitPricePretax": {},
        "unitPriceTaxes": [
          {
            "taxAmount": {},
            "taxName": "",
            "taxType": ""
          }
        ]
      }
    }
  ],
  "operationId": "",
  "shipmentGroupId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orderinvoices/:orderId/createChargeInvoice", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice"

payload = {
    "invoiceId": "",
    "invoiceSummary": {
        "additionalChargeSummaries": [
            {
                "totalAmount": {
                    "pretax": {
                        "currency": "",
                        "value": ""
                    },
                    "tax": {}
                },
                "type": ""
            }
        ],
        "customerBalance": {},
        "googleBalance": {},
        "merchantBalance": {},
        "productTotal": {},
        "promotionSummaries": [
            {
                "promotionAmount": {},
                "promotionId": ""
            }
        ]
    },
    "lineItemInvoices": [
        {
            "lineItemId": "",
            "productId": "",
            "shipmentUnitIds": [],
            "unitInvoice": {
                "additionalCharges": [
                    {
                        "additionalChargeAmount": {},
                        "additionalChargePromotions": [{}],
                        "type": ""
                    }
                ],
                "promotions": [{}],
                "unitPricePretax": {},
                "unitPriceTaxes": [
                    {
                        "taxAmount": {},
                        "taxName": "",
                        "taxType": ""
                    }
                ]
            }
        }
    ],
    "operationId": "",
    "shipmentGroupId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice"

payload <- "{\n  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\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}}/:merchantId/orderinvoices/:orderId/createChargeInvoice")

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  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\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/:merchantId/orderinvoices/:orderId/createChargeInvoice') do |req|
  req.body = "{\n  \"invoiceId\": \"\",\n  \"invoiceSummary\": {\n    \"additionalChargeSummaries\": [\n      {\n        \"totalAmount\": {\n          \"pretax\": {\n            \"currency\": \"\",\n            \"value\": \"\"\n          },\n          \"tax\": {}\n        },\n        \"type\": \"\"\n      }\n    ],\n    \"customerBalance\": {},\n    \"googleBalance\": {},\n    \"merchantBalance\": {},\n    \"productTotal\": {},\n    \"promotionSummaries\": [\n      {\n        \"promotionAmount\": {},\n        \"promotionId\": \"\"\n      }\n    ]\n  },\n  \"lineItemInvoices\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"shipmentUnitIds\": [],\n      \"unitInvoice\": {\n        \"additionalCharges\": [\n          {\n            \"additionalChargeAmount\": {},\n            \"additionalChargePromotions\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"promotions\": [\n          {}\n        ],\n        \"unitPricePretax\": {},\n        \"unitPriceTaxes\": [\n          {\n            \"taxAmount\": {},\n            \"taxName\": \"\",\n            \"taxType\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice";

    let payload = json!({
        "invoiceId": "",
        "invoiceSummary": json!({
            "additionalChargeSummaries": (
                json!({
                    "totalAmount": json!({
                        "pretax": json!({
                            "currency": "",
                            "value": ""
                        }),
                        "tax": json!({})
                    }),
                    "type": ""
                })
            ),
            "customerBalance": json!({}),
            "googleBalance": json!({}),
            "merchantBalance": json!({}),
            "productTotal": json!({}),
            "promotionSummaries": (
                json!({
                    "promotionAmount": json!({}),
                    "promotionId": ""
                })
            )
        }),
        "lineItemInvoices": (
            json!({
                "lineItemId": "",
                "productId": "",
                "shipmentUnitIds": (),
                "unitInvoice": json!({
                    "additionalCharges": (
                        json!({
                            "additionalChargeAmount": json!({}),
                            "additionalChargePromotions": (json!({})),
                            "type": ""
                        })
                    ),
                    "promotions": (json!({})),
                    "unitPricePretax": json!({}),
                    "unitPriceTaxes": (
                        json!({
                            "taxAmount": json!({}),
                            "taxName": "",
                            "taxType": ""
                        })
                    )
                })
            })
        ),
        "operationId": "",
        "shipmentGroupId": ""
    });

    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}}/:merchantId/orderinvoices/:orderId/createChargeInvoice \
  --header 'content-type: application/json' \
  --data '{
  "invoiceId": "",
  "invoiceSummary": {
    "additionalChargeSummaries": [
      {
        "totalAmount": {
          "pretax": {
            "currency": "",
            "value": ""
          },
          "tax": {}
        },
        "type": ""
      }
    ],
    "customerBalance": {},
    "googleBalance": {},
    "merchantBalance": {},
    "productTotal": {},
    "promotionSummaries": [
      {
        "promotionAmount": {},
        "promotionId": ""
      }
    ]
  },
  "lineItemInvoices": [
    {
      "lineItemId": "",
      "productId": "",
      "shipmentUnitIds": [],
      "unitInvoice": {
        "additionalCharges": [
          {
            "additionalChargeAmount": {},
            "additionalChargePromotions": [
              {}
            ],
            "type": ""
          }
        ],
        "promotions": [
          {}
        ],
        "unitPricePretax": {},
        "unitPriceTaxes": [
          {
            "taxAmount": {},
            "taxName": "",
            "taxType": ""
          }
        ]
      }
    }
  ],
  "operationId": "",
  "shipmentGroupId": ""
}'
echo '{
  "invoiceId": "",
  "invoiceSummary": {
    "additionalChargeSummaries": [
      {
        "totalAmount": {
          "pretax": {
            "currency": "",
            "value": ""
          },
          "tax": {}
        },
        "type": ""
      }
    ],
    "customerBalance": {},
    "googleBalance": {},
    "merchantBalance": {},
    "productTotal": {},
    "promotionSummaries": [
      {
        "promotionAmount": {},
        "promotionId": ""
      }
    ]
  },
  "lineItemInvoices": [
    {
      "lineItemId": "",
      "productId": "",
      "shipmentUnitIds": [],
      "unitInvoice": {
        "additionalCharges": [
          {
            "additionalChargeAmount": {},
            "additionalChargePromotions": [
              {}
            ],
            "type": ""
          }
        ],
        "promotions": [
          {}
        ],
        "unitPricePretax": {},
        "unitPriceTaxes": [
          {
            "taxAmount": {},
            "taxName": "",
            "taxType": ""
          }
        ]
      }
    }
  ],
  "operationId": "",
  "shipmentGroupId": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "invoiceId": "",\n  "invoiceSummary": {\n    "additionalChargeSummaries": [\n      {\n        "totalAmount": {\n          "pretax": {\n            "currency": "",\n            "value": ""\n          },\n          "tax": {}\n        },\n        "type": ""\n      }\n    ],\n    "customerBalance": {},\n    "googleBalance": {},\n    "merchantBalance": {},\n    "productTotal": {},\n    "promotionSummaries": [\n      {\n        "promotionAmount": {},\n        "promotionId": ""\n      }\n    ]\n  },\n  "lineItemInvoices": [\n    {\n      "lineItemId": "",\n      "productId": "",\n      "shipmentUnitIds": [],\n      "unitInvoice": {\n        "additionalCharges": [\n          {\n            "additionalChargeAmount": {},\n            "additionalChargePromotions": [\n              {}\n            ],\n            "type": ""\n          }\n        ],\n        "promotions": [\n          {}\n        ],\n        "unitPricePretax": {},\n        "unitPriceTaxes": [\n          {\n            "taxAmount": {},\n            "taxName": "",\n            "taxType": ""\n          }\n        ]\n      }\n    }\n  ],\n  "operationId": "",\n  "shipmentGroupId": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "invoiceId": "",
  "invoiceSummary": [
    "additionalChargeSummaries": [
      [
        "totalAmount": [
          "pretax": [
            "currency": "",
            "value": ""
          ],
          "tax": []
        ],
        "type": ""
      ]
    ],
    "customerBalance": [],
    "googleBalance": [],
    "merchantBalance": [],
    "productTotal": [],
    "promotionSummaries": [
      [
        "promotionAmount": [],
        "promotionId": ""
      ]
    ]
  ],
  "lineItemInvoices": [
    [
      "lineItemId": "",
      "productId": "",
      "shipmentUnitIds": [],
      "unitInvoice": [
        "additionalCharges": [
          [
            "additionalChargeAmount": [],
            "additionalChargePromotions": [[]],
            "type": ""
          ]
        ],
        "promotions": [[]],
        "unitPricePretax": [],
        "unitPriceTaxes": [
          [
            "taxAmount": [],
            "taxName": "",
            "taxType": ""
          ]
        ]
      ]
    ]
  ],
  "operationId": "",
  "shipmentGroupId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createChargeInvoice")! 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()
POST content.orderinvoices.createrefundinvoice
{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice
QUERY PARAMS

merchantId
orderId
BODY json

{
  "invoiceId": "",
  "operationId": "",
  "refundOnlyOption": {
    "description": "",
    "reason": ""
  },
  "returnOption": {
    "description": "",
    "reason": ""
  },
  "shipmentInvoices": [
    {
      "invoiceSummary": {
        "additionalChargeSummaries": [
          {
            "totalAmount": {
              "pretax": {
                "currency": "",
                "value": ""
              },
              "tax": {}
            },
            "type": ""
          }
        ],
        "customerBalance": {},
        "googleBalance": {},
        "merchantBalance": {},
        "productTotal": {},
        "promotionSummaries": [
          {
            "promotionAmount": {},
            "promotionId": ""
          }
        ]
      },
      "lineItemInvoices": [
        {
          "lineItemId": "",
          "productId": "",
          "shipmentUnitIds": [],
          "unitInvoice": {
            "additionalCharges": [
              {
                "additionalChargeAmount": {},
                "additionalChargePromotions": [
                  {}
                ],
                "type": ""
              }
            ],
            "promotions": [
              {}
            ],
            "unitPricePretax": {},
            "unitPriceTaxes": [
              {
                "taxAmount": {},
                "taxName": "",
                "taxType": ""
              }
            ]
          }
        }
      ],
      "shipmentGroupId": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice");

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  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice" {:content-type :json
                                                                                                   :form-params {:invoiceId ""
                                                                                                                 :operationId ""
                                                                                                                 :refundOnlyOption {:description ""
                                                                                                                                    :reason ""}
                                                                                                                 :returnOption {:description ""
                                                                                                                                :reason ""}
                                                                                                                 :shipmentInvoices [{:invoiceSummary {:additionalChargeSummaries [{:totalAmount {:pretax {:currency ""
                                                                                                                                                                                                          :value ""}
                                                                                                                                                                                                 :tax {}}
                                                                                                                                                                                   :type ""}]
                                                                                                                                                      :customerBalance {}
                                                                                                                                                      :googleBalance {}
                                                                                                                                                      :merchantBalance {}
                                                                                                                                                      :productTotal {}
                                                                                                                                                      :promotionSummaries [{:promotionAmount {}
                                                                                                                                                                            :promotionId ""}]}
                                                                                                                                     :lineItemInvoices [{:lineItemId ""
                                                                                                                                                         :productId ""
                                                                                                                                                         :shipmentUnitIds []
                                                                                                                                                         :unitInvoice {:additionalCharges [{:additionalChargeAmount {}
                                                                                                                                                                                            :additionalChargePromotions [{}]
                                                                                                                                                                                            :type ""}]
                                                                                                                                                                       :promotions [{}]
                                                                                                                                                                       :unitPricePretax {}
                                                                                                                                                                       :unitPriceTaxes [{:taxAmount {}
                                                                                                                                                                                         :taxName ""
                                                                                                                                                                                         :taxType ""}]}}]
                                                                                                                                     :shipmentGroupId ""}]}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice"),
    Content = new StringContent("{\n  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice"

	payload := strings.NewReader("{\n  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:merchantId/orderinvoices/:orderId/createRefundInvoice HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1492

{
  "invoiceId": "",
  "operationId": "",
  "refundOnlyOption": {
    "description": "",
    "reason": ""
  },
  "returnOption": {
    "description": "",
    "reason": ""
  },
  "shipmentInvoices": [
    {
      "invoiceSummary": {
        "additionalChargeSummaries": [
          {
            "totalAmount": {
              "pretax": {
                "currency": "",
                "value": ""
              },
              "tax": {}
            },
            "type": ""
          }
        ],
        "customerBalance": {},
        "googleBalance": {},
        "merchantBalance": {},
        "productTotal": {},
        "promotionSummaries": [
          {
            "promotionAmount": {},
            "promotionId": ""
          }
        ]
      },
      "lineItemInvoices": [
        {
          "lineItemId": "",
          "productId": "",
          "shipmentUnitIds": [],
          "unitInvoice": {
            "additionalCharges": [
              {
                "additionalChargeAmount": {},
                "additionalChargePromotions": [
                  {}
                ],
                "type": ""
              }
            ],
            "promotions": [
              {}
            ],
            "unitPricePretax": {},
            "unitPriceTaxes": [
              {
                "taxAmount": {},
                "taxName": "",
                "taxType": ""
              }
            ]
          }
        }
      ],
      "shipmentGroupId": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice")
  .header("content-type", "application/json")
  .body("{\n  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  invoiceId: '',
  operationId: '',
  refundOnlyOption: {
    description: '',
    reason: ''
  },
  returnOption: {
    description: '',
    reason: ''
  },
  shipmentInvoices: [
    {
      invoiceSummary: {
        additionalChargeSummaries: [
          {
            totalAmount: {
              pretax: {
                currency: '',
                value: ''
              },
              tax: {}
            },
            type: ''
          }
        ],
        customerBalance: {},
        googleBalance: {},
        merchantBalance: {},
        productTotal: {},
        promotionSummaries: [
          {
            promotionAmount: {},
            promotionId: ''
          }
        ]
      },
      lineItemInvoices: [
        {
          lineItemId: '',
          productId: '',
          shipmentUnitIds: [],
          unitInvoice: {
            additionalCharges: [
              {
                additionalChargeAmount: {},
                additionalChargePromotions: [
                  {}
                ],
                type: ''
              }
            ],
            promotions: [
              {}
            ],
            unitPricePretax: {},
            unitPriceTaxes: [
              {
                taxAmount: {},
                taxName: '',
                taxType: ''
              }
            ]
          }
        }
      ],
      shipmentGroupId: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice',
  headers: {'content-type': 'application/json'},
  data: {
    invoiceId: '',
    operationId: '',
    refundOnlyOption: {description: '', reason: ''},
    returnOption: {description: '', reason: ''},
    shipmentInvoices: [
      {
        invoiceSummary: {
          additionalChargeSummaries: [{totalAmount: {pretax: {currency: '', value: ''}, tax: {}}, type: ''}],
          customerBalance: {},
          googleBalance: {},
          merchantBalance: {},
          productTotal: {},
          promotionSummaries: [{promotionAmount: {}, promotionId: ''}]
        },
        lineItemInvoices: [
          {
            lineItemId: '',
            productId: '',
            shipmentUnitIds: [],
            unitInvoice: {
              additionalCharges: [{additionalChargeAmount: {}, additionalChargePromotions: [{}], type: ''}],
              promotions: [{}],
              unitPricePretax: {},
              unitPriceTaxes: [{taxAmount: {}, taxName: '', taxType: ''}]
            }
          }
        ],
        shipmentGroupId: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"invoiceId":"","operationId":"","refundOnlyOption":{"description":"","reason":""},"returnOption":{"description":"","reason":""},"shipmentInvoices":[{"invoiceSummary":{"additionalChargeSummaries":[{"totalAmount":{"pretax":{"currency":"","value":""},"tax":{}},"type":""}],"customerBalance":{},"googleBalance":{},"merchantBalance":{},"productTotal":{},"promotionSummaries":[{"promotionAmount":{},"promotionId":""}]},"lineItemInvoices":[{"lineItemId":"","productId":"","shipmentUnitIds":[],"unitInvoice":{"additionalCharges":[{"additionalChargeAmount":{},"additionalChargePromotions":[{}],"type":""}],"promotions":[{}],"unitPricePretax":{},"unitPriceTaxes":[{"taxAmount":{},"taxName":"","taxType":""}]}}],"shipmentGroupId":""}]}'
};

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}}/:merchantId/orderinvoices/:orderId/createRefundInvoice',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "invoiceId": "",\n  "operationId": "",\n  "refundOnlyOption": {\n    "description": "",\n    "reason": ""\n  },\n  "returnOption": {\n    "description": "",\n    "reason": ""\n  },\n  "shipmentInvoices": [\n    {\n      "invoiceSummary": {\n        "additionalChargeSummaries": [\n          {\n            "totalAmount": {\n              "pretax": {\n                "currency": "",\n                "value": ""\n              },\n              "tax": {}\n            },\n            "type": ""\n          }\n        ],\n        "customerBalance": {},\n        "googleBalance": {},\n        "merchantBalance": {},\n        "productTotal": {},\n        "promotionSummaries": [\n          {\n            "promotionAmount": {},\n            "promotionId": ""\n          }\n        ]\n      },\n      "lineItemInvoices": [\n        {\n          "lineItemId": "",\n          "productId": "",\n          "shipmentUnitIds": [],\n          "unitInvoice": {\n            "additionalCharges": [\n              {\n                "additionalChargeAmount": {},\n                "additionalChargePromotions": [\n                  {}\n                ],\n                "type": ""\n              }\n            ],\n            "promotions": [\n              {}\n            ],\n            "unitPricePretax": {},\n            "unitPriceTaxes": [\n              {\n                "taxAmount": {},\n                "taxName": "",\n                "taxType": ""\n              }\n            ]\n          }\n        }\n      ],\n      "shipmentGroupId": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice")
  .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/:merchantId/orderinvoices/:orderId/createRefundInvoice',
  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({
  invoiceId: '',
  operationId: '',
  refundOnlyOption: {description: '', reason: ''},
  returnOption: {description: '', reason: ''},
  shipmentInvoices: [
    {
      invoiceSummary: {
        additionalChargeSummaries: [{totalAmount: {pretax: {currency: '', value: ''}, tax: {}}, type: ''}],
        customerBalance: {},
        googleBalance: {},
        merchantBalance: {},
        productTotal: {},
        promotionSummaries: [{promotionAmount: {}, promotionId: ''}]
      },
      lineItemInvoices: [
        {
          lineItemId: '',
          productId: '',
          shipmentUnitIds: [],
          unitInvoice: {
            additionalCharges: [{additionalChargeAmount: {}, additionalChargePromotions: [{}], type: ''}],
            promotions: [{}],
            unitPricePretax: {},
            unitPriceTaxes: [{taxAmount: {}, taxName: '', taxType: ''}]
          }
        }
      ],
      shipmentGroupId: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice',
  headers: {'content-type': 'application/json'},
  body: {
    invoiceId: '',
    operationId: '',
    refundOnlyOption: {description: '', reason: ''},
    returnOption: {description: '', reason: ''},
    shipmentInvoices: [
      {
        invoiceSummary: {
          additionalChargeSummaries: [{totalAmount: {pretax: {currency: '', value: ''}, tax: {}}, type: ''}],
          customerBalance: {},
          googleBalance: {},
          merchantBalance: {},
          productTotal: {},
          promotionSummaries: [{promotionAmount: {}, promotionId: ''}]
        },
        lineItemInvoices: [
          {
            lineItemId: '',
            productId: '',
            shipmentUnitIds: [],
            unitInvoice: {
              additionalCharges: [{additionalChargeAmount: {}, additionalChargePromotions: [{}], type: ''}],
              promotions: [{}],
              unitPricePretax: {},
              unitPriceTaxes: [{taxAmount: {}, taxName: '', taxType: ''}]
            }
          }
        ],
        shipmentGroupId: ''
      }
    ]
  },
  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}}/:merchantId/orderinvoices/:orderId/createRefundInvoice');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  invoiceId: '',
  operationId: '',
  refundOnlyOption: {
    description: '',
    reason: ''
  },
  returnOption: {
    description: '',
    reason: ''
  },
  shipmentInvoices: [
    {
      invoiceSummary: {
        additionalChargeSummaries: [
          {
            totalAmount: {
              pretax: {
                currency: '',
                value: ''
              },
              tax: {}
            },
            type: ''
          }
        ],
        customerBalance: {},
        googleBalance: {},
        merchantBalance: {},
        productTotal: {},
        promotionSummaries: [
          {
            promotionAmount: {},
            promotionId: ''
          }
        ]
      },
      lineItemInvoices: [
        {
          lineItemId: '',
          productId: '',
          shipmentUnitIds: [],
          unitInvoice: {
            additionalCharges: [
              {
                additionalChargeAmount: {},
                additionalChargePromotions: [
                  {}
                ],
                type: ''
              }
            ],
            promotions: [
              {}
            ],
            unitPricePretax: {},
            unitPriceTaxes: [
              {
                taxAmount: {},
                taxName: '',
                taxType: ''
              }
            ]
          }
        }
      ],
      shipmentGroupId: ''
    }
  ]
});

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}}/:merchantId/orderinvoices/:orderId/createRefundInvoice',
  headers: {'content-type': 'application/json'},
  data: {
    invoiceId: '',
    operationId: '',
    refundOnlyOption: {description: '', reason: ''},
    returnOption: {description: '', reason: ''},
    shipmentInvoices: [
      {
        invoiceSummary: {
          additionalChargeSummaries: [{totalAmount: {pretax: {currency: '', value: ''}, tax: {}}, type: ''}],
          customerBalance: {},
          googleBalance: {},
          merchantBalance: {},
          productTotal: {},
          promotionSummaries: [{promotionAmount: {}, promotionId: ''}]
        },
        lineItemInvoices: [
          {
            lineItemId: '',
            productId: '',
            shipmentUnitIds: [],
            unitInvoice: {
              additionalCharges: [{additionalChargeAmount: {}, additionalChargePromotions: [{}], type: ''}],
              promotions: [{}],
              unitPricePretax: {},
              unitPriceTaxes: [{taxAmount: {}, taxName: '', taxType: ''}]
            }
          }
        ],
        shipmentGroupId: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"invoiceId":"","operationId":"","refundOnlyOption":{"description":"","reason":""},"returnOption":{"description":"","reason":""},"shipmentInvoices":[{"invoiceSummary":{"additionalChargeSummaries":[{"totalAmount":{"pretax":{"currency":"","value":""},"tax":{}},"type":""}],"customerBalance":{},"googleBalance":{},"merchantBalance":{},"productTotal":{},"promotionSummaries":[{"promotionAmount":{},"promotionId":""}]},"lineItemInvoices":[{"lineItemId":"","productId":"","shipmentUnitIds":[],"unitInvoice":{"additionalCharges":[{"additionalChargeAmount":{},"additionalChargePromotions":[{}],"type":""}],"promotions":[{}],"unitPricePretax":{},"unitPriceTaxes":[{"taxAmount":{},"taxName":"","taxType":""}]}}],"shipmentGroupId":""}]}'
};

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 = @{ @"invoiceId": @"",
                              @"operationId": @"",
                              @"refundOnlyOption": @{ @"description": @"", @"reason": @"" },
                              @"returnOption": @{ @"description": @"", @"reason": @"" },
                              @"shipmentInvoices": @[ @{ @"invoiceSummary": @{ @"additionalChargeSummaries": @[ @{ @"totalAmount": @{ @"pretax": @{ @"currency": @"", @"value": @"" }, @"tax": @{  } }, @"type": @"" } ], @"customerBalance": @{  }, @"googleBalance": @{  }, @"merchantBalance": @{  }, @"productTotal": @{  }, @"promotionSummaries": @[ @{ @"promotionAmount": @{  }, @"promotionId": @"" } ] }, @"lineItemInvoices": @[ @{ @"lineItemId": @"", @"productId": @"", @"shipmentUnitIds": @[  ], @"unitInvoice": @{ @"additionalCharges": @[ @{ @"additionalChargeAmount": @{  }, @"additionalChargePromotions": @[ @{  } ], @"type": @"" } ], @"promotions": @[ @{  } ], @"unitPricePretax": @{  }, @"unitPriceTaxes": @[ @{ @"taxAmount": @{  }, @"taxName": @"", @"taxType": @"" } ] } } ], @"shipmentGroupId": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice"]
                                                       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}}/:merchantId/orderinvoices/:orderId/createRefundInvoice" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice",
  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([
    'invoiceId' => '',
    'operationId' => '',
    'refundOnlyOption' => [
        'description' => '',
        'reason' => ''
    ],
    'returnOption' => [
        'description' => '',
        'reason' => ''
    ],
    'shipmentInvoices' => [
        [
                'invoiceSummary' => [
                                'additionalChargeSummaries' => [
                                                                [
                                                                                                                                'totalAmount' => [
                                                                                                                                                                                                                                                                'pretax' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'currency' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'tax' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'customerBalance' => [
                                                                
                                ],
                                'googleBalance' => [
                                                                
                                ],
                                'merchantBalance' => [
                                                                
                                ],
                                'productTotal' => [
                                                                
                                ],
                                'promotionSummaries' => [
                                                                [
                                                                                                                                'promotionAmount' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'promotionId' => ''
                                                                ]
                                ]
                ],
                'lineItemInvoices' => [
                                [
                                                                'lineItemId' => '',
                                                                'productId' => '',
                                                                'shipmentUnitIds' => [
                                                                                                                                
                                                                ],
                                                                'unitInvoice' => [
                                                                                                                                'additionalCharges' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'additionalChargeAmount' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'additionalChargePromotions' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'type' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'promotions' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'unitPricePretax' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'unitPriceTaxes' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'taxAmount' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'taxName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'taxType' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'shipmentGroupId' => ''
        ]
    ]
  ]),
  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}}/:merchantId/orderinvoices/:orderId/createRefundInvoice', [
  'body' => '{
  "invoiceId": "",
  "operationId": "",
  "refundOnlyOption": {
    "description": "",
    "reason": ""
  },
  "returnOption": {
    "description": "",
    "reason": ""
  },
  "shipmentInvoices": [
    {
      "invoiceSummary": {
        "additionalChargeSummaries": [
          {
            "totalAmount": {
              "pretax": {
                "currency": "",
                "value": ""
              },
              "tax": {}
            },
            "type": ""
          }
        ],
        "customerBalance": {},
        "googleBalance": {},
        "merchantBalance": {},
        "productTotal": {},
        "promotionSummaries": [
          {
            "promotionAmount": {},
            "promotionId": ""
          }
        ]
      },
      "lineItemInvoices": [
        {
          "lineItemId": "",
          "productId": "",
          "shipmentUnitIds": [],
          "unitInvoice": {
            "additionalCharges": [
              {
                "additionalChargeAmount": {},
                "additionalChargePromotions": [
                  {}
                ],
                "type": ""
              }
            ],
            "promotions": [
              {}
            ],
            "unitPricePretax": {},
            "unitPriceTaxes": [
              {
                "taxAmount": {},
                "taxName": "",
                "taxType": ""
              }
            ]
          }
        }
      ],
      "shipmentGroupId": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'invoiceId' => '',
  'operationId' => '',
  'refundOnlyOption' => [
    'description' => '',
    'reason' => ''
  ],
  'returnOption' => [
    'description' => '',
    'reason' => ''
  ],
  'shipmentInvoices' => [
    [
        'invoiceSummary' => [
                'additionalChargeSummaries' => [
                                [
                                                                'totalAmount' => [
                                                                                                                                'pretax' => [
                                                                                                                                                                                                                                                                'currency' => '',
                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                ],
                                                                                                                                'tax' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'customerBalance' => [
                                
                ],
                'googleBalance' => [
                                
                ],
                'merchantBalance' => [
                                
                ],
                'productTotal' => [
                                
                ],
                'promotionSummaries' => [
                                [
                                                                'promotionAmount' => [
                                                                                                                                
                                                                ],
                                                                'promotionId' => ''
                                ]
                ]
        ],
        'lineItemInvoices' => [
                [
                                'lineItemId' => '',
                                'productId' => '',
                                'shipmentUnitIds' => [
                                                                
                                ],
                                'unitInvoice' => [
                                                                'additionalCharges' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'additionalChargeAmount' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'additionalChargePromotions' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'type' => ''
                                                                                                                                ]
                                                                ],
                                                                'promotions' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'unitPricePretax' => [
                                                                                                                                
                                                                ],
                                                                'unitPriceTaxes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'taxAmount' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'taxName' => '',
                                                                                                                                                                                                                                                                'taxType' => ''
                                                                                                                                ]
                                                                ]
                                ]
                ]
        ],
        'shipmentGroupId' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'invoiceId' => '',
  'operationId' => '',
  'refundOnlyOption' => [
    'description' => '',
    'reason' => ''
  ],
  'returnOption' => [
    'description' => '',
    'reason' => ''
  ],
  'shipmentInvoices' => [
    [
        'invoiceSummary' => [
                'additionalChargeSummaries' => [
                                [
                                                                'totalAmount' => [
                                                                                                                                'pretax' => [
                                                                                                                                                                                                                                                                'currency' => '',
                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                ],
                                                                                                                                'tax' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'customerBalance' => [
                                
                ],
                'googleBalance' => [
                                
                ],
                'merchantBalance' => [
                                
                ],
                'productTotal' => [
                                
                ],
                'promotionSummaries' => [
                                [
                                                                'promotionAmount' => [
                                                                                                                                
                                                                ],
                                                                'promotionId' => ''
                                ]
                ]
        ],
        'lineItemInvoices' => [
                [
                                'lineItemId' => '',
                                'productId' => '',
                                'shipmentUnitIds' => [
                                                                
                                ],
                                'unitInvoice' => [
                                                                'additionalCharges' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'additionalChargeAmount' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'additionalChargePromotions' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'type' => ''
                                                                                                                                ]
                                                                ],
                                                                'promotions' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'unitPricePretax' => [
                                                                                                                                
                                                                ],
                                                                'unitPriceTaxes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'taxAmount' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'taxName' => '',
                                                                                                                                                                                                                                                                'taxType' => ''
                                                                                                                                ]
                                                                ]
                                ]
                ]
        ],
        'shipmentGroupId' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice');
$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}}/:merchantId/orderinvoices/:orderId/createRefundInvoice' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "invoiceId": "",
  "operationId": "",
  "refundOnlyOption": {
    "description": "",
    "reason": ""
  },
  "returnOption": {
    "description": "",
    "reason": ""
  },
  "shipmentInvoices": [
    {
      "invoiceSummary": {
        "additionalChargeSummaries": [
          {
            "totalAmount": {
              "pretax": {
                "currency": "",
                "value": ""
              },
              "tax": {}
            },
            "type": ""
          }
        ],
        "customerBalance": {},
        "googleBalance": {},
        "merchantBalance": {},
        "productTotal": {},
        "promotionSummaries": [
          {
            "promotionAmount": {},
            "promotionId": ""
          }
        ]
      },
      "lineItemInvoices": [
        {
          "lineItemId": "",
          "productId": "",
          "shipmentUnitIds": [],
          "unitInvoice": {
            "additionalCharges": [
              {
                "additionalChargeAmount": {},
                "additionalChargePromotions": [
                  {}
                ],
                "type": ""
              }
            ],
            "promotions": [
              {}
            ],
            "unitPricePretax": {},
            "unitPriceTaxes": [
              {
                "taxAmount": {},
                "taxName": "",
                "taxType": ""
              }
            ]
          }
        }
      ],
      "shipmentGroupId": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "invoiceId": "",
  "operationId": "",
  "refundOnlyOption": {
    "description": "",
    "reason": ""
  },
  "returnOption": {
    "description": "",
    "reason": ""
  },
  "shipmentInvoices": [
    {
      "invoiceSummary": {
        "additionalChargeSummaries": [
          {
            "totalAmount": {
              "pretax": {
                "currency": "",
                "value": ""
              },
              "tax": {}
            },
            "type": ""
          }
        ],
        "customerBalance": {},
        "googleBalance": {},
        "merchantBalance": {},
        "productTotal": {},
        "promotionSummaries": [
          {
            "promotionAmount": {},
            "promotionId": ""
          }
        ]
      },
      "lineItemInvoices": [
        {
          "lineItemId": "",
          "productId": "",
          "shipmentUnitIds": [],
          "unitInvoice": {
            "additionalCharges": [
              {
                "additionalChargeAmount": {},
                "additionalChargePromotions": [
                  {}
                ],
                "type": ""
              }
            ],
            "promotions": [
              {}
            ],
            "unitPricePretax": {},
            "unitPriceTaxes": [
              {
                "taxAmount": {},
                "taxName": "",
                "taxType": ""
              }
            ]
          }
        }
      ],
      "shipmentGroupId": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orderinvoices/:orderId/createRefundInvoice", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice"

payload = {
    "invoiceId": "",
    "operationId": "",
    "refundOnlyOption": {
        "description": "",
        "reason": ""
    },
    "returnOption": {
        "description": "",
        "reason": ""
    },
    "shipmentInvoices": [
        {
            "invoiceSummary": {
                "additionalChargeSummaries": [
                    {
                        "totalAmount": {
                            "pretax": {
                                "currency": "",
                                "value": ""
                            },
                            "tax": {}
                        },
                        "type": ""
                    }
                ],
                "customerBalance": {},
                "googleBalance": {},
                "merchantBalance": {},
                "productTotal": {},
                "promotionSummaries": [
                    {
                        "promotionAmount": {},
                        "promotionId": ""
                    }
                ]
            },
            "lineItemInvoices": [
                {
                    "lineItemId": "",
                    "productId": "",
                    "shipmentUnitIds": [],
                    "unitInvoice": {
                        "additionalCharges": [
                            {
                                "additionalChargeAmount": {},
                                "additionalChargePromotions": [{}],
                                "type": ""
                            }
                        ],
                        "promotions": [{}],
                        "unitPricePretax": {},
                        "unitPriceTaxes": [
                            {
                                "taxAmount": {},
                                "taxName": "",
                                "taxType": ""
                            }
                        ]
                    }
                }
            ],
            "shipmentGroupId": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice"

payload <- "{\n  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice")

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  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:merchantId/orderinvoices/:orderId/createRefundInvoice') do |req|
  req.body = "{\n  \"invoiceId\": \"\",\n  \"operationId\": \"\",\n  \"refundOnlyOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"returnOption\": {\n    \"description\": \"\",\n    \"reason\": \"\"\n  },\n  \"shipmentInvoices\": [\n    {\n      \"invoiceSummary\": {\n        \"additionalChargeSummaries\": [\n          {\n            \"totalAmount\": {\n              \"pretax\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"tax\": {}\n            },\n            \"type\": \"\"\n          }\n        ],\n        \"customerBalance\": {},\n        \"googleBalance\": {},\n        \"merchantBalance\": {},\n        \"productTotal\": {},\n        \"promotionSummaries\": [\n          {\n            \"promotionAmount\": {},\n            \"promotionId\": \"\"\n          }\n        ]\n      },\n      \"lineItemInvoices\": [\n        {\n          \"lineItemId\": \"\",\n          \"productId\": \"\",\n          \"shipmentUnitIds\": [],\n          \"unitInvoice\": {\n            \"additionalCharges\": [\n              {\n                \"additionalChargeAmount\": {},\n                \"additionalChargePromotions\": [\n                  {}\n                ],\n                \"type\": \"\"\n              }\n            ],\n            \"promotions\": [\n              {}\n            ],\n            \"unitPricePretax\": {},\n            \"unitPriceTaxes\": [\n              {\n                \"taxAmount\": {},\n                \"taxName\": \"\",\n                \"taxType\": \"\"\n              }\n            ]\n          }\n        }\n      ],\n      \"shipmentGroupId\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice";

    let payload = json!({
        "invoiceId": "",
        "operationId": "",
        "refundOnlyOption": json!({
            "description": "",
            "reason": ""
        }),
        "returnOption": json!({
            "description": "",
            "reason": ""
        }),
        "shipmentInvoices": (
            json!({
                "invoiceSummary": json!({
                    "additionalChargeSummaries": (
                        json!({
                            "totalAmount": json!({
                                "pretax": json!({
                                    "currency": "",
                                    "value": ""
                                }),
                                "tax": json!({})
                            }),
                            "type": ""
                        })
                    ),
                    "customerBalance": json!({}),
                    "googleBalance": json!({}),
                    "merchantBalance": json!({}),
                    "productTotal": json!({}),
                    "promotionSummaries": (
                        json!({
                            "promotionAmount": json!({}),
                            "promotionId": ""
                        })
                    )
                }),
                "lineItemInvoices": (
                    json!({
                        "lineItemId": "",
                        "productId": "",
                        "shipmentUnitIds": (),
                        "unitInvoice": json!({
                            "additionalCharges": (
                                json!({
                                    "additionalChargeAmount": json!({}),
                                    "additionalChargePromotions": (json!({})),
                                    "type": ""
                                })
                            ),
                            "promotions": (json!({})),
                            "unitPricePretax": json!({}),
                            "unitPriceTaxes": (
                                json!({
                                    "taxAmount": json!({}),
                                    "taxName": "",
                                    "taxType": ""
                                })
                            )
                        })
                    })
                ),
                "shipmentGroupId": ""
            })
        )
    });

    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}}/:merchantId/orderinvoices/:orderId/createRefundInvoice \
  --header 'content-type: application/json' \
  --data '{
  "invoiceId": "",
  "operationId": "",
  "refundOnlyOption": {
    "description": "",
    "reason": ""
  },
  "returnOption": {
    "description": "",
    "reason": ""
  },
  "shipmentInvoices": [
    {
      "invoiceSummary": {
        "additionalChargeSummaries": [
          {
            "totalAmount": {
              "pretax": {
                "currency": "",
                "value": ""
              },
              "tax": {}
            },
            "type": ""
          }
        ],
        "customerBalance": {},
        "googleBalance": {},
        "merchantBalance": {},
        "productTotal": {},
        "promotionSummaries": [
          {
            "promotionAmount": {},
            "promotionId": ""
          }
        ]
      },
      "lineItemInvoices": [
        {
          "lineItemId": "",
          "productId": "",
          "shipmentUnitIds": [],
          "unitInvoice": {
            "additionalCharges": [
              {
                "additionalChargeAmount": {},
                "additionalChargePromotions": [
                  {}
                ],
                "type": ""
              }
            ],
            "promotions": [
              {}
            ],
            "unitPricePretax": {},
            "unitPriceTaxes": [
              {
                "taxAmount": {},
                "taxName": "",
                "taxType": ""
              }
            ]
          }
        }
      ],
      "shipmentGroupId": ""
    }
  ]
}'
echo '{
  "invoiceId": "",
  "operationId": "",
  "refundOnlyOption": {
    "description": "",
    "reason": ""
  },
  "returnOption": {
    "description": "",
    "reason": ""
  },
  "shipmentInvoices": [
    {
      "invoiceSummary": {
        "additionalChargeSummaries": [
          {
            "totalAmount": {
              "pretax": {
                "currency": "",
                "value": ""
              },
              "tax": {}
            },
            "type": ""
          }
        ],
        "customerBalance": {},
        "googleBalance": {},
        "merchantBalance": {},
        "productTotal": {},
        "promotionSummaries": [
          {
            "promotionAmount": {},
            "promotionId": ""
          }
        ]
      },
      "lineItemInvoices": [
        {
          "lineItemId": "",
          "productId": "",
          "shipmentUnitIds": [],
          "unitInvoice": {
            "additionalCharges": [
              {
                "additionalChargeAmount": {},
                "additionalChargePromotions": [
                  {}
                ],
                "type": ""
              }
            ],
            "promotions": [
              {}
            ],
            "unitPricePretax": {},
            "unitPriceTaxes": [
              {
                "taxAmount": {},
                "taxName": "",
                "taxType": ""
              }
            ]
          }
        }
      ],
      "shipmentGroupId": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "invoiceId": "",\n  "operationId": "",\n  "refundOnlyOption": {\n    "description": "",\n    "reason": ""\n  },\n  "returnOption": {\n    "description": "",\n    "reason": ""\n  },\n  "shipmentInvoices": [\n    {\n      "invoiceSummary": {\n        "additionalChargeSummaries": [\n          {\n            "totalAmount": {\n              "pretax": {\n                "currency": "",\n                "value": ""\n              },\n              "tax": {}\n            },\n            "type": ""\n          }\n        ],\n        "customerBalance": {},\n        "googleBalance": {},\n        "merchantBalance": {},\n        "productTotal": {},\n        "promotionSummaries": [\n          {\n            "promotionAmount": {},\n            "promotionId": ""\n          }\n        ]\n      },\n      "lineItemInvoices": [\n        {\n          "lineItemId": "",\n          "productId": "",\n          "shipmentUnitIds": [],\n          "unitInvoice": {\n            "additionalCharges": [\n              {\n                "additionalChargeAmount": {},\n                "additionalChargePromotions": [\n                  {}\n                ],\n                "type": ""\n              }\n            ],\n            "promotions": [\n              {}\n            ],\n            "unitPricePretax": {},\n            "unitPriceTaxes": [\n              {\n                "taxAmount": {},\n                "taxName": "",\n                "taxType": ""\n              }\n            ]\n          }\n        }\n      ],\n      "shipmentGroupId": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "invoiceId": "",
  "operationId": "",
  "refundOnlyOption": [
    "description": "",
    "reason": ""
  ],
  "returnOption": [
    "description": "",
    "reason": ""
  ],
  "shipmentInvoices": [
    [
      "invoiceSummary": [
        "additionalChargeSummaries": [
          [
            "totalAmount": [
              "pretax": [
                "currency": "",
                "value": ""
              ],
              "tax": []
            ],
            "type": ""
          ]
        ],
        "customerBalance": [],
        "googleBalance": [],
        "merchantBalance": [],
        "productTotal": [],
        "promotionSummaries": [
          [
            "promotionAmount": [],
            "promotionId": ""
          ]
        ]
      ],
      "lineItemInvoices": [
        [
          "lineItemId": "",
          "productId": "",
          "shipmentUnitIds": [],
          "unitInvoice": [
            "additionalCharges": [
              [
                "additionalChargeAmount": [],
                "additionalChargePromotions": [[]],
                "type": ""
              ]
            ],
            "promotions": [[]],
            "unitPricePretax": [],
            "unitPriceTaxes": [
              [
                "taxAmount": [],
                "taxName": "",
                "taxType": ""
              ]
            ]
          ]
        ]
      ],
      "shipmentGroupId": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orderinvoices/:orderId/createRefundInvoice")! 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()
GET content.orderreports.listdisbursements
{{baseUrl}}/:merchantId/orderreports/disbursements
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orderreports/disbursements");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/orderreports/disbursements")
require "http/client"

url = "{{baseUrl}}/:merchantId/orderreports/disbursements"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/orderreports/disbursements"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/orderreports/disbursements");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orderreports/disbursements"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/orderreports/disbursements HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/orderreports/disbursements")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orderreports/disbursements"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orderreports/disbursements")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/orderreports/disbursements")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/orderreports/disbursements');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/orderreports/disbursements'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orderreports/disbursements';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/orderreports/disbursements',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orderreports/disbursements")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/orderreports/disbursements',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/orderreports/disbursements'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/orderreports/disbursements');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/orderreports/disbursements'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orderreports/disbursements';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orderreports/disbursements"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/orderreports/disbursements" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orderreports/disbursements",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/orderreports/disbursements');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orderreports/disbursements');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/orderreports/disbursements');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/orderreports/disbursements' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orderreports/disbursements' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/orderreports/disbursements")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orderreports/disbursements"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orderreports/disbursements"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/orderreports/disbursements")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/orderreports/disbursements') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orderreports/disbursements";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/orderreports/disbursements
http GET {{baseUrl}}/:merchantId/orderreports/disbursements
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/orderreports/disbursements
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orderreports/disbursements")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.orderreports.listtransactions
{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions
QUERY PARAMS

merchantId
disbursementId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions")
require "http/client"

url = "{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/orderreports/disbursements/:disbursementId/transactions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/orderreports/disbursements/:disbursementId/transactions',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/orderreports/disbursements/:disbursementId/transactions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/orderreports/disbursements/:disbursementId/transactions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions
http GET {{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orderreports/disbursements/:disbursementId/transactions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.orderreturns.get
{{baseUrl}}/:merchantId/orderreturns/:returnId
QUERY PARAMS

merchantId
returnId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orderreturns/:returnId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/orderreturns/:returnId")
require "http/client"

url = "{{baseUrl}}/:merchantId/orderreturns/:returnId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/orderreturns/:returnId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/orderreturns/:returnId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orderreturns/:returnId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/orderreturns/:returnId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/orderreturns/:returnId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orderreturns/:returnId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orderreturns/:returnId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/orderreturns/:returnId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/orderreturns/:returnId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/orderreturns/:returnId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orderreturns/:returnId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/orderreturns/:returnId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orderreturns/:returnId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/orderreturns/:returnId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/orderreturns/:returnId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/orderreturns/:returnId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/orderreturns/:returnId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orderreturns/:returnId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orderreturns/:returnId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/orderreturns/:returnId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orderreturns/:returnId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/orderreturns/:returnId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orderreturns/:returnId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/orderreturns/:returnId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/orderreturns/:returnId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orderreturns/:returnId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/orderreturns/:returnId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orderreturns/:returnId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orderreturns/:returnId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/orderreturns/:returnId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/orderreturns/:returnId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orderreturns/:returnId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/orderreturns/:returnId
http GET {{baseUrl}}/:merchantId/orderreturns/:returnId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/orderreturns/:returnId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orderreturns/:returnId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.orderreturns.list
{{baseUrl}}/:merchantId/orderreturns
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orderreturns");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/orderreturns")
require "http/client"

url = "{{baseUrl}}/:merchantId/orderreturns"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/orderreturns"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/orderreturns");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orderreturns"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/orderreturns HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/orderreturns")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orderreturns"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orderreturns")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/orderreturns")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/orderreturns');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/orderreturns'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orderreturns';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/orderreturns',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orderreturns")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/orderreturns',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/orderreturns'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/orderreturns');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/orderreturns'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orderreturns';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orderreturns"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/orderreturns" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orderreturns",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/orderreturns');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orderreturns');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/orderreturns');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/orderreturns' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orderreturns' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/orderreturns")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orderreturns"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orderreturns"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/orderreturns")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/orderreturns') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orderreturns";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/orderreturns
http GET {{baseUrl}}/:merchantId/orderreturns
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/orderreturns
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orderreturns")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.orders.acknowledge
{{baseUrl}}/:merchantId/orders/:orderId/acknowledge
QUERY PARAMS

merchantId
orderId
BODY json

{
  "operationId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/acknowledge");

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  \"operationId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/acknowledge" {:content-type :json
                                                                                    :form-params {:operationId ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/acknowledge"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"operationId\": \"\"\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}}/:merchantId/orders/:orderId/acknowledge"),
    Content = new StringContent("{\n  \"operationId\": \"\"\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}}/:merchantId/orders/:orderId/acknowledge");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"operationId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/acknowledge"

	payload := strings.NewReader("{\n  \"operationId\": \"\"\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/:merchantId/orders/:orderId/acknowledge HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 23

{
  "operationId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/acknowledge")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"operationId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/acknowledge"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"operationId\": \"\"\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  \"operationId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/acknowledge")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/acknowledge")
  .header("content-type", "application/json")
  .body("{\n  \"operationId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  operationId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orders/:orderId/acknowledge');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/acknowledge',
  headers: {'content-type': 'application/json'},
  data: {operationId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/acknowledge';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"operationId":""}'
};

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}}/:merchantId/orders/:orderId/acknowledge',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "operationId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"operationId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/acknowledge")
  .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/:merchantId/orders/:orderId/acknowledge',
  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({operationId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/acknowledge',
  headers: {'content-type': 'application/json'},
  body: {operationId: ''},
  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}}/:merchantId/orders/:orderId/acknowledge');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  operationId: ''
});

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}}/:merchantId/orders/:orderId/acknowledge',
  headers: {'content-type': 'application/json'},
  data: {operationId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/acknowledge';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"operationId":""}'
};

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 = @{ @"operationId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/acknowledge"]
                                                       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}}/:merchantId/orders/:orderId/acknowledge" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"operationId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/acknowledge",
  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([
    'operationId' => ''
  ]),
  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}}/:merchantId/orders/:orderId/acknowledge', [
  'body' => '{
  "operationId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/acknowledge');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'operationId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'operationId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/acknowledge');
$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}}/:merchantId/orders/:orderId/acknowledge' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "operationId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/acknowledge' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "operationId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"operationId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/acknowledge", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/acknowledge"

payload = { "operationId": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/acknowledge"

payload <- "{\n  \"operationId\": \"\"\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}}/:merchantId/orders/:orderId/acknowledge")

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  \"operationId\": \"\"\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/:merchantId/orders/:orderId/acknowledge') do |req|
  req.body = "{\n  \"operationId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/acknowledge";

    let payload = json!({"operationId": ""});

    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}}/:merchantId/orders/:orderId/acknowledge \
  --header 'content-type: application/json' \
  --data '{
  "operationId": ""
}'
echo '{
  "operationId": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/acknowledge \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "operationId": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/acknowledge
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["operationId": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/acknowledge")! 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()
POST content.orders.advancetestorder
{{baseUrl}}/:merchantId/testorders/:orderId/advance
QUERY PARAMS

merchantId
orderId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/testorders/:orderId/advance");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/testorders/:orderId/advance")
require "http/client"

url = "{{baseUrl}}/:merchantId/testorders/:orderId/advance"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/testorders/:orderId/advance"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/testorders/:orderId/advance");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/testorders/:orderId/advance"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:merchantId/testorders/:orderId/advance HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/testorders/:orderId/advance")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/testorders/:orderId/advance"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/testorders/:orderId/advance")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/testorders/:orderId/advance")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/testorders/:orderId/advance');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/testorders/:orderId/advance'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/testorders/:orderId/advance';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/testorders/:orderId/advance',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/testorders/:orderId/advance")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/testorders/:orderId/advance',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/testorders/:orderId/advance'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:merchantId/testorders/:orderId/advance');

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}}/:merchantId/testorders/:orderId/advance'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/testorders/:orderId/advance';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/testorders/:orderId/advance"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/testorders/:orderId/advance" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/testorders/:orderId/advance",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:merchantId/testorders/:orderId/advance');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/testorders/:orderId/advance');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/testorders/:orderId/advance');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/testorders/:orderId/advance' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/testorders/:orderId/advance' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:merchantId/testorders/:orderId/advance")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/testorders/:orderId/advance"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/testorders/:orderId/advance"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/testorders/:orderId/advance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/:merchantId/testorders/:orderId/advance') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/testorders/:orderId/advance";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:merchantId/testorders/:orderId/advance
http POST {{baseUrl}}/:merchantId/testorders/:orderId/advance
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:merchantId/testorders/:orderId/advance
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/testorders/:orderId/advance")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.orders.cancel
{{baseUrl}}/:merchantId/orders/:orderId/cancel
QUERY PARAMS

merchantId
orderId
BODY json

{
  "operationId": "",
  "reason": "",
  "reasonText": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/cancel");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/cancel" {:content-type :json
                                                                               :form-params {:operationId ""
                                                                                             :reason ""
                                                                                             :reasonText ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/cancel"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/cancel"),
    Content = new StringContent("{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/cancel");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/cancel"

	payload := strings.NewReader("{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/cancel HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 59

{
  "operationId": "",
  "reason": "",
  "reasonText": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/cancel")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/cancel"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/cancel")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/cancel")
  .header("content-type", "application/json")
  .body("{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  operationId: '',
  reason: '',
  reasonText: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orders/:orderId/cancel');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/cancel',
  headers: {'content-type': 'application/json'},
  data: {operationId: '', reason: '', reasonText: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/cancel';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"operationId":"","reason":"","reasonText":""}'
};

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}}/:merchantId/orders/:orderId/cancel',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "operationId": "",\n  "reason": "",\n  "reasonText": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/cancel")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/orders/:orderId/cancel',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({operationId: '', reason: '', reasonText: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/cancel',
  headers: {'content-type': 'application/json'},
  body: {operationId: '', reason: '', reasonText: ''},
  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}}/:merchantId/orders/:orderId/cancel');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  operationId: '',
  reason: '',
  reasonText: ''
});

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}}/:merchantId/orders/:orderId/cancel',
  headers: {'content-type': 'application/json'},
  data: {operationId: '', reason: '', reasonText: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/cancel';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"operationId":"","reason":"","reasonText":""}'
};

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 = @{ @"operationId": @"",
                              @"reason": @"",
                              @"reasonText": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/cancel"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/orders/:orderId/cancel" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/cancel",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'operationId' => '',
    'reason' => '',
    'reasonText' => ''
  ]),
  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}}/:merchantId/orders/:orderId/cancel', [
  'body' => '{
  "operationId": "",
  "reason": "",
  "reasonText": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/cancel');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'operationId' => '',
  'reason' => '',
  'reasonText' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'operationId' => '',
  'reason' => '',
  'reasonText' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/cancel');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/orders/:orderId/cancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "operationId": "",
  "reason": "",
  "reasonText": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/cancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "operationId": "",
  "reason": "",
  "reasonText": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/cancel", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/cancel"

payload = {
    "operationId": "",
    "reason": "",
    "reasonText": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/cancel"

payload <- "{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/cancel")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/cancel') do |req|
  req.body = "{\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/cancel";

    let payload = json!({
        "operationId": "",
        "reason": "",
        "reasonText": ""
    });

    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}}/:merchantId/orders/:orderId/cancel \
  --header 'content-type: application/json' \
  --data '{
  "operationId": "",
  "reason": "",
  "reasonText": ""
}'
echo '{
  "operationId": "",
  "reason": "",
  "reasonText": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/cancel \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "operationId": "",\n  "reason": "",\n  "reasonText": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/cancel
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "operationId": "",
  "reason": "",
  "reasonText": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/cancel")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.orders.cancellineitem
{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem
QUERY PARAMS

merchantId
orderId
BODY json

{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem" {:content-type :json
                                                                                       :form-params {:amount {:currency ""
                                                                                                              :value ""}
                                                                                                     :amountPretax {}
                                                                                                     :amountTax {}
                                                                                                     :lineItemId ""
                                                                                                     :operationId ""
                                                                                                     :productId ""
                                                                                                     :quantity 0
                                                                                                     :reason ""
                                                                                                     :reasonText ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/cancelLineItem"),
    Content = new StringContent("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/cancelLineItem");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem"

	payload := strings.NewReader("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/cancelLineItem HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 211

{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem")
  .header("content-type", "application/json")
  .body("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  amount: {
    currency: '',
    value: ''
  },
  amountPretax: {},
  amountTax: {},
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem',
  headers: {'content-type': 'application/json'},
  data: {
    amount: {currency: '', value: ''},
    amountPretax: {},
    amountTax: {},
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amount":{"currency":"","value":""},"amountPretax":{},"amountTax":{},"lineItemId":"","operationId":"","productId":"","quantity":0,"reason":"","reasonText":""}'
};

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}}/:merchantId/orders/:orderId/cancelLineItem',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amount": {\n    "currency": "",\n    "value": ""\n  },\n  "amountPretax": {},\n  "amountTax": {},\n  "lineItemId": "",\n  "operationId": "",\n  "productId": "",\n  "quantity": 0,\n  "reason": "",\n  "reasonText": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem")
  .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/:merchantId/orders/:orderId/cancelLineItem',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  amount: {currency: '', value: ''},
  amountPretax: {},
  amountTax: {},
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem',
  headers: {'content-type': 'application/json'},
  body: {
    amount: {currency: '', value: ''},
    amountPretax: {},
    amountTax: {},
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  },
  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}}/:merchantId/orders/:orderId/cancelLineItem');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  amount: {
    currency: '',
    value: ''
  },
  amountPretax: {},
  amountTax: {},
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
});

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}}/:merchantId/orders/:orderId/cancelLineItem',
  headers: {'content-type': 'application/json'},
  data: {
    amount: {currency: '', value: ''},
    amountPretax: {},
    amountTax: {},
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amount":{"currency":"","value":""},"amountPretax":{},"amountTax":{},"lineItemId":"","operationId":"","productId":"","quantity":0,"reason":"","reasonText":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"amount": @{ @"currency": @"", @"value": @"" },
                              @"amountPretax": @{  },
                              @"amountTax": @{  },
                              @"lineItemId": @"",
                              @"operationId": @"",
                              @"productId": @"",
                              @"quantity": @0,
                              @"reason": @"",
                              @"reasonText": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem"]
                                                       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}}/:merchantId/orders/:orderId/cancelLineItem" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'amount' => [
        'currency' => '',
        'value' => ''
    ],
    'amountPretax' => [
        
    ],
    'amountTax' => [
        
    ],
    'lineItemId' => '',
    'operationId' => '',
    'productId' => '',
    'quantity' => 0,
    'reason' => '',
    'reasonText' => ''
  ]),
  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}}/:merchantId/orders/:orderId/cancelLineItem', [
  'body' => '{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amount' => [
    'currency' => '',
    'value' => ''
  ],
  'amountPretax' => [
    
  ],
  'amountTax' => [
    
  ],
  'lineItemId' => '',
  'operationId' => '',
  'productId' => '',
  'quantity' => 0,
  'reason' => '',
  'reasonText' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amount' => [
    'currency' => '',
    'value' => ''
  ],
  'amountPretax' => [
    
  ],
  'amountTax' => [
    
  ],
  'lineItemId' => '',
  'operationId' => '',
  'productId' => '',
  'quantity' => 0,
  'reason' => '',
  'reasonText' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem');
$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}}/:merchantId/orders/:orderId/cancelLineItem' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/cancelLineItem", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem"

payload = {
    "amount": {
        "currency": "",
        "value": ""
    },
    "amountPretax": {},
    "amountTax": {},
    "lineItemId": "",
    "operationId": "",
    "productId": "",
    "quantity": 0,
    "reason": "",
    "reasonText": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem"

payload <- "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/cancelLineItem")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/cancelLineItem') do |req|
  req.body = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem";

    let payload = json!({
        "amount": json!({
            "currency": "",
            "value": ""
        }),
        "amountPretax": json!({}),
        "amountTax": json!({}),
        "lineItemId": "",
        "operationId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
    });

    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}}/:merchantId/orders/:orderId/cancelLineItem \
  --header 'content-type: application/json' \
  --data '{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
echo '{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amount": {\n    "currency": "",\n    "value": ""\n  },\n  "amountPretax": {},\n  "amountTax": {},\n  "lineItemId": "",\n  "operationId": "",\n  "productId": "",\n  "quantity": 0,\n  "reason": "",\n  "reasonText": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amount": [
    "currency": "",
    "value": ""
  ],
  "amountPretax": [],
  "amountTax": [],
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/cancelLineItem")! 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()
POST content.orders.canceltestorderbycustomer
{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer
QUERY PARAMS

merchantId
orderId
BODY json

{
  "reason": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"reason\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer" {:content-type :json
                                                                                             :form-params {:reason ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"reason\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer"),
    Content = new StringContent("{\n  \"reason\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"reason\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer"

	payload := strings.NewReader("{\n  \"reason\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:merchantId/testorders/:orderId/cancelByCustomer HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 18

{
  "reason": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"reason\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"reason\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"reason\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer")
  .header("content-type", "application/json")
  .body("{\n  \"reason\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  reason: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer',
  headers: {'content-type': 'application/json'},
  data: {reason: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"reason":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "reason": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"reason\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer")
  .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/:merchantId/testorders/:orderId/cancelByCustomer',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({reason: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer',
  headers: {'content-type': 'application/json'},
  body: {reason: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  reason: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer',
  headers: {'content-type': 'application/json'},
  data: {reason: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"reason":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"reason": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer"]
                                                       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}}/:merchantId/testorders/:orderId/cancelByCustomer" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"reason\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'reason' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer', [
  'body' => '{
  "reason": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'reason' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'reason' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer');
$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}}/:merchantId/testorders/:orderId/cancelByCustomer' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "reason": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "reason": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"reason\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/testorders/:orderId/cancelByCustomer", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer"

payload = { "reason": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer"

payload <- "{\n  \"reason\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"reason\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:merchantId/testorders/:orderId/cancelByCustomer') do |req|
  req.body = "{\n  \"reason\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer";

    let payload = json!({"reason": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer \
  --header 'content-type: application/json' \
  --data '{
  "reason": ""
}'
echo '{
  "reason": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "reason": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["reason": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/testorders/:orderId/cancelByCustomer")! 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()
POST content.orders.createtestorder
{{baseUrl}}/:merchantId/testorders
QUERY PARAMS

merchantId
BODY json

{
  "country": "",
  "templateName": "",
  "testOrder": {
    "customer": {
      "email": "",
      "explicitMarketingPreference": false,
      "fullName": "",
      "marketingRightsInfo": {
        "explicitMarketingPreference": "",
        "lastUpdatedTimestamp": ""
      }
    },
    "enableOrderinvoices": false,
    "kind": "",
    "lineItems": [
      {
        "product": {
          "brand": "",
          "channel": "",
          "condition": "",
          "contentLanguage": "",
          "fees": [
            {
              "amount": {
                "currency": "",
                "value": ""
              },
              "name": ""
            }
          ],
          "gtin": "",
          "imageLink": "",
          "itemGroupId": "",
          "mpn": "",
          "offerId": "",
          "price": {},
          "targetCountry": "",
          "title": "",
          "variantAttributes": [
            {
              "dimension": "",
              "value": ""
            }
          ]
        },
        "quantityOrdered": 0,
        "returnInfo": {
          "daysToReturn": 0,
          "isReturnable": false,
          "policyUrl": ""
        },
        "shippingDetails": {
          "deliverByDate": "",
          "method": {
            "carrier": "",
            "maxDaysInTransit": 0,
            "methodName": "",
            "minDaysInTransit": 0
          },
          "shipByDate": "",
          "type": ""
        },
        "unitTax": {}
      }
    ],
    "notificationMode": "",
    "paymentMethod": {
      "expirationMonth": 0,
      "expirationYear": 0,
      "lastFourDigits": "",
      "predefinedBillingAddress": "",
      "type": ""
    },
    "predefinedDeliveryAddress": "",
    "predefinedPickupDetails": "",
    "promotions": [
      {
        "benefits": [
          {
            "discount": {},
            "offerIds": [],
            "subType": "",
            "taxImpact": {},
            "type": ""
          }
        ],
        "effectiveDates": "",
        "genericRedemptionCode": "",
        "id": "",
        "longTitle": "",
        "productApplicability": "",
        "redemptionChannel": ""
      }
    ],
    "shippingCost": {},
    "shippingCostTax": {},
    "shippingOption": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/testorders");

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  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/testorders" {:content-type :json
                                                                   :form-params {:country ""
                                                                                 :templateName ""
                                                                                 :testOrder {:customer {:email ""
                                                                                                        :explicitMarketingPreference false
                                                                                                        :fullName ""
                                                                                                        :marketingRightsInfo {:explicitMarketingPreference ""
                                                                                                                              :lastUpdatedTimestamp ""}}
                                                                                             :enableOrderinvoices false
                                                                                             :kind ""
                                                                                             :lineItems [{:product {:brand ""
                                                                                                                    :channel ""
                                                                                                                    :condition ""
                                                                                                                    :contentLanguage ""
                                                                                                                    :fees [{:amount {:currency ""
                                                                                                                                     :value ""}
                                                                                                                            :name ""}]
                                                                                                                    :gtin ""
                                                                                                                    :imageLink ""
                                                                                                                    :itemGroupId ""
                                                                                                                    :mpn ""
                                                                                                                    :offerId ""
                                                                                                                    :price {}
                                                                                                                    :targetCountry ""
                                                                                                                    :title ""
                                                                                                                    :variantAttributes [{:dimension ""
                                                                                                                                         :value ""}]}
                                                                                                          :quantityOrdered 0
                                                                                                          :returnInfo {:daysToReturn 0
                                                                                                                       :isReturnable false
                                                                                                                       :policyUrl ""}
                                                                                                          :shippingDetails {:deliverByDate ""
                                                                                                                            :method {:carrier ""
                                                                                                                                     :maxDaysInTransit 0
                                                                                                                                     :methodName ""
                                                                                                                                     :minDaysInTransit 0}
                                                                                                                            :shipByDate ""
                                                                                                                            :type ""}
                                                                                                          :unitTax {}}]
                                                                                             :notificationMode ""
                                                                                             :paymentMethod {:expirationMonth 0
                                                                                                             :expirationYear 0
                                                                                                             :lastFourDigits ""
                                                                                                             :predefinedBillingAddress ""
                                                                                                             :type ""}
                                                                                             :predefinedDeliveryAddress ""
                                                                                             :predefinedPickupDetails ""
                                                                                             :promotions [{:benefits [{:discount {}
                                                                                                                       :offerIds []
                                                                                                                       :subType ""
                                                                                                                       :taxImpact {}
                                                                                                                       :type ""}]
                                                                                                           :effectiveDates ""
                                                                                                           :genericRedemptionCode ""
                                                                                                           :id ""
                                                                                                           :longTitle ""
                                                                                                           :productApplicability ""
                                                                                                           :redemptionChannel ""}]
                                                                                             :shippingCost {}
                                                                                             :shippingCostTax {}
                                                                                             :shippingOption ""}}})
require "http/client"

url = "{{baseUrl}}/:merchantId/testorders"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/testorders"),
    Content = new StringContent("{\n  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/testorders");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/testorders"

	payload := strings.NewReader("{\n  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:merchantId/testorders HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2255

{
  "country": "",
  "templateName": "",
  "testOrder": {
    "customer": {
      "email": "",
      "explicitMarketingPreference": false,
      "fullName": "",
      "marketingRightsInfo": {
        "explicitMarketingPreference": "",
        "lastUpdatedTimestamp": ""
      }
    },
    "enableOrderinvoices": false,
    "kind": "",
    "lineItems": [
      {
        "product": {
          "brand": "",
          "channel": "",
          "condition": "",
          "contentLanguage": "",
          "fees": [
            {
              "amount": {
                "currency": "",
                "value": ""
              },
              "name": ""
            }
          ],
          "gtin": "",
          "imageLink": "",
          "itemGroupId": "",
          "mpn": "",
          "offerId": "",
          "price": {},
          "targetCountry": "",
          "title": "",
          "variantAttributes": [
            {
              "dimension": "",
              "value": ""
            }
          ]
        },
        "quantityOrdered": 0,
        "returnInfo": {
          "daysToReturn": 0,
          "isReturnable": false,
          "policyUrl": ""
        },
        "shippingDetails": {
          "deliverByDate": "",
          "method": {
            "carrier": "",
            "maxDaysInTransit": 0,
            "methodName": "",
            "minDaysInTransit": 0
          },
          "shipByDate": "",
          "type": ""
        },
        "unitTax": {}
      }
    ],
    "notificationMode": "",
    "paymentMethod": {
      "expirationMonth": 0,
      "expirationYear": 0,
      "lastFourDigits": "",
      "predefinedBillingAddress": "",
      "type": ""
    },
    "predefinedDeliveryAddress": "",
    "predefinedPickupDetails": "",
    "promotions": [
      {
        "benefits": [
          {
            "discount": {},
            "offerIds": [],
            "subType": "",
            "taxImpact": {},
            "type": ""
          }
        ],
        "effectiveDates": "",
        "genericRedemptionCode": "",
        "id": "",
        "longTitle": "",
        "productApplicability": "",
        "redemptionChannel": ""
      }
    ],
    "shippingCost": {},
    "shippingCostTax": {},
    "shippingOption": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/testorders")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/testorders"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/testorders")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/testorders")
  .header("content-type", "application/json")
  .body("{\n  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  country: '',
  templateName: '',
  testOrder: {
    customer: {
      email: '',
      explicitMarketingPreference: false,
      fullName: '',
      marketingRightsInfo: {
        explicitMarketingPreference: '',
        lastUpdatedTimestamp: ''
      }
    },
    enableOrderinvoices: false,
    kind: '',
    lineItems: [
      {
        product: {
          brand: '',
          channel: '',
          condition: '',
          contentLanguage: '',
          fees: [
            {
              amount: {
                currency: '',
                value: ''
              },
              name: ''
            }
          ],
          gtin: '',
          imageLink: '',
          itemGroupId: '',
          mpn: '',
          offerId: '',
          price: {},
          targetCountry: '',
          title: '',
          variantAttributes: [
            {
              dimension: '',
              value: ''
            }
          ]
        },
        quantityOrdered: 0,
        returnInfo: {
          daysToReturn: 0,
          isReturnable: false,
          policyUrl: ''
        },
        shippingDetails: {
          deliverByDate: '',
          method: {
            carrier: '',
            maxDaysInTransit: 0,
            methodName: '',
            minDaysInTransit: 0
          },
          shipByDate: '',
          type: ''
        },
        unitTax: {}
      }
    ],
    notificationMode: '',
    paymentMethod: {
      expirationMonth: 0,
      expirationYear: 0,
      lastFourDigits: '',
      predefinedBillingAddress: '',
      type: ''
    },
    predefinedDeliveryAddress: '',
    predefinedPickupDetails: '',
    promotions: [
      {
        benefits: [
          {
            discount: {},
            offerIds: [],
            subType: '',
            taxImpact: {},
            type: ''
          }
        ],
        effectiveDates: '',
        genericRedemptionCode: '',
        id: '',
        longTitle: '',
        productApplicability: '',
        redemptionChannel: ''
      }
    ],
    shippingCost: {},
    shippingCostTax: {},
    shippingOption: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/testorders');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/testorders',
  headers: {'content-type': 'application/json'},
  data: {
    country: '',
    templateName: '',
    testOrder: {
      customer: {
        email: '',
        explicitMarketingPreference: false,
        fullName: '',
        marketingRightsInfo: {explicitMarketingPreference: '', lastUpdatedTimestamp: ''}
      },
      enableOrderinvoices: false,
      kind: '',
      lineItems: [
        {
          product: {
            brand: '',
            channel: '',
            condition: '',
            contentLanguage: '',
            fees: [{amount: {currency: '', value: ''}, name: ''}],
            gtin: '',
            imageLink: '',
            itemGroupId: '',
            mpn: '',
            offerId: '',
            price: {},
            targetCountry: '',
            title: '',
            variantAttributes: [{dimension: '', value: ''}]
          },
          quantityOrdered: 0,
          returnInfo: {daysToReturn: 0, isReturnable: false, policyUrl: ''},
          shippingDetails: {
            deliverByDate: '',
            method: {carrier: '', maxDaysInTransit: 0, methodName: '', minDaysInTransit: 0},
            shipByDate: '',
            type: ''
          },
          unitTax: {}
        }
      ],
      notificationMode: '',
      paymentMethod: {
        expirationMonth: 0,
        expirationYear: 0,
        lastFourDigits: '',
        predefinedBillingAddress: '',
        type: ''
      },
      predefinedDeliveryAddress: '',
      predefinedPickupDetails: '',
      promotions: [
        {
          benefits: [{discount: {}, offerIds: [], subType: '', taxImpact: {}, type: ''}],
          effectiveDates: '',
          genericRedemptionCode: '',
          id: '',
          longTitle: '',
          productApplicability: '',
          redemptionChannel: ''
        }
      ],
      shippingCost: {},
      shippingCostTax: {},
      shippingOption: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/testorders';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"country":"","templateName":"","testOrder":{"customer":{"email":"","explicitMarketingPreference":false,"fullName":"","marketingRightsInfo":{"explicitMarketingPreference":"","lastUpdatedTimestamp":""}},"enableOrderinvoices":false,"kind":"","lineItems":[{"product":{"brand":"","channel":"","condition":"","contentLanguage":"","fees":[{"amount":{"currency":"","value":""},"name":""}],"gtin":"","imageLink":"","itemGroupId":"","mpn":"","offerId":"","price":{},"targetCountry":"","title":"","variantAttributes":[{"dimension":"","value":""}]},"quantityOrdered":0,"returnInfo":{"daysToReturn":0,"isReturnable":false,"policyUrl":""},"shippingDetails":{"deliverByDate":"","method":{"carrier":"","maxDaysInTransit":0,"methodName":"","minDaysInTransit":0},"shipByDate":"","type":""},"unitTax":{}}],"notificationMode":"","paymentMethod":{"expirationMonth":0,"expirationYear":0,"lastFourDigits":"","predefinedBillingAddress":"","type":""},"predefinedDeliveryAddress":"","predefinedPickupDetails":"","promotions":[{"benefits":[{"discount":{},"offerIds":[],"subType":"","taxImpact":{},"type":""}],"effectiveDates":"","genericRedemptionCode":"","id":"","longTitle":"","productApplicability":"","redemptionChannel":""}],"shippingCost":{},"shippingCostTax":{},"shippingOption":""}}'
};

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}}/:merchantId/testorders',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "country": "",\n  "templateName": "",\n  "testOrder": {\n    "customer": {\n      "email": "",\n      "explicitMarketingPreference": false,\n      "fullName": "",\n      "marketingRightsInfo": {\n        "explicitMarketingPreference": "",\n        "lastUpdatedTimestamp": ""\n      }\n    },\n    "enableOrderinvoices": false,\n    "kind": "",\n    "lineItems": [\n      {\n        "product": {\n          "brand": "",\n          "channel": "",\n          "condition": "",\n          "contentLanguage": "",\n          "fees": [\n            {\n              "amount": {\n                "currency": "",\n                "value": ""\n              },\n              "name": ""\n            }\n          ],\n          "gtin": "",\n          "imageLink": "",\n          "itemGroupId": "",\n          "mpn": "",\n          "offerId": "",\n          "price": {},\n          "targetCountry": "",\n          "title": "",\n          "variantAttributes": [\n            {\n              "dimension": "",\n              "value": ""\n            }\n          ]\n        },\n        "quantityOrdered": 0,\n        "returnInfo": {\n          "daysToReturn": 0,\n          "isReturnable": false,\n          "policyUrl": ""\n        },\n        "shippingDetails": {\n          "deliverByDate": "",\n          "method": {\n            "carrier": "",\n            "maxDaysInTransit": 0,\n            "methodName": "",\n            "minDaysInTransit": 0\n          },\n          "shipByDate": "",\n          "type": ""\n        },\n        "unitTax": {}\n      }\n    ],\n    "notificationMode": "",\n    "paymentMethod": {\n      "expirationMonth": 0,\n      "expirationYear": 0,\n      "lastFourDigits": "",\n      "predefinedBillingAddress": "",\n      "type": ""\n    },\n    "predefinedDeliveryAddress": "",\n    "predefinedPickupDetails": "",\n    "promotions": [\n      {\n        "benefits": [\n          {\n            "discount": {},\n            "offerIds": [],\n            "subType": "",\n            "taxImpact": {},\n            "type": ""\n          }\n        ],\n        "effectiveDates": "",\n        "genericRedemptionCode": "",\n        "id": "",\n        "longTitle": "",\n        "productApplicability": "",\n        "redemptionChannel": ""\n      }\n    ],\n    "shippingCost": {},\n    "shippingCostTax": {},\n    "shippingOption": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/testorders")
  .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/:merchantId/testorders',
  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({
  country: '',
  templateName: '',
  testOrder: {
    customer: {
      email: '',
      explicitMarketingPreference: false,
      fullName: '',
      marketingRightsInfo: {explicitMarketingPreference: '', lastUpdatedTimestamp: ''}
    },
    enableOrderinvoices: false,
    kind: '',
    lineItems: [
      {
        product: {
          brand: '',
          channel: '',
          condition: '',
          contentLanguage: '',
          fees: [{amount: {currency: '', value: ''}, name: ''}],
          gtin: '',
          imageLink: '',
          itemGroupId: '',
          mpn: '',
          offerId: '',
          price: {},
          targetCountry: '',
          title: '',
          variantAttributes: [{dimension: '', value: ''}]
        },
        quantityOrdered: 0,
        returnInfo: {daysToReturn: 0, isReturnable: false, policyUrl: ''},
        shippingDetails: {
          deliverByDate: '',
          method: {carrier: '', maxDaysInTransit: 0, methodName: '', minDaysInTransit: 0},
          shipByDate: '',
          type: ''
        },
        unitTax: {}
      }
    ],
    notificationMode: '',
    paymentMethod: {
      expirationMonth: 0,
      expirationYear: 0,
      lastFourDigits: '',
      predefinedBillingAddress: '',
      type: ''
    },
    predefinedDeliveryAddress: '',
    predefinedPickupDetails: '',
    promotions: [
      {
        benefits: [{discount: {}, offerIds: [], subType: '', taxImpact: {}, type: ''}],
        effectiveDates: '',
        genericRedemptionCode: '',
        id: '',
        longTitle: '',
        productApplicability: '',
        redemptionChannel: ''
      }
    ],
    shippingCost: {},
    shippingCostTax: {},
    shippingOption: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/testorders',
  headers: {'content-type': 'application/json'},
  body: {
    country: '',
    templateName: '',
    testOrder: {
      customer: {
        email: '',
        explicitMarketingPreference: false,
        fullName: '',
        marketingRightsInfo: {explicitMarketingPreference: '', lastUpdatedTimestamp: ''}
      },
      enableOrderinvoices: false,
      kind: '',
      lineItems: [
        {
          product: {
            brand: '',
            channel: '',
            condition: '',
            contentLanguage: '',
            fees: [{amount: {currency: '', value: ''}, name: ''}],
            gtin: '',
            imageLink: '',
            itemGroupId: '',
            mpn: '',
            offerId: '',
            price: {},
            targetCountry: '',
            title: '',
            variantAttributes: [{dimension: '', value: ''}]
          },
          quantityOrdered: 0,
          returnInfo: {daysToReturn: 0, isReturnable: false, policyUrl: ''},
          shippingDetails: {
            deliverByDate: '',
            method: {carrier: '', maxDaysInTransit: 0, methodName: '', minDaysInTransit: 0},
            shipByDate: '',
            type: ''
          },
          unitTax: {}
        }
      ],
      notificationMode: '',
      paymentMethod: {
        expirationMonth: 0,
        expirationYear: 0,
        lastFourDigits: '',
        predefinedBillingAddress: '',
        type: ''
      },
      predefinedDeliveryAddress: '',
      predefinedPickupDetails: '',
      promotions: [
        {
          benefits: [{discount: {}, offerIds: [], subType: '', taxImpact: {}, type: ''}],
          effectiveDates: '',
          genericRedemptionCode: '',
          id: '',
          longTitle: '',
          productApplicability: '',
          redemptionChannel: ''
        }
      ],
      shippingCost: {},
      shippingCostTax: {},
      shippingOption: ''
    }
  },
  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}}/:merchantId/testorders');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  country: '',
  templateName: '',
  testOrder: {
    customer: {
      email: '',
      explicitMarketingPreference: false,
      fullName: '',
      marketingRightsInfo: {
        explicitMarketingPreference: '',
        lastUpdatedTimestamp: ''
      }
    },
    enableOrderinvoices: false,
    kind: '',
    lineItems: [
      {
        product: {
          brand: '',
          channel: '',
          condition: '',
          contentLanguage: '',
          fees: [
            {
              amount: {
                currency: '',
                value: ''
              },
              name: ''
            }
          ],
          gtin: '',
          imageLink: '',
          itemGroupId: '',
          mpn: '',
          offerId: '',
          price: {},
          targetCountry: '',
          title: '',
          variantAttributes: [
            {
              dimension: '',
              value: ''
            }
          ]
        },
        quantityOrdered: 0,
        returnInfo: {
          daysToReturn: 0,
          isReturnable: false,
          policyUrl: ''
        },
        shippingDetails: {
          deliverByDate: '',
          method: {
            carrier: '',
            maxDaysInTransit: 0,
            methodName: '',
            minDaysInTransit: 0
          },
          shipByDate: '',
          type: ''
        },
        unitTax: {}
      }
    ],
    notificationMode: '',
    paymentMethod: {
      expirationMonth: 0,
      expirationYear: 0,
      lastFourDigits: '',
      predefinedBillingAddress: '',
      type: ''
    },
    predefinedDeliveryAddress: '',
    predefinedPickupDetails: '',
    promotions: [
      {
        benefits: [
          {
            discount: {},
            offerIds: [],
            subType: '',
            taxImpact: {},
            type: ''
          }
        ],
        effectiveDates: '',
        genericRedemptionCode: '',
        id: '',
        longTitle: '',
        productApplicability: '',
        redemptionChannel: ''
      }
    ],
    shippingCost: {},
    shippingCostTax: {},
    shippingOption: ''
  }
});

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}}/:merchantId/testorders',
  headers: {'content-type': 'application/json'},
  data: {
    country: '',
    templateName: '',
    testOrder: {
      customer: {
        email: '',
        explicitMarketingPreference: false,
        fullName: '',
        marketingRightsInfo: {explicitMarketingPreference: '', lastUpdatedTimestamp: ''}
      },
      enableOrderinvoices: false,
      kind: '',
      lineItems: [
        {
          product: {
            brand: '',
            channel: '',
            condition: '',
            contentLanguage: '',
            fees: [{amount: {currency: '', value: ''}, name: ''}],
            gtin: '',
            imageLink: '',
            itemGroupId: '',
            mpn: '',
            offerId: '',
            price: {},
            targetCountry: '',
            title: '',
            variantAttributes: [{dimension: '', value: ''}]
          },
          quantityOrdered: 0,
          returnInfo: {daysToReturn: 0, isReturnable: false, policyUrl: ''},
          shippingDetails: {
            deliverByDate: '',
            method: {carrier: '', maxDaysInTransit: 0, methodName: '', minDaysInTransit: 0},
            shipByDate: '',
            type: ''
          },
          unitTax: {}
        }
      ],
      notificationMode: '',
      paymentMethod: {
        expirationMonth: 0,
        expirationYear: 0,
        lastFourDigits: '',
        predefinedBillingAddress: '',
        type: ''
      },
      predefinedDeliveryAddress: '',
      predefinedPickupDetails: '',
      promotions: [
        {
          benefits: [{discount: {}, offerIds: [], subType: '', taxImpact: {}, type: ''}],
          effectiveDates: '',
          genericRedemptionCode: '',
          id: '',
          longTitle: '',
          productApplicability: '',
          redemptionChannel: ''
        }
      ],
      shippingCost: {},
      shippingCostTax: {},
      shippingOption: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/testorders';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"country":"","templateName":"","testOrder":{"customer":{"email":"","explicitMarketingPreference":false,"fullName":"","marketingRightsInfo":{"explicitMarketingPreference":"","lastUpdatedTimestamp":""}},"enableOrderinvoices":false,"kind":"","lineItems":[{"product":{"brand":"","channel":"","condition":"","contentLanguage":"","fees":[{"amount":{"currency":"","value":""},"name":""}],"gtin":"","imageLink":"","itemGroupId":"","mpn":"","offerId":"","price":{},"targetCountry":"","title":"","variantAttributes":[{"dimension":"","value":""}]},"quantityOrdered":0,"returnInfo":{"daysToReturn":0,"isReturnable":false,"policyUrl":""},"shippingDetails":{"deliverByDate":"","method":{"carrier":"","maxDaysInTransit":0,"methodName":"","minDaysInTransit":0},"shipByDate":"","type":""},"unitTax":{}}],"notificationMode":"","paymentMethod":{"expirationMonth":0,"expirationYear":0,"lastFourDigits":"","predefinedBillingAddress":"","type":""},"predefinedDeliveryAddress":"","predefinedPickupDetails":"","promotions":[{"benefits":[{"discount":{},"offerIds":[],"subType":"","taxImpact":{},"type":""}],"effectiveDates":"","genericRedemptionCode":"","id":"","longTitle":"","productApplicability":"","redemptionChannel":""}],"shippingCost":{},"shippingCostTax":{},"shippingOption":""}}'
};

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 = @{ @"country": @"",
                              @"templateName": @"",
                              @"testOrder": @{ @"customer": @{ @"email": @"", @"explicitMarketingPreference": @NO, @"fullName": @"", @"marketingRightsInfo": @{ @"explicitMarketingPreference": @"", @"lastUpdatedTimestamp": @"" } }, @"enableOrderinvoices": @NO, @"kind": @"", @"lineItems": @[ @{ @"product": @{ @"brand": @"", @"channel": @"", @"condition": @"", @"contentLanguage": @"", @"fees": @[ @{ @"amount": @{ @"currency": @"", @"value": @"" }, @"name": @"" } ], @"gtin": @"", @"imageLink": @"", @"itemGroupId": @"", @"mpn": @"", @"offerId": @"", @"price": @{  }, @"targetCountry": @"", @"title": @"", @"variantAttributes": @[ @{ @"dimension": @"", @"value": @"" } ] }, @"quantityOrdered": @0, @"returnInfo": @{ @"daysToReturn": @0, @"isReturnable": @NO, @"policyUrl": @"" }, @"shippingDetails": @{ @"deliverByDate": @"", @"method": @{ @"carrier": @"", @"maxDaysInTransit": @0, @"methodName": @"", @"minDaysInTransit": @0 }, @"shipByDate": @"", @"type": @"" }, @"unitTax": @{  } } ], @"notificationMode": @"", @"paymentMethod": @{ @"expirationMonth": @0, @"expirationYear": @0, @"lastFourDigits": @"", @"predefinedBillingAddress": @"", @"type": @"" }, @"predefinedDeliveryAddress": @"", @"predefinedPickupDetails": @"", @"promotions": @[ @{ @"benefits": @[ @{ @"discount": @{  }, @"offerIds": @[  ], @"subType": @"", @"taxImpact": @{  }, @"type": @"" } ], @"effectiveDates": @"", @"genericRedemptionCode": @"", @"id": @"", @"longTitle": @"", @"productApplicability": @"", @"redemptionChannel": @"" } ], @"shippingCost": @{  }, @"shippingCostTax": @{  }, @"shippingOption": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/testorders"]
                                                       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}}/:merchantId/testorders" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/testorders",
  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([
    'country' => '',
    'templateName' => '',
    'testOrder' => [
        'customer' => [
                'email' => '',
                'explicitMarketingPreference' => null,
                'fullName' => '',
                'marketingRightsInfo' => [
                                'explicitMarketingPreference' => '',
                                'lastUpdatedTimestamp' => ''
                ]
        ],
        'enableOrderinvoices' => null,
        'kind' => '',
        'lineItems' => [
                [
                                'product' => [
                                                                'brand' => '',
                                                                'channel' => '',
                                                                'condition' => '',
                                                                'contentLanguage' => '',
                                                                'fees' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'amount' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'currency' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                ]
                                                                ],
                                                                'gtin' => '',
                                                                'imageLink' => '',
                                                                'itemGroupId' => '',
                                                                'mpn' => '',
                                                                'offerId' => '',
                                                                'price' => [
                                                                                                                                
                                                                ],
                                                                'targetCountry' => '',
                                                                'title' => '',
                                                                'variantAttributes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'dimension' => '',
                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'quantityOrdered' => 0,
                                'returnInfo' => [
                                                                'daysToReturn' => 0,
                                                                'isReturnable' => null,
                                                                'policyUrl' => ''
                                ],
                                'shippingDetails' => [
                                                                'deliverByDate' => '',
                                                                'method' => [
                                                                                                                                'carrier' => '',
                                                                                                                                'maxDaysInTransit' => 0,
                                                                                                                                'methodName' => '',
                                                                                                                                'minDaysInTransit' => 0
                                                                ],
                                                                'shipByDate' => '',
                                                                'type' => ''
                                ],
                                'unitTax' => [
                                                                
                                ]
                ]
        ],
        'notificationMode' => '',
        'paymentMethod' => [
                'expirationMonth' => 0,
                'expirationYear' => 0,
                'lastFourDigits' => '',
                'predefinedBillingAddress' => '',
                'type' => ''
        ],
        'predefinedDeliveryAddress' => '',
        'predefinedPickupDetails' => '',
        'promotions' => [
                [
                                'benefits' => [
                                                                [
                                                                                                                                'discount' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'offerIds' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'subType' => '',
                                                                                                                                'taxImpact' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'effectiveDates' => '',
                                'genericRedemptionCode' => '',
                                'id' => '',
                                'longTitle' => '',
                                'productApplicability' => '',
                                'redemptionChannel' => ''
                ]
        ],
        'shippingCost' => [
                
        ],
        'shippingCostTax' => [
                
        ],
        'shippingOption' => ''
    ]
  ]),
  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}}/:merchantId/testorders', [
  'body' => '{
  "country": "",
  "templateName": "",
  "testOrder": {
    "customer": {
      "email": "",
      "explicitMarketingPreference": false,
      "fullName": "",
      "marketingRightsInfo": {
        "explicitMarketingPreference": "",
        "lastUpdatedTimestamp": ""
      }
    },
    "enableOrderinvoices": false,
    "kind": "",
    "lineItems": [
      {
        "product": {
          "brand": "",
          "channel": "",
          "condition": "",
          "contentLanguage": "",
          "fees": [
            {
              "amount": {
                "currency": "",
                "value": ""
              },
              "name": ""
            }
          ],
          "gtin": "",
          "imageLink": "",
          "itemGroupId": "",
          "mpn": "",
          "offerId": "",
          "price": {},
          "targetCountry": "",
          "title": "",
          "variantAttributes": [
            {
              "dimension": "",
              "value": ""
            }
          ]
        },
        "quantityOrdered": 0,
        "returnInfo": {
          "daysToReturn": 0,
          "isReturnable": false,
          "policyUrl": ""
        },
        "shippingDetails": {
          "deliverByDate": "",
          "method": {
            "carrier": "",
            "maxDaysInTransit": 0,
            "methodName": "",
            "minDaysInTransit": 0
          },
          "shipByDate": "",
          "type": ""
        },
        "unitTax": {}
      }
    ],
    "notificationMode": "",
    "paymentMethod": {
      "expirationMonth": 0,
      "expirationYear": 0,
      "lastFourDigits": "",
      "predefinedBillingAddress": "",
      "type": ""
    },
    "predefinedDeliveryAddress": "",
    "predefinedPickupDetails": "",
    "promotions": [
      {
        "benefits": [
          {
            "discount": {},
            "offerIds": [],
            "subType": "",
            "taxImpact": {},
            "type": ""
          }
        ],
        "effectiveDates": "",
        "genericRedemptionCode": "",
        "id": "",
        "longTitle": "",
        "productApplicability": "",
        "redemptionChannel": ""
      }
    ],
    "shippingCost": {},
    "shippingCostTax": {},
    "shippingOption": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/testorders');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'country' => '',
  'templateName' => '',
  'testOrder' => [
    'customer' => [
        'email' => '',
        'explicitMarketingPreference' => null,
        'fullName' => '',
        'marketingRightsInfo' => [
                'explicitMarketingPreference' => '',
                'lastUpdatedTimestamp' => ''
        ]
    ],
    'enableOrderinvoices' => null,
    'kind' => '',
    'lineItems' => [
        [
                'product' => [
                                'brand' => '',
                                'channel' => '',
                                'condition' => '',
                                'contentLanguage' => '',
                                'fees' => [
                                                                [
                                                                                                                                'amount' => [
                                                                                                                                                                                                                                                                'currency' => '',
                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                ],
                                                                                                                                'name' => ''
                                                                ]
                                ],
                                'gtin' => '',
                                'imageLink' => '',
                                'itemGroupId' => '',
                                'mpn' => '',
                                'offerId' => '',
                                'price' => [
                                                                
                                ],
                                'targetCountry' => '',
                                'title' => '',
                                'variantAttributes' => [
                                                                [
                                                                                                                                'dimension' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ]
                ],
                'quantityOrdered' => 0,
                'returnInfo' => [
                                'daysToReturn' => 0,
                                'isReturnable' => null,
                                'policyUrl' => ''
                ],
                'shippingDetails' => [
                                'deliverByDate' => '',
                                'method' => [
                                                                'carrier' => '',
                                                                'maxDaysInTransit' => 0,
                                                                'methodName' => '',
                                                                'minDaysInTransit' => 0
                                ],
                                'shipByDate' => '',
                                'type' => ''
                ],
                'unitTax' => [
                                
                ]
        ]
    ],
    'notificationMode' => '',
    'paymentMethod' => [
        'expirationMonth' => 0,
        'expirationYear' => 0,
        'lastFourDigits' => '',
        'predefinedBillingAddress' => '',
        'type' => ''
    ],
    'predefinedDeliveryAddress' => '',
    'predefinedPickupDetails' => '',
    'promotions' => [
        [
                'benefits' => [
                                [
                                                                'discount' => [
                                                                                                                                
                                                                ],
                                                                'offerIds' => [
                                                                                                                                
                                                                ],
                                                                'subType' => '',
                                                                'taxImpact' => [
                                                                                                                                
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'effectiveDates' => '',
                'genericRedemptionCode' => '',
                'id' => '',
                'longTitle' => '',
                'productApplicability' => '',
                'redemptionChannel' => ''
        ]
    ],
    'shippingCost' => [
        
    ],
    'shippingCostTax' => [
        
    ],
    'shippingOption' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'country' => '',
  'templateName' => '',
  'testOrder' => [
    'customer' => [
        'email' => '',
        'explicitMarketingPreference' => null,
        'fullName' => '',
        'marketingRightsInfo' => [
                'explicitMarketingPreference' => '',
                'lastUpdatedTimestamp' => ''
        ]
    ],
    'enableOrderinvoices' => null,
    'kind' => '',
    'lineItems' => [
        [
                'product' => [
                                'brand' => '',
                                'channel' => '',
                                'condition' => '',
                                'contentLanguage' => '',
                                'fees' => [
                                                                [
                                                                                                                                'amount' => [
                                                                                                                                                                                                                                                                'currency' => '',
                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                ],
                                                                                                                                'name' => ''
                                                                ]
                                ],
                                'gtin' => '',
                                'imageLink' => '',
                                'itemGroupId' => '',
                                'mpn' => '',
                                'offerId' => '',
                                'price' => [
                                                                
                                ],
                                'targetCountry' => '',
                                'title' => '',
                                'variantAttributes' => [
                                                                [
                                                                                                                                'dimension' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ]
                ],
                'quantityOrdered' => 0,
                'returnInfo' => [
                                'daysToReturn' => 0,
                                'isReturnable' => null,
                                'policyUrl' => ''
                ],
                'shippingDetails' => [
                                'deliverByDate' => '',
                                'method' => [
                                                                'carrier' => '',
                                                                'maxDaysInTransit' => 0,
                                                                'methodName' => '',
                                                                'minDaysInTransit' => 0
                                ],
                                'shipByDate' => '',
                                'type' => ''
                ],
                'unitTax' => [
                                
                ]
        ]
    ],
    'notificationMode' => '',
    'paymentMethod' => [
        'expirationMonth' => 0,
        'expirationYear' => 0,
        'lastFourDigits' => '',
        'predefinedBillingAddress' => '',
        'type' => ''
    ],
    'predefinedDeliveryAddress' => '',
    'predefinedPickupDetails' => '',
    'promotions' => [
        [
                'benefits' => [
                                [
                                                                'discount' => [
                                                                                                                                
                                                                ],
                                                                'offerIds' => [
                                                                                                                                
                                                                ],
                                                                'subType' => '',
                                                                'taxImpact' => [
                                                                                                                                
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'effectiveDates' => '',
                'genericRedemptionCode' => '',
                'id' => '',
                'longTitle' => '',
                'productApplicability' => '',
                'redemptionChannel' => ''
        ]
    ],
    'shippingCost' => [
        
    ],
    'shippingCostTax' => [
        
    ],
    'shippingOption' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/testorders');
$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}}/:merchantId/testorders' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "country": "",
  "templateName": "",
  "testOrder": {
    "customer": {
      "email": "",
      "explicitMarketingPreference": false,
      "fullName": "",
      "marketingRightsInfo": {
        "explicitMarketingPreference": "",
        "lastUpdatedTimestamp": ""
      }
    },
    "enableOrderinvoices": false,
    "kind": "",
    "lineItems": [
      {
        "product": {
          "brand": "",
          "channel": "",
          "condition": "",
          "contentLanguage": "",
          "fees": [
            {
              "amount": {
                "currency": "",
                "value": ""
              },
              "name": ""
            }
          ],
          "gtin": "",
          "imageLink": "",
          "itemGroupId": "",
          "mpn": "",
          "offerId": "",
          "price": {},
          "targetCountry": "",
          "title": "",
          "variantAttributes": [
            {
              "dimension": "",
              "value": ""
            }
          ]
        },
        "quantityOrdered": 0,
        "returnInfo": {
          "daysToReturn": 0,
          "isReturnable": false,
          "policyUrl": ""
        },
        "shippingDetails": {
          "deliverByDate": "",
          "method": {
            "carrier": "",
            "maxDaysInTransit": 0,
            "methodName": "",
            "minDaysInTransit": 0
          },
          "shipByDate": "",
          "type": ""
        },
        "unitTax": {}
      }
    ],
    "notificationMode": "",
    "paymentMethod": {
      "expirationMonth": 0,
      "expirationYear": 0,
      "lastFourDigits": "",
      "predefinedBillingAddress": "",
      "type": ""
    },
    "predefinedDeliveryAddress": "",
    "predefinedPickupDetails": "",
    "promotions": [
      {
        "benefits": [
          {
            "discount": {},
            "offerIds": [],
            "subType": "",
            "taxImpact": {},
            "type": ""
          }
        ],
        "effectiveDates": "",
        "genericRedemptionCode": "",
        "id": "",
        "longTitle": "",
        "productApplicability": "",
        "redemptionChannel": ""
      }
    ],
    "shippingCost": {},
    "shippingCostTax": {},
    "shippingOption": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/testorders' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "country": "",
  "templateName": "",
  "testOrder": {
    "customer": {
      "email": "",
      "explicitMarketingPreference": false,
      "fullName": "",
      "marketingRightsInfo": {
        "explicitMarketingPreference": "",
        "lastUpdatedTimestamp": ""
      }
    },
    "enableOrderinvoices": false,
    "kind": "",
    "lineItems": [
      {
        "product": {
          "brand": "",
          "channel": "",
          "condition": "",
          "contentLanguage": "",
          "fees": [
            {
              "amount": {
                "currency": "",
                "value": ""
              },
              "name": ""
            }
          ],
          "gtin": "",
          "imageLink": "",
          "itemGroupId": "",
          "mpn": "",
          "offerId": "",
          "price": {},
          "targetCountry": "",
          "title": "",
          "variantAttributes": [
            {
              "dimension": "",
              "value": ""
            }
          ]
        },
        "quantityOrdered": 0,
        "returnInfo": {
          "daysToReturn": 0,
          "isReturnable": false,
          "policyUrl": ""
        },
        "shippingDetails": {
          "deliverByDate": "",
          "method": {
            "carrier": "",
            "maxDaysInTransit": 0,
            "methodName": "",
            "minDaysInTransit": 0
          },
          "shipByDate": "",
          "type": ""
        },
        "unitTax": {}
      }
    ],
    "notificationMode": "",
    "paymentMethod": {
      "expirationMonth": 0,
      "expirationYear": 0,
      "lastFourDigits": "",
      "predefinedBillingAddress": "",
      "type": ""
    },
    "predefinedDeliveryAddress": "",
    "predefinedPickupDetails": "",
    "promotions": [
      {
        "benefits": [
          {
            "discount": {},
            "offerIds": [],
            "subType": "",
            "taxImpact": {},
            "type": ""
          }
        ],
        "effectiveDates": "",
        "genericRedemptionCode": "",
        "id": "",
        "longTitle": "",
        "productApplicability": "",
        "redemptionChannel": ""
      }
    ],
    "shippingCost": {},
    "shippingCostTax": {},
    "shippingOption": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/testorders", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/testorders"

payload = {
    "country": "",
    "templateName": "",
    "testOrder": {
        "customer": {
            "email": "",
            "explicitMarketingPreference": False,
            "fullName": "",
            "marketingRightsInfo": {
                "explicitMarketingPreference": "",
                "lastUpdatedTimestamp": ""
            }
        },
        "enableOrderinvoices": False,
        "kind": "",
        "lineItems": [
            {
                "product": {
                    "brand": "",
                    "channel": "",
                    "condition": "",
                    "contentLanguage": "",
                    "fees": [
                        {
                            "amount": {
                                "currency": "",
                                "value": ""
                            },
                            "name": ""
                        }
                    ],
                    "gtin": "",
                    "imageLink": "",
                    "itemGroupId": "",
                    "mpn": "",
                    "offerId": "",
                    "price": {},
                    "targetCountry": "",
                    "title": "",
                    "variantAttributes": [
                        {
                            "dimension": "",
                            "value": ""
                        }
                    ]
                },
                "quantityOrdered": 0,
                "returnInfo": {
                    "daysToReturn": 0,
                    "isReturnable": False,
                    "policyUrl": ""
                },
                "shippingDetails": {
                    "deliverByDate": "",
                    "method": {
                        "carrier": "",
                        "maxDaysInTransit": 0,
                        "methodName": "",
                        "minDaysInTransit": 0
                    },
                    "shipByDate": "",
                    "type": ""
                },
                "unitTax": {}
            }
        ],
        "notificationMode": "",
        "paymentMethod": {
            "expirationMonth": 0,
            "expirationYear": 0,
            "lastFourDigits": "",
            "predefinedBillingAddress": "",
            "type": ""
        },
        "predefinedDeliveryAddress": "",
        "predefinedPickupDetails": "",
        "promotions": [
            {
                "benefits": [
                    {
                        "discount": {},
                        "offerIds": [],
                        "subType": "",
                        "taxImpact": {},
                        "type": ""
                    }
                ],
                "effectiveDates": "",
                "genericRedemptionCode": "",
                "id": "",
                "longTitle": "",
                "productApplicability": "",
                "redemptionChannel": ""
            }
        ],
        "shippingCost": {},
        "shippingCostTax": {},
        "shippingOption": ""
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/testorders"

payload <- "{\n  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/testorders")

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  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:merchantId/testorders') do |req|
  req.body = "{\n  \"country\": \"\",\n  \"templateName\": \"\",\n  \"testOrder\": {\n    \"customer\": {\n      \"email\": \"\",\n      \"explicitMarketingPreference\": false,\n      \"fullName\": \"\",\n      \"marketingRightsInfo\": {\n        \"explicitMarketingPreference\": \"\",\n        \"lastUpdatedTimestamp\": \"\"\n      }\n    },\n    \"enableOrderinvoices\": false,\n    \"kind\": \"\",\n    \"lineItems\": [\n      {\n        \"product\": {\n          \"brand\": \"\",\n          \"channel\": \"\",\n          \"condition\": \"\",\n          \"contentLanguage\": \"\",\n          \"fees\": [\n            {\n              \"amount\": {\n                \"currency\": \"\",\n                \"value\": \"\"\n              },\n              \"name\": \"\"\n            }\n          ],\n          \"gtin\": \"\",\n          \"imageLink\": \"\",\n          \"itemGroupId\": \"\",\n          \"mpn\": \"\",\n          \"offerId\": \"\",\n          \"price\": {},\n          \"targetCountry\": \"\",\n          \"title\": \"\",\n          \"variantAttributes\": [\n            {\n              \"dimension\": \"\",\n              \"value\": \"\"\n            }\n          ]\n        },\n        \"quantityOrdered\": 0,\n        \"returnInfo\": {\n          \"daysToReturn\": 0,\n          \"isReturnable\": false,\n          \"policyUrl\": \"\"\n        },\n        \"shippingDetails\": {\n          \"deliverByDate\": \"\",\n          \"method\": {\n            \"carrier\": \"\",\n            \"maxDaysInTransit\": 0,\n            \"methodName\": \"\",\n            \"minDaysInTransit\": 0\n          },\n          \"shipByDate\": \"\",\n          \"type\": \"\"\n        },\n        \"unitTax\": {}\n      }\n    ],\n    \"notificationMode\": \"\",\n    \"paymentMethod\": {\n      \"expirationMonth\": 0,\n      \"expirationYear\": 0,\n      \"lastFourDigits\": \"\",\n      \"predefinedBillingAddress\": \"\",\n      \"type\": \"\"\n    },\n    \"predefinedDeliveryAddress\": \"\",\n    \"predefinedPickupDetails\": \"\",\n    \"promotions\": [\n      {\n        \"benefits\": [\n          {\n            \"discount\": {},\n            \"offerIds\": [],\n            \"subType\": \"\",\n            \"taxImpact\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"effectiveDates\": \"\",\n        \"genericRedemptionCode\": \"\",\n        \"id\": \"\",\n        \"longTitle\": \"\",\n        \"productApplicability\": \"\",\n        \"redemptionChannel\": \"\"\n      }\n    ],\n    \"shippingCost\": {},\n    \"shippingCostTax\": {},\n    \"shippingOption\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/testorders";

    let payload = json!({
        "country": "",
        "templateName": "",
        "testOrder": json!({
            "customer": json!({
                "email": "",
                "explicitMarketingPreference": false,
                "fullName": "",
                "marketingRightsInfo": json!({
                    "explicitMarketingPreference": "",
                    "lastUpdatedTimestamp": ""
                })
            }),
            "enableOrderinvoices": false,
            "kind": "",
            "lineItems": (
                json!({
                    "product": json!({
                        "brand": "",
                        "channel": "",
                        "condition": "",
                        "contentLanguage": "",
                        "fees": (
                            json!({
                                "amount": json!({
                                    "currency": "",
                                    "value": ""
                                }),
                                "name": ""
                            })
                        ),
                        "gtin": "",
                        "imageLink": "",
                        "itemGroupId": "",
                        "mpn": "",
                        "offerId": "",
                        "price": json!({}),
                        "targetCountry": "",
                        "title": "",
                        "variantAttributes": (
                            json!({
                                "dimension": "",
                                "value": ""
                            })
                        )
                    }),
                    "quantityOrdered": 0,
                    "returnInfo": json!({
                        "daysToReturn": 0,
                        "isReturnable": false,
                        "policyUrl": ""
                    }),
                    "shippingDetails": json!({
                        "deliverByDate": "",
                        "method": json!({
                            "carrier": "",
                            "maxDaysInTransit": 0,
                            "methodName": "",
                            "minDaysInTransit": 0
                        }),
                        "shipByDate": "",
                        "type": ""
                    }),
                    "unitTax": json!({})
                })
            ),
            "notificationMode": "",
            "paymentMethod": json!({
                "expirationMonth": 0,
                "expirationYear": 0,
                "lastFourDigits": "",
                "predefinedBillingAddress": "",
                "type": ""
            }),
            "predefinedDeliveryAddress": "",
            "predefinedPickupDetails": "",
            "promotions": (
                json!({
                    "benefits": (
                        json!({
                            "discount": json!({}),
                            "offerIds": (),
                            "subType": "",
                            "taxImpact": json!({}),
                            "type": ""
                        })
                    ),
                    "effectiveDates": "",
                    "genericRedemptionCode": "",
                    "id": "",
                    "longTitle": "",
                    "productApplicability": "",
                    "redemptionChannel": ""
                })
            ),
            "shippingCost": json!({}),
            "shippingCostTax": json!({}),
            "shippingOption": ""
        })
    });

    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}}/:merchantId/testorders \
  --header 'content-type: application/json' \
  --data '{
  "country": "",
  "templateName": "",
  "testOrder": {
    "customer": {
      "email": "",
      "explicitMarketingPreference": false,
      "fullName": "",
      "marketingRightsInfo": {
        "explicitMarketingPreference": "",
        "lastUpdatedTimestamp": ""
      }
    },
    "enableOrderinvoices": false,
    "kind": "",
    "lineItems": [
      {
        "product": {
          "brand": "",
          "channel": "",
          "condition": "",
          "contentLanguage": "",
          "fees": [
            {
              "amount": {
                "currency": "",
                "value": ""
              },
              "name": ""
            }
          ],
          "gtin": "",
          "imageLink": "",
          "itemGroupId": "",
          "mpn": "",
          "offerId": "",
          "price": {},
          "targetCountry": "",
          "title": "",
          "variantAttributes": [
            {
              "dimension": "",
              "value": ""
            }
          ]
        },
        "quantityOrdered": 0,
        "returnInfo": {
          "daysToReturn": 0,
          "isReturnable": false,
          "policyUrl": ""
        },
        "shippingDetails": {
          "deliverByDate": "",
          "method": {
            "carrier": "",
            "maxDaysInTransit": 0,
            "methodName": "",
            "minDaysInTransit": 0
          },
          "shipByDate": "",
          "type": ""
        },
        "unitTax": {}
      }
    ],
    "notificationMode": "",
    "paymentMethod": {
      "expirationMonth": 0,
      "expirationYear": 0,
      "lastFourDigits": "",
      "predefinedBillingAddress": "",
      "type": ""
    },
    "predefinedDeliveryAddress": "",
    "predefinedPickupDetails": "",
    "promotions": [
      {
        "benefits": [
          {
            "discount": {},
            "offerIds": [],
            "subType": "",
            "taxImpact": {},
            "type": ""
          }
        ],
        "effectiveDates": "",
        "genericRedemptionCode": "",
        "id": "",
        "longTitle": "",
        "productApplicability": "",
        "redemptionChannel": ""
      }
    ],
    "shippingCost": {},
    "shippingCostTax": {},
    "shippingOption": ""
  }
}'
echo '{
  "country": "",
  "templateName": "",
  "testOrder": {
    "customer": {
      "email": "",
      "explicitMarketingPreference": false,
      "fullName": "",
      "marketingRightsInfo": {
        "explicitMarketingPreference": "",
        "lastUpdatedTimestamp": ""
      }
    },
    "enableOrderinvoices": false,
    "kind": "",
    "lineItems": [
      {
        "product": {
          "brand": "",
          "channel": "",
          "condition": "",
          "contentLanguage": "",
          "fees": [
            {
              "amount": {
                "currency": "",
                "value": ""
              },
              "name": ""
            }
          ],
          "gtin": "",
          "imageLink": "",
          "itemGroupId": "",
          "mpn": "",
          "offerId": "",
          "price": {},
          "targetCountry": "",
          "title": "",
          "variantAttributes": [
            {
              "dimension": "",
              "value": ""
            }
          ]
        },
        "quantityOrdered": 0,
        "returnInfo": {
          "daysToReturn": 0,
          "isReturnable": false,
          "policyUrl": ""
        },
        "shippingDetails": {
          "deliverByDate": "",
          "method": {
            "carrier": "",
            "maxDaysInTransit": 0,
            "methodName": "",
            "minDaysInTransit": 0
          },
          "shipByDate": "",
          "type": ""
        },
        "unitTax": {}
      }
    ],
    "notificationMode": "",
    "paymentMethod": {
      "expirationMonth": 0,
      "expirationYear": 0,
      "lastFourDigits": "",
      "predefinedBillingAddress": "",
      "type": ""
    },
    "predefinedDeliveryAddress": "",
    "predefinedPickupDetails": "",
    "promotions": [
      {
        "benefits": [
          {
            "discount": {},
            "offerIds": [],
            "subType": "",
            "taxImpact": {},
            "type": ""
          }
        ],
        "effectiveDates": "",
        "genericRedemptionCode": "",
        "id": "",
        "longTitle": "",
        "productApplicability": "",
        "redemptionChannel": ""
      }
    ],
    "shippingCost": {},
    "shippingCostTax": {},
    "shippingOption": ""
  }
}' |  \
  http POST {{baseUrl}}/:merchantId/testorders \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "country": "",\n  "templateName": "",\n  "testOrder": {\n    "customer": {\n      "email": "",\n      "explicitMarketingPreference": false,\n      "fullName": "",\n      "marketingRightsInfo": {\n        "explicitMarketingPreference": "",\n        "lastUpdatedTimestamp": ""\n      }\n    },\n    "enableOrderinvoices": false,\n    "kind": "",\n    "lineItems": [\n      {\n        "product": {\n          "brand": "",\n          "channel": "",\n          "condition": "",\n          "contentLanguage": "",\n          "fees": [\n            {\n              "amount": {\n                "currency": "",\n                "value": ""\n              },\n              "name": ""\n            }\n          ],\n          "gtin": "",\n          "imageLink": "",\n          "itemGroupId": "",\n          "mpn": "",\n          "offerId": "",\n          "price": {},\n          "targetCountry": "",\n          "title": "",\n          "variantAttributes": [\n            {\n              "dimension": "",\n              "value": ""\n            }\n          ]\n        },\n        "quantityOrdered": 0,\n        "returnInfo": {\n          "daysToReturn": 0,\n          "isReturnable": false,\n          "policyUrl": ""\n        },\n        "shippingDetails": {\n          "deliverByDate": "",\n          "method": {\n            "carrier": "",\n            "maxDaysInTransit": 0,\n            "methodName": "",\n            "minDaysInTransit": 0\n          },\n          "shipByDate": "",\n          "type": ""\n        },\n        "unitTax": {}\n      }\n    ],\n    "notificationMode": "",\n    "paymentMethod": {\n      "expirationMonth": 0,\n      "expirationYear": 0,\n      "lastFourDigits": "",\n      "predefinedBillingAddress": "",\n      "type": ""\n    },\n    "predefinedDeliveryAddress": "",\n    "predefinedPickupDetails": "",\n    "promotions": [\n      {\n        "benefits": [\n          {\n            "discount": {},\n            "offerIds": [],\n            "subType": "",\n            "taxImpact": {},\n            "type": ""\n          }\n        ],\n        "effectiveDates": "",\n        "genericRedemptionCode": "",\n        "id": "",\n        "longTitle": "",\n        "productApplicability": "",\n        "redemptionChannel": ""\n      }\n    ],\n    "shippingCost": {},\n    "shippingCostTax": {},\n    "shippingOption": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/testorders
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "country": "",
  "templateName": "",
  "testOrder": [
    "customer": [
      "email": "",
      "explicitMarketingPreference": false,
      "fullName": "",
      "marketingRightsInfo": [
        "explicitMarketingPreference": "",
        "lastUpdatedTimestamp": ""
      ]
    ],
    "enableOrderinvoices": false,
    "kind": "",
    "lineItems": [
      [
        "product": [
          "brand": "",
          "channel": "",
          "condition": "",
          "contentLanguage": "",
          "fees": [
            [
              "amount": [
                "currency": "",
                "value": ""
              ],
              "name": ""
            ]
          ],
          "gtin": "",
          "imageLink": "",
          "itemGroupId": "",
          "mpn": "",
          "offerId": "",
          "price": [],
          "targetCountry": "",
          "title": "",
          "variantAttributes": [
            [
              "dimension": "",
              "value": ""
            ]
          ]
        ],
        "quantityOrdered": 0,
        "returnInfo": [
          "daysToReturn": 0,
          "isReturnable": false,
          "policyUrl": ""
        ],
        "shippingDetails": [
          "deliverByDate": "",
          "method": [
            "carrier": "",
            "maxDaysInTransit": 0,
            "methodName": "",
            "minDaysInTransit": 0
          ],
          "shipByDate": "",
          "type": ""
        ],
        "unitTax": []
      ]
    ],
    "notificationMode": "",
    "paymentMethod": [
      "expirationMonth": 0,
      "expirationYear": 0,
      "lastFourDigits": "",
      "predefinedBillingAddress": "",
      "type": ""
    ],
    "predefinedDeliveryAddress": "",
    "predefinedPickupDetails": "",
    "promotions": [
      [
        "benefits": [
          [
            "discount": [],
            "offerIds": [],
            "subType": "",
            "taxImpact": [],
            "type": ""
          ]
        ],
        "effectiveDates": "",
        "genericRedemptionCode": "",
        "id": "",
        "longTitle": "",
        "productApplicability": "",
        "redemptionChannel": ""
      ]
    ],
    "shippingCost": [],
    "shippingCostTax": [],
    "shippingOption": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/testorders")! 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()
POST content.orders.createtestreturn
{{baseUrl}}/:merchantId/orders/:orderId/testreturn
QUERY PARAMS

merchantId
orderId
BODY json

{
  "items": [
    {
      "lineItemId": "",
      "quantity": 0
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/testreturn");

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  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/testreturn" {:content-type :json
                                                                                   :form-params {:items [{:lineItemId ""
                                                                                                          :quantity 0}]}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/testreturn"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/orders/:orderId/testreturn"),
    Content = new StringContent("{\n  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/orders/:orderId/testreturn");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/testreturn"

	payload := strings.NewReader("{\n  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:merchantId/orders/:orderId/testreturn HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 76

{
  "items": [
    {
      "lineItemId": "",
      "quantity": 0
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/testreturn")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/testreturn"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/testreturn")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/testreturn")
  .header("content-type", "application/json")
  .body("{\n  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  items: [
    {
      lineItemId: '',
      quantity: 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}}/:merchantId/orders/:orderId/testreturn');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/testreturn',
  headers: {'content-type': 'application/json'},
  data: {items: [{lineItemId: '', quantity: 0}]}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/testreturn';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"items":[{"lineItemId":"","quantity":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}}/:merchantId/orders/:orderId/testreturn',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "items": [\n    {\n      "lineItemId": "",\n      "quantity": 0\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/testreturn")
  .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/:merchantId/orders/:orderId/testreturn',
  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({items: [{lineItemId: '', quantity: 0}]}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/testreturn',
  headers: {'content-type': 'application/json'},
  body: {items: [{lineItemId: '', quantity: 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}}/:merchantId/orders/:orderId/testreturn');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  items: [
    {
      lineItemId: '',
      quantity: 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}}/:merchantId/orders/:orderId/testreturn',
  headers: {'content-type': 'application/json'},
  data: {items: [{lineItemId: '', quantity: 0}]}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/testreturn';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"items":[{"lineItemId":"","quantity":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 = @{ @"items": @[ @{ @"lineItemId": @"", @"quantity": @0 } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/testreturn"]
                                                       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}}/:merchantId/orders/:orderId/testreturn" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/testreturn",
  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([
    'items' => [
        [
                'lineItemId' => '',
                'quantity' => 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}}/:merchantId/orders/:orderId/testreturn', [
  'body' => '{
  "items": [
    {
      "lineItemId": "",
      "quantity": 0
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/testreturn');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'items' => [
    [
        'lineItemId' => '',
        'quantity' => 0
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'items' => [
    [
        'lineItemId' => '',
        'quantity' => 0
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/testreturn');
$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}}/:merchantId/orders/:orderId/testreturn' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "items": [
    {
      "lineItemId": "",
      "quantity": 0
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/testreturn' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "items": [
    {
      "lineItemId": "",
      "quantity": 0
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/testreturn", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/testreturn"

payload = { "items": [
        {
            "lineItemId": "",
            "quantity": 0
        }
    ] }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/testreturn"

payload <- "{\n  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/orders/:orderId/testreturn")

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  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:merchantId/orders/:orderId/testreturn') do |req|
  req.body = "{\n  \"items\": [\n    {\n      \"lineItemId\": \"\",\n      \"quantity\": 0\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/testreturn";

    let payload = json!({"items": (
            json!({
                "lineItemId": "",
                "quantity": 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}}/:merchantId/orders/:orderId/testreturn \
  --header 'content-type: application/json' \
  --data '{
  "items": [
    {
      "lineItemId": "",
      "quantity": 0
    }
  ]
}'
echo '{
  "items": [
    {
      "lineItemId": "",
      "quantity": 0
    }
  ]
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/testreturn \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "items": [\n    {\n      "lineItemId": "",\n      "quantity": 0\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/testreturn
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["items": [
    [
      "lineItemId": "",
      "quantity": 0
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/testreturn")! 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()
POST content.orders.custombatch
{{baseUrl}}/orders/batch
BODY json

{
  "entries": [
    {
      "batchId": 0,
      "cancel": {
        "reason": "",
        "reasonText": ""
      },
      "cancelLineItem": {
        "amount": {
          "currency": "",
          "value": ""
        },
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "inStoreRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "merchantId": "",
      "merchantOrderId": "",
      "method": "",
      "operationId": "",
      "orderId": "",
      "refund": {
        "amount": {},
        "amountPretax": {},
        "amountTax": {},
        "reason": "",
        "reasonText": ""
      },
      "rejectReturnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "setLineItemMetadata": {
        "annotations": [
          {
            "key": "",
            "value": ""
          }
        ],
        "lineItemId": "",
        "productId": ""
      },
      "shipLineItems": {
        "carrier": "",
        "lineItems": [
          {
            "lineItemId": "",
            "productId": "",
            "quantity": 0
          }
        ],
        "shipmentGroupId": "",
        "shipmentId": "",
        "shipmentInfos": [
          {
            "carrier": "",
            "shipmentId": "",
            "trackingId": ""
          }
        ],
        "trackingId": ""
      },
      "updateLineItemShippingDetails": {
        "deliverByDate": "",
        "lineItemId": "",
        "productId": "",
        "shipByDate": ""
      },
      "updateShipment": {
        "carrier": "",
        "deliveryDate": "",
        "shipmentId": "",
        "status": "",
        "trackingId": ""
      }
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/orders/batch");

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  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/orders/batch" {:content-type :json
                                                         :form-params {:entries [{:batchId 0
                                                                                  :cancel {:reason ""
                                                                                           :reasonText ""}
                                                                                  :cancelLineItem {:amount {:currency ""
                                                                                                            :value ""}
                                                                                                   :amountPretax {}
                                                                                                   :amountTax {}
                                                                                                   :lineItemId ""
                                                                                                   :productId ""
                                                                                                   :quantity 0
                                                                                                   :reason ""
                                                                                                   :reasonText ""}
                                                                                  :inStoreRefundLineItem {:amountPretax {}
                                                                                                          :amountTax {}
                                                                                                          :lineItemId ""
                                                                                                          :productId ""
                                                                                                          :quantity 0
                                                                                                          :reason ""
                                                                                                          :reasonText ""}
                                                                                  :merchantId ""
                                                                                  :merchantOrderId ""
                                                                                  :method ""
                                                                                  :operationId ""
                                                                                  :orderId ""
                                                                                  :refund {:amount {}
                                                                                           :amountPretax {}
                                                                                           :amountTax {}
                                                                                           :reason ""
                                                                                           :reasonText ""}
                                                                                  :rejectReturnLineItem {:lineItemId ""
                                                                                                         :productId ""
                                                                                                         :quantity 0
                                                                                                         :reason ""
                                                                                                         :reasonText ""}
                                                                                  :returnLineItem {:lineItemId ""
                                                                                                   :productId ""
                                                                                                   :quantity 0
                                                                                                   :reason ""
                                                                                                   :reasonText ""}
                                                                                  :returnRefundLineItem {:amountPretax {}
                                                                                                         :amountTax {}
                                                                                                         :lineItemId ""
                                                                                                         :productId ""
                                                                                                         :quantity 0
                                                                                                         :reason ""
                                                                                                         :reasonText ""}
                                                                                  :setLineItemMetadata {:annotations [{:key ""
                                                                                                                       :value ""}]
                                                                                                        :lineItemId ""
                                                                                                        :productId ""}
                                                                                  :shipLineItems {:carrier ""
                                                                                                  :lineItems [{:lineItemId ""
                                                                                                               :productId ""
                                                                                                               :quantity 0}]
                                                                                                  :shipmentGroupId ""
                                                                                                  :shipmentId ""
                                                                                                  :shipmentInfos [{:carrier ""
                                                                                                                   :shipmentId ""
                                                                                                                   :trackingId ""}]
                                                                                                  :trackingId ""}
                                                                                  :updateLineItemShippingDetails {:deliverByDate ""
                                                                                                                  :lineItemId ""
                                                                                                                  :productId ""
                                                                                                                  :shipByDate ""}
                                                                                  :updateShipment {:carrier ""
                                                                                                   :deliveryDate ""
                                                                                                   :shipmentId ""
                                                                                                   :status ""
                                                                                                   :trackingId ""}}]}})
require "http/client"

url = "{{baseUrl}}/orders/batch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/orders/batch"),
    Content = new StringContent("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/orders/batch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/orders/batch"

	payload := strings.NewReader("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/orders/batch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2373

{
  "entries": [
    {
      "batchId": 0,
      "cancel": {
        "reason": "",
        "reasonText": ""
      },
      "cancelLineItem": {
        "amount": {
          "currency": "",
          "value": ""
        },
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "inStoreRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "merchantId": "",
      "merchantOrderId": "",
      "method": "",
      "operationId": "",
      "orderId": "",
      "refund": {
        "amount": {},
        "amountPretax": {},
        "amountTax": {},
        "reason": "",
        "reasonText": ""
      },
      "rejectReturnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "setLineItemMetadata": {
        "annotations": [
          {
            "key": "",
            "value": ""
          }
        ],
        "lineItemId": "",
        "productId": ""
      },
      "shipLineItems": {
        "carrier": "",
        "lineItems": [
          {
            "lineItemId": "",
            "productId": "",
            "quantity": 0
          }
        ],
        "shipmentGroupId": "",
        "shipmentId": "",
        "shipmentInfos": [
          {
            "carrier": "",
            "shipmentId": "",
            "trackingId": ""
          }
        ],
        "trackingId": ""
      },
      "updateLineItemShippingDetails": {
        "deliverByDate": "",
        "lineItemId": "",
        "productId": "",
        "shipByDate": ""
      },
      "updateShipment": {
        "carrier": "",
        "deliveryDate": "",
        "shipmentId": "",
        "status": "",
        "trackingId": ""
      }
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/orders/batch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/orders/batch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/orders/batch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/orders/batch")
  .header("content-type", "application/json")
  .body("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  entries: [
    {
      batchId: 0,
      cancel: {
        reason: '',
        reasonText: ''
      },
      cancelLineItem: {
        amount: {
          currency: '',
          value: ''
        },
        amountPretax: {},
        amountTax: {},
        lineItemId: '',
        productId: '',
        quantity: 0,
        reason: '',
        reasonText: ''
      },
      inStoreRefundLineItem: {
        amountPretax: {},
        amountTax: {},
        lineItemId: '',
        productId: '',
        quantity: 0,
        reason: '',
        reasonText: ''
      },
      merchantId: '',
      merchantOrderId: '',
      method: '',
      operationId: '',
      orderId: '',
      refund: {
        amount: {},
        amountPretax: {},
        amountTax: {},
        reason: '',
        reasonText: ''
      },
      rejectReturnLineItem: {
        lineItemId: '',
        productId: '',
        quantity: 0,
        reason: '',
        reasonText: ''
      },
      returnLineItem: {
        lineItemId: '',
        productId: '',
        quantity: 0,
        reason: '',
        reasonText: ''
      },
      returnRefundLineItem: {
        amountPretax: {},
        amountTax: {},
        lineItemId: '',
        productId: '',
        quantity: 0,
        reason: '',
        reasonText: ''
      },
      setLineItemMetadata: {
        annotations: [
          {
            key: '',
            value: ''
          }
        ],
        lineItemId: '',
        productId: ''
      },
      shipLineItems: {
        carrier: '',
        lineItems: [
          {
            lineItemId: '',
            productId: '',
            quantity: 0
          }
        ],
        shipmentGroupId: '',
        shipmentId: '',
        shipmentInfos: [
          {
            carrier: '',
            shipmentId: '',
            trackingId: ''
          }
        ],
        trackingId: ''
      },
      updateLineItemShippingDetails: {
        deliverByDate: '',
        lineItemId: '',
        productId: '',
        shipByDate: ''
      },
      updateShipment: {
        carrier: '',
        deliveryDate: '',
        shipmentId: '',
        status: '',
        trackingId: ''
      }
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/orders/batch');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/orders/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        batchId: 0,
        cancel: {reason: '', reasonText: ''},
        cancelLineItem: {
          amount: {currency: '', value: ''},
          amountPretax: {},
          amountTax: {},
          lineItemId: '',
          productId: '',
          quantity: 0,
          reason: '',
          reasonText: ''
        },
        inStoreRefundLineItem: {
          amountPretax: {},
          amountTax: {},
          lineItemId: '',
          productId: '',
          quantity: 0,
          reason: '',
          reasonText: ''
        },
        merchantId: '',
        merchantOrderId: '',
        method: '',
        operationId: '',
        orderId: '',
        refund: {amount: {}, amountPretax: {}, amountTax: {}, reason: '', reasonText: ''},
        rejectReturnLineItem: {lineItemId: '', productId: '', quantity: 0, reason: '', reasonText: ''},
        returnLineItem: {lineItemId: '', productId: '', quantity: 0, reason: '', reasonText: ''},
        returnRefundLineItem: {
          amountPretax: {},
          amountTax: {},
          lineItemId: '',
          productId: '',
          quantity: 0,
          reason: '',
          reasonText: ''
        },
        setLineItemMetadata: {annotations: [{key: '', value: ''}], lineItemId: '', productId: ''},
        shipLineItems: {
          carrier: '',
          lineItems: [{lineItemId: '', productId: '', quantity: 0}],
          shipmentGroupId: '',
          shipmentId: '',
          shipmentInfos: [{carrier: '', shipmentId: '', trackingId: ''}],
          trackingId: ''
        },
        updateLineItemShippingDetails: {deliverByDate: '', lineItemId: '', productId: '', shipByDate: ''},
        updateShipment: {carrier: '', deliveryDate: '', shipmentId: '', status: '', trackingId: ''}
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/orders/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"batchId":0,"cancel":{"reason":"","reasonText":""},"cancelLineItem":{"amount":{"currency":"","value":""},"amountPretax":{},"amountTax":{},"lineItemId":"","productId":"","quantity":0,"reason":"","reasonText":""},"inStoreRefundLineItem":{"amountPretax":{},"amountTax":{},"lineItemId":"","productId":"","quantity":0,"reason":"","reasonText":""},"merchantId":"","merchantOrderId":"","method":"","operationId":"","orderId":"","refund":{"amount":{},"amountPretax":{},"amountTax":{},"reason":"","reasonText":""},"rejectReturnLineItem":{"lineItemId":"","productId":"","quantity":0,"reason":"","reasonText":""},"returnLineItem":{"lineItemId":"","productId":"","quantity":0,"reason":"","reasonText":""},"returnRefundLineItem":{"amountPretax":{},"amountTax":{},"lineItemId":"","productId":"","quantity":0,"reason":"","reasonText":""},"setLineItemMetadata":{"annotations":[{"key":"","value":""}],"lineItemId":"","productId":""},"shipLineItems":{"carrier":"","lineItems":[{"lineItemId":"","productId":"","quantity":0}],"shipmentGroupId":"","shipmentId":"","shipmentInfos":[{"carrier":"","shipmentId":"","trackingId":""}],"trackingId":""},"updateLineItemShippingDetails":{"deliverByDate":"","lineItemId":"","productId":"","shipByDate":""},"updateShipment":{"carrier":"","deliveryDate":"","shipmentId":"","status":"","trackingId":""}}]}'
};

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}}/orders/batch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entries": [\n    {\n      "batchId": 0,\n      "cancel": {\n        "reason": "",\n        "reasonText": ""\n      },\n      "cancelLineItem": {\n        "amount": {\n          "currency": "",\n          "value": ""\n        },\n        "amountPretax": {},\n        "amountTax": {},\n        "lineItemId": "",\n        "productId": "",\n        "quantity": 0,\n        "reason": "",\n        "reasonText": ""\n      },\n      "inStoreRefundLineItem": {\n        "amountPretax": {},\n        "amountTax": {},\n        "lineItemId": "",\n        "productId": "",\n        "quantity": 0,\n        "reason": "",\n        "reasonText": ""\n      },\n      "merchantId": "",\n      "merchantOrderId": "",\n      "method": "",\n      "operationId": "",\n      "orderId": "",\n      "refund": {\n        "amount": {},\n        "amountPretax": {},\n        "amountTax": {},\n        "reason": "",\n        "reasonText": ""\n      },\n      "rejectReturnLineItem": {\n        "lineItemId": "",\n        "productId": "",\n        "quantity": 0,\n        "reason": "",\n        "reasonText": ""\n      },\n      "returnLineItem": {\n        "lineItemId": "",\n        "productId": "",\n        "quantity": 0,\n        "reason": "",\n        "reasonText": ""\n      },\n      "returnRefundLineItem": {\n        "amountPretax": {},\n        "amountTax": {},\n        "lineItemId": "",\n        "productId": "",\n        "quantity": 0,\n        "reason": "",\n        "reasonText": ""\n      },\n      "setLineItemMetadata": {\n        "annotations": [\n          {\n            "key": "",\n            "value": ""\n          }\n        ],\n        "lineItemId": "",\n        "productId": ""\n      },\n      "shipLineItems": {\n        "carrier": "",\n        "lineItems": [\n          {\n            "lineItemId": "",\n            "productId": "",\n            "quantity": 0\n          }\n        ],\n        "shipmentGroupId": "",\n        "shipmentId": "",\n        "shipmentInfos": [\n          {\n            "carrier": "",\n            "shipmentId": "",\n            "trackingId": ""\n          }\n        ],\n        "trackingId": ""\n      },\n      "updateLineItemShippingDetails": {\n        "deliverByDate": "",\n        "lineItemId": "",\n        "productId": "",\n        "shipByDate": ""\n      },\n      "updateShipment": {\n        "carrier": "",\n        "deliveryDate": "",\n        "shipmentId": "",\n        "status": "",\n        "trackingId": ""\n      }\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/orders/batch")
  .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/orders/batch',
  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({
  entries: [
    {
      batchId: 0,
      cancel: {reason: '', reasonText: ''},
      cancelLineItem: {
        amount: {currency: '', value: ''},
        amountPretax: {},
        amountTax: {},
        lineItemId: '',
        productId: '',
        quantity: 0,
        reason: '',
        reasonText: ''
      },
      inStoreRefundLineItem: {
        amountPretax: {},
        amountTax: {},
        lineItemId: '',
        productId: '',
        quantity: 0,
        reason: '',
        reasonText: ''
      },
      merchantId: '',
      merchantOrderId: '',
      method: '',
      operationId: '',
      orderId: '',
      refund: {amount: {}, amountPretax: {}, amountTax: {}, reason: '', reasonText: ''},
      rejectReturnLineItem: {lineItemId: '', productId: '', quantity: 0, reason: '', reasonText: ''},
      returnLineItem: {lineItemId: '', productId: '', quantity: 0, reason: '', reasonText: ''},
      returnRefundLineItem: {
        amountPretax: {},
        amountTax: {},
        lineItemId: '',
        productId: '',
        quantity: 0,
        reason: '',
        reasonText: ''
      },
      setLineItemMetadata: {annotations: [{key: '', value: ''}], lineItemId: '', productId: ''},
      shipLineItems: {
        carrier: '',
        lineItems: [{lineItemId: '', productId: '', quantity: 0}],
        shipmentGroupId: '',
        shipmentId: '',
        shipmentInfos: [{carrier: '', shipmentId: '', trackingId: ''}],
        trackingId: ''
      },
      updateLineItemShippingDetails: {deliverByDate: '', lineItemId: '', productId: '', shipByDate: ''},
      updateShipment: {carrier: '', deliveryDate: '', shipmentId: '', status: '', trackingId: ''}
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/orders/batch',
  headers: {'content-type': 'application/json'},
  body: {
    entries: [
      {
        batchId: 0,
        cancel: {reason: '', reasonText: ''},
        cancelLineItem: {
          amount: {currency: '', value: ''},
          amountPretax: {},
          amountTax: {},
          lineItemId: '',
          productId: '',
          quantity: 0,
          reason: '',
          reasonText: ''
        },
        inStoreRefundLineItem: {
          amountPretax: {},
          amountTax: {},
          lineItemId: '',
          productId: '',
          quantity: 0,
          reason: '',
          reasonText: ''
        },
        merchantId: '',
        merchantOrderId: '',
        method: '',
        operationId: '',
        orderId: '',
        refund: {amount: {}, amountPretax: {}, amountTax: {}, reason: '', reasonText: ''},
        rejectReturnLineItem: {lineItemId: '', productId: '', quantity: 0, reason: '', reasonText: ''},
        returnLineItem: {lineItemId: '', productId: '', quantity: 0, reason: '', reasonText: ''},
        returnRefundLineItem: {
          amountPretax: {},
          amountTax: {},
          lineItemId: '',
          productId: '',
          quantity: 0,
          reason: '',
          reasonText: ''
        },
        setLineItemMetadata: {annotations: [{key: '', value: ''}], lineItemId: '', productId: ''},
        shipLineItems: {
          carrier: '',
          lineItems: [{lineItemId: '', productId: '', quantity: 0}],
          shipmentGroupId: '',
          shipmentId: '',
          shipmentInfos: [{carrier: '', shipmentId: '', trackingId: ''}],
          trackingId: ''
        },
        updateLineItemShippingDetails: {deliverByDate: '', lineItemId: '', productId: '', shipByDate: ''},
        updateShipment: {carrier: '', deliveryDate: '', shipmentId: '', status: '', trackingId: ''}
      }
    ]
  },
  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}}/orders/batch');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  entries: [
    {
      batchId: 0,
      cancel: {
        reason: '',
        reasonText: ''
      },
      cancelLineItem: {
        amount: {
          currency: '',
          value: ''
        },
        amountPretax: {},
        amountTax: {},
        lineItemId: '',
        productId: '',
        quantity: 0,
        reason: '',
        reasonText: ''
      },
      inStoreRefundLineItem: {
        amountPretax: {},
        amountTax: {},
        lineItemId: '',
        productId: '',
        quantity: 0,
        reason: '',
        reasonText: ''
      },
      merchantId: '',
      merchantOrderId: '',
      method: '',
      operationId: '',
      orderId: '',
      refund: {
        amount: {},
        amountPretax: {},
        amountTax: {},
        reason: '',
        reasonText: ''
      },
      rejectReturnLineItem: {
        lineItemId: '',
        productId: '',
        quantity: 0,
        reason: '',
        reasonText: ''
      },
      returnLineItem: {
        lineItemId: '',
        productId: '',
        quantity: 0,
        reason: '',
        reasonText: ''
      },
      returnRefundLineItem: {
        amountPretax: {},
        amountTax: {},
        lineItemId: '',
        productId: '',
        quantity: 0,
        reason: '',
        reasonText: ''
      },
      setLineItemMetadata: {
        annotations: [
          {
            key: '',
            value: ''
          }
        ],
        lineItemId: '',
        productId: ''
      },
      shipLineItems: {
        carrier: '',
        lineItems: [
          {
            lineItemId: '',
            productId: '',
            quantity: 0
          }
        ],
        shipmentGroupId: '',
        shipmentId: '',
        shipmentInfos: [
          {
            carrier: '',
            shipmentId: '',
            trackingId: ''
          }
        ],
        trackingId: ''
      },
      updateLineItemShippingDetails: {
        deliverByDate: '',
        lineItemId: '',
        productId: '',
        shipByDate: ''
      },
      updateShipment: {
        carrier: '',
        deliveryDate: '',
        shipmentId: '',
        status: '',
        trackingId: ''
      }
    }
  ]
});

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}}/orders/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        batchId: 0,
        cancel: {reason: '', reasonText: ''},
        cancelLineItem: {
          amount: {currency: '', value: ''},
          amountPretax: {},
          amountTax: {},
          lineItemId: '',
          productId: '',
          quantity: 0,
          reason: '',
          reasonText: ''
        },
        inStoreRefundLineItem: {
          amountPretax: {},
          amountTax: {},
          lineItemId: '',
          productId: '',
          quantity: 0,
          reason: '',
          reasonText: ''
        },
        merchantId: '',
        merchantOrderId: '',
        method: '',
        operationId: '',
        orderId: '',
        refund: {amount: {}, amountPretax: {}, amountTax: {}, reason: '', reasonText: ''},
        rejectReturnLineItem: {lineItemId: '', productId: '', quantity: 0, reason: '', reasonText: ''},
        returnLineItem: {lineItemId: '', productId: '', quantity: 0, reason: '', reasonText: ''},
        returnRefundLineItem: {
          amountPretax: {},
          amountTax: {},
          lineItemId: '',
          productId: '',
          quantity: 0,
          reason: '',
          reasonText: ''
        },
        setLineItemMetadata: {annotations: [{key: '', value: ''}], lineItemId: '', productId: ''},
        shipLineItems: {
          carrier: '',
          lineItems: [{lineItemId: '', productId: '', quantity: 0}],
          shipmentGroupId: '',
          shipmentId: '',
          shipmentInfos: [{carrier: '', shipmentId: '', trackingId: ''}],
          trackingId: ''
        },
        updateLineItemShippingDetails: {deliverByDate: '', lineItemId: '', productId: '', shipByDate: ''},
        updateShipment: {carrier: '', deliveryDate: '', shipmentId: '', status: '', trackingId: ''}
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/orders/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"batchId":0,"cancel":{"reason":"","reasonText":""},"cancelLineItem":{"amount":{"currency":"","value":""},"amountPretax":{},"amountTax":{},"lineItemId":"","productId":"","quantity":0,"reason":"","reasonText":""},"inStoreRefundLineItem":{"amountPretax":{},"amountTax":{},"lineItemId":"","productId":"","quantity":0,"reason":"","reasonText":""},"merchantId":"","merchantOrderId":"","method":"","operationId":"","orderId":"","refund":{"amount":{},"amountPretax":{},"amountTax":{},"reason":"","reasonText":""},"rejectReturnLineItem":{"lineItemId":"","productId":"","quantity":0,"reason":"","reasonText":""},"returnLineItem":{"lineItemId":"","productId":"","quantity":0,"reason":"","reasonText":""},"returnRefundLineItem":{"amountPretax":{},"amountTax":{},"lineItemId":"","productId":"","quantity":0,"reason":"","reasonText":""},"setLineItemMetadata":{"annotations":[{"key":"","value":""}],"lineItemId":"","productId":""},"shipLineItems":{"carrier":"","lineItems":[{"lineItemId":"","productId":"","quantity":0}],"shipmentGroupId":"","shipmentId":"","shipmentInfos":[{"carrier":"","shipmentId":"","trackingId":""}],"trackingId":""},"updateLineItemShippingDetails":{"deliverByDate":"","lineItemId":"","productId":"","shipByDate":""},"updateShipment":{"carrier":"","deliveryDate":"","shipmentId":"","status":"","trackingId":""}}]}'
};

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 = @{ @"entries": @[ @{ @"batchId": @0, @"cancel": @{ @"reason": @"", @"reasonText": @"" }, @"cancelLineItem": @{ @"amount": @{ @"currency": @"", @"value": @"" }, @"amountPretax": @{  }, @"amountTax": @{  }, @"lineItemId": @"", @"productId": @"", @"quantity": @0, @"reason": @"", @"reasonText": @"" }, @"inStoreRefundLineItem": @{ @"amountPretax": @{  }, @"amountTax": @{  }, @"lineItemId": @"", @"productId": @"", @"quantity": @0, @"reason": @"", @"reasonText": @"" }, @"merchantId": @"", @"merchantOrderId": @"", @"method": @"", @"operationId": @"", @"orderId": @"", @"refund": @{ @"amount": @{  }, @"amountPretax": @{  }, @"amountTax": @{  }, @"reason": @"", @"reasonText": @"" }, @"rejectReturnLineItem": @{ @"lineItemId": @"", @"productId": @"", @"quantity": @0, @"reason": @"", @"reasonText": @"" }, @"returnLineItem": @{ @"lineItemId": @"", @"productId": @"", @"quantity": @0, @"reason": @"", @"reasonText": @"" }, @"returnRefundLineItem": @{ @"amountPretax": @{  }, @"amountTax": @{  }, @"lineItemId": @"", @"productId": @"", @"quantity": @0, @"reason": @"", @"reasonText": @"" }, @"setLineItemMetadata": @{ @"annotations": @[ @{ @"key": @"", @"value": @"" } ], @"lineItemId": @"", @"productId": @"" }, @"shipLineItems": @{ @"carrier": @"", @"lineItems": @[ @{ @"lineItemId": @"", @"productId": @"", @"quantity": @0 } ], @"shipmentGroupId": @"", @"shipmentId": @"", @"shipmentInfos": @[ @{ @"carrier": @"", @"shipmentId": @"", @"trackingId": @"" } ], @"trackingId": @"" }, @"updateLineItemShippingDetails": @{ @"deliverByDate": @"", @"lineItemId": @"", @"productId": @"", @"shipByDate": @"" }, @"updateShipment": @{ @"carrier": @"", @"deliveryDate": @"", @"shipmentId": @"", @"status": @"", @"trackingId": @"" } } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/orders/batch"]
                                                       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}}/orders/batch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/orders/batch",
  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([
    'entries' => [
        [
                'batchId' => 0,
                'cancel' => [
                                'reason' => '',
                                'reasonText' => ''
                ],
                'cancelLineItem' => [
                                'amount' => [
                                                                'currency' => '',
                                                                'value' => ''
                                ],
                                'amountPretax' => [
                                                                
                                ],
                                'amountTax' => [
                                                                
                                ],
                                'lineItemId' => '',
                                'productId' => '',
                                'quantity' => 0,
                                'reason' => '',
                                'reasonText' => ''
                ],
                'inStoreRefundLineItem' => [
                                'amountPretax' => [
                                                                
                                ],
                                'amountTax' => [
                                                                
                                ],
                                'lineItemId' => '',
                                'productId' => '',
                                'quantity' => 0,
                                'reason' => '',
                                'reasonText' => ''
                ],
                'merchantId' => '',
                'merchantOrderId' => '',
                'method' => '',
                'operationId' => '',
                'orderId' => '',
                'refund' => [
                                'amount' => [
                                                                
                                ],
                                'amountPretax' => [
                                                                
                                ],
                                'amountTax' => [
                                                                
                                ],
                                'reason' => '',
                                'reasonText' => ''
                ],
                'rejectReturnLineItem' => [
                                'lineItemId' => '',
                                'productId' => '',
                                'quantity' => 0,
                                'reason' => '',
                                'reasonText' => ''
                ],
                'returnLineItem' => [
                                'lineItemId' => '',
                                'productId' => '',
                                'quantity' => 0,
                                'reason' => '',
                                'reasonText' => ''
                ],
                'returnRefundLineItem' => [
                                'amountPretax' => [
                                                                
                                ],
                                'amountTax' => [
                                                                
                                ],
                                'lineItemId' => '',
                                'productId' => '',
                                'quantity' => 0,
                                'reason' => '',
                                'reasonText' => ''
                ],
                'setLineItemMetadata' => [
                                'annotations' => [
                                                                [
                                                                                                                                'key' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'lineItemId' => '',
                                'productId' => ''
                ],
                'shipLineItems' => [
                                'carrier' => '',
                                'lineItems' => [
                                                                [
                                                                                                                                'lineItemId' => '',
                                                                                                                                'productId' => '',
                                                                                                                                'quantity' => 0
                                                                ]
                                ],
                                'shipmentGroupId' => '',
                                'shipmentId' => '',
                                'shipmentInfos' => [
                                                                [
                                                                                                                                'carrier' => '',
                                                                                                                                'shipmentId' => '',
                                                                                                                                'trackingId' => ''
                                                                ]
                                ],
                                'trackingId' => ''
                ],
                'updateLineItemShippingDetails' => [
                                'deliverByDate' => '',
                                'lineItemId' => '',
                                'productId' => '',
                                'shipByDate' => ''
                ],
                'updateShipment' => [
                                'carrier' => '',
                                'deliveryDate' => '',
                                'shipmentId' => '',
                                'status' => '',
                                'trackingId' => ''
                ]
        ]
    ]
  ]),
  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}}/orders/batch', [
  'body' => '{
  "entries": [
    {
      "batchId": 0,
      "cancel": {
        "reason": "",
        "reasonText": ""
      },
      "cancelLineItem": {
        "amount": {
          "currency": "",
          "value": ""
        },
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "inStoreRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "merchantId": "",
      "merchantOrderId": "",
      "method": "",
      "operationId": "",
      "orderId": "",
      "refund": {
        "amount": {},
        "amountPretax": {},
        "amountTax": {},
        "reason": "",
        "reasonText": ""
      },
      "rejectReturnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "setLineItemMetadata": {
        "annotations": [
          {
            "key": "",
            "value": ""
          }
        ],
        "lineItemId": "",
        "productId": ""
      },
      "shipLineItems": {
        "carrier": "",
        "lineItems": [
          {
            "lineItemId": "",
            "productId": "",
            "quantity": 0
          }
        ],
        "shipmentGroupId": "",
        "shipmentId": "",
        "shipmentInfos": [
          {
            "carrier": "",
            "shipmentId": "",
            "trackingId": ""
          }
        ],
        "trackingId": ""
      },
      "updateLineItemShippingDetails": {
        "deliverByDate": "",
        "lineItemId": "",
        "productId": "",
        "shipByDate": ""
      },
      "updateShipment": {
        "carrier": "",
        "deliveryDate": "",
        "shipmentId": "",
        "status": "",
        "trackingId": ""
      }
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/orders/batch');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entries' => [
    [
        'batchId' => 0,
        'cancel' => [
                'reason' => '',
                'reasonText' => ''
        ],
        'cancelLineItem' => [
                'amount' => [
                                'currency' => '',
                                'value' => ''
                ],
                'amountPretax' => [
                                
                ],
                'amountTax' => [
                                
                ],
                'lineItemId' => '',
                'productId' => '',
                'quantity' => 0,
                'reason' => '',
                'reasonText' => ''
        ],
        'inStoreRefundLineItem' => [
                'amountPretax' => [
                                
                ],
                'amountTax' => [
                                
                ],
                'lineItemId' => '',
                'productId' => '',
                'quantity' => 0,
                'reason' => '',
                'reasonText' => ''
        ],
        'merchantId' => '',
        'merchantOrderId' => '',
        'method' => '',
        'operationId' => '',
        'orderId' => '',
        'refund' => [
                'amount' => [
                                
                ],
                'amountPretax' => [
                                
                ],
                'amountTax' => [
                                
                ],
                'reason' => '',
                'reasonText' => ''
        ],
        'rejectReturnLineItem' => [
                'lineItemId' => '',
                'productId' => '',
                'quantity' => 0,
                'reason' => '',
                'reasonText' => ''
        ],
        'returnLineItem' => [
                'lineItemId' => '',
                'productId' => '',
                'quantity' => 0,
                'reason' => '',
                'reasonText' => ''
        ],
        'returnRefundLineItem' => [
                'amountPretax' => [
                                
                ],
                'amountTax' => [
                                
                ],
                'lineItemId' => '',
                'productId' => '',
                'quantity' => 0,
                'reason' => '',
                'reasonText' => ''
        ],
        'setLineItemMetadata' => [
                'annotations' => [
                                [
                                                                'key' => '',
                                                                'value' => ''
                                ]
                ],
                'lineItemId' => '',
                'productId' => ''
        ],
        'shipLineItems' => [
                'carrier' => '',
                'lineItems' => [
                                [
                                                                'lineItemId' => '',
                                                                'productId' => '',
                                                                'quantity' => 0
                                ]
                ],
                'shipmentGroupId' => '',
                'shipmentId' => '',
                'shipmentInfos' => [
                                [
                                                                'carrier' => '',
                                                                'shipmentId' => '',
                                                                'trackingId' => ''
                                ]
                ],
                'trackingId' => ''
        ],
        'updateLineItemShippingDetails' => [
                'deliverByDate' => '',
                'lineItemId' => '',
                'productId' => '',
                'shipByDate' => ''
        ],
        'updateShipment' => [
                'carrier' => '',
                'deliveryDate' => '',
                'shipmentId' => '',
                'status' => '',
                'trackingId' => ''
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'entries' => [
    [
        'batchId' => 0,
        'cancel' => [
                'reason' => '',
                'reasonText' => ''
        ],
        'cancelLineItem' => [
                'amount' => [
                                'currency' => '',
                                'value' => ''
                ],
                'amountPretax' => [
                                
                ],
                'amountTax' => [
                                
                ],
                'lineItemId' => '',
                'productId' => '',
                'quantity' => 0,
                'reason' => '',
                'reasonText' => ''
        ],
        'inStoreRefundLineItem' => [
                'amountPretax' => [
                                
                ],
                'amountTax' => [
                                
                ],
                'lineItemId' => '',
                'productId' => '',
                'quantity' => 0,
                'reason' => '',
                'reasonText' => ''
        ],
        'merchantId' => '',
        'merchantOrderId' => '',
        'method' => '',
        'operationId' => '',
        'orderId' => '',
        'refund' => [
                'amount' => [
                                
                ],
                'amountPretax' => [
                                
                ],
                'amountTax' => [
                                
                ],
                'reason' => '',
                'reasonText' => ''
        ],
        'rejectReturnLineItem' => [
                'lineItemId' => '',
                'productId' => '',
                'quantity' => 0,
                'reason' => '',
                'reasonText' => ''
        ],
        'returnLineItem' => [
                'lineItemId' => '',
                'productId' => '',
                'quantity' => 0,
                'reason' => '',
                'reasonText' => ''
        ],
        'returnRefundLineItem' => [
                'amountPretax' => [
                                
                ],
                'amountTax' => [
                                
                ],
                'lineItemId' => '',
                'productId' => '',
                'quantity' => 0,
                'reason' => '',
                'reasonText' => ''
        ],
        'setLineItemMetadata' => [
                'annotations' => [
                                [
                                                                'key' => '',
                                                                'value' => ''
                                ]
                ],
                'lineItemId' => '',
                'productId' => ''
        ],
        'shipLineItems' => [
                'carrier' => '',
                'lineItems' => [
                                [
                                                                'lineItemId' => '',
                                                                'productId' => '',
                                                                'quantity' => 0
                                ]
                ],
                'shipmentGroupId' => '',
                'shipmentId' => '',
                'shipmentInfos' => [
                                [
                                                                'carrier' => '',
                                                                'shipmentId' => '',
                                                                'trackingId' => ''
                                ]
                ],
                'trackingId' => ''
        ],
        'updateLineItemShippingDetails' => [
                'deliverByDate' => '',
                'lineItemId' => '',
                'productId' => '',
                'shipByDate' => ''
        ],
        'updateShipment' => [
                'carrier' => '',
                'deliveryDate' => '',
                'shipmentId' => '',
                'status' => '',
                'trackingId' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/orders/batch');
$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}}/orders/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "batchId": 0,
      "cancel": {
        "reason": "",
        "reasonText": ""
      },
      "cancelLineItem": {
        "amount": {
          "currency": "",
          "value": ""
        },
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "inStoreRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "merchantId": "",
      "merchantOrderId": "",
      "method": "",
      "operationId": "",
      "orderId": "",
      "refund": {
        "amount": {},
        "amountPretax": {},
        "amountTax": {},
        "reason": "",
        "reasonText": ""
      },
      "rejectReturnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "setLineItemMetadata": {
        "annotations": [
          {
            "key": "",
            "value": ""
          }
        ],
        "lineItemId": "",
        "productId": ""
      },
      "shipLineItems": {
        "carrier": "",
        "lineItems": [
          {
            "lineItemId": "",
            "productId": "",
            "quantity": 0
          }
        ],
        "shipmentGroupId": "",
        "shipmentId": "",
        "shipmentInfos": [
          {
            "carrier": "",
            "shipmentId": "",
            "trackingId": ""
          }
        ],
        "trackingId": ""
      },
      "updateLineItemShippingDetails": {
        "deliverByDate": "",
        "lineItemId": "",
        "productId": "",
        "shipByDate": ""
      },
      "updateShipment": {
        "carrier": "",
        "deliveryDate": "",
        "shipmentId": "",
        "status": "",
        "trackingId": ""
      }
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/orders/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "batchId": 0,
      "cancel": {
        "reason": "",
        "reasonText": ""
      },
      "cancelLineItem": {
        "amount": {
          "currency": "",
          "value": ""
        },
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "inStoreRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "merchantId": "",
      "merchantOrderId": "",
      "method": "",
      "operationId": "",
      "orderId": "",
      "refund": {
        "amount": {},
        "amountPretax": {},
        "amountTax": {},
        "reason": "",
        "reasonText": ""
      },
      "rejectReturnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "setLineItemMetadata": {
        "annotations": [
          {
            "key": "",
            "value": ""
          }
        ],
        "lineItemId": "",
        "productId": ""
      },
      "shipLineItems": {
        "carrier": "",
        "lineItems": [
          {
            "lineItemId": "",
            "productId": "",
            "quantity": 0
          }
        ],
        "shipmentGroupId": "",
        "shipmentId": "",
        "shipmentInfos": [
          {
            "carrier": "",
            "shipmentId": "",
            "trackingId": ""
          }
        ],
        "trackingId": ""
      },
      "updateLineItemShippingDetails": {
        "deliverByDate": "",
        "lineItemId": "",
        "productId": "",
        "shipByDate": ""
      },
      "updateShipment": {
        "carrier": "",
        "deliveryDate": "",
        "shipmentId": "",
        "status": "",
        "trackingId": ""
      }
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/orders/batch", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/orders/batch"

payload = { "entries": [
        {
            "batchId": 0,
            "cancel": {
                "reason": "",
                "reasonText": ""
            },
            "cancelLineItem": {
                "amount": {
                    "currency": "",
                    "value": ""
                },
                "amountPretax": {},
                "amountTax": {},
                "lineItemId": "",
                "productId": "",
                "quantity": 0,
                "reason": "",
                "reasonText": ""
            },
            "inStoreRefundLineItem": {
                "amountPretax": {},
                "amountTax": {},
                "lineItemId": "",
                "productId": "",
                "quantity": 0,
                "reason": "",
                "reasonText": ""
            },
            "merchantId": "",
            "merchantOrderId": "",
            "method": "",
            "operationId": "",
            "orderId": "",
            "refund": {
                "amount": {},
                "amountPretax": {},
                "amountTax": {},
                "reason": "",
                "reasonText": ""
            },
            "rejectReturnLineItem": {
                "lineItemId": "",
                "productId": "",
                "quantity": 0,
                "reason": "",
                "reasonText": ""
            },
            "returnLineItem": {
                "lineItemId": "",
                "productId": "",
                "quantity": 0,
                "reason": "",
                "reasonText": ""
            },
            "returnRefundLineItem": {
                "amountPretax": {},
                "amountTax": {},
                "lineItemId": "",
                "productId": "",
                "quantity": 0,
                "reason": "",
                "reasonText": ""
            },
            "setLineItemMetadata": {
                "annotations": [
                    {
                        "key": "",
                        "value": ""
                    }
                ],
                "lineItemId": "",
                "productId": ""
            },
            "shipLineItems": {
                "carrier": "",
                "lineItems": [
                    {
                        "lineItemId": "",
                        "productId": "",
                        "quantity": 0
                    }
                ],
                "shipmentGroupId": "",
                "shipmentId": "",
                "shipmentInfos": [
                    {
                        "carrier": "",
                        "shipmentId": "",
                        "trackingId": ""
                    }
                ],
                "trackingId": ""
            },
            "updateLineItemShippingDetails": {
                "deliverByDate": "",
                "lineItemId": "",
                "productId": "",
                "shipByDate": ""
            },
            "updateShipment": {
                "carrier": "",
                "deliveryDate": "",
                "shipmentId": "",
                "status": "",
                "trackingId": ""
            }
        }
    ] }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/orders/batch"

payload <- "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/orders/batch")

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  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/orders/batch') do |req|
  req.body = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"cancel\": {\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"cancelLineItem\": {\n        \"amount\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"inStoreRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"merchantOrderId\": \"\",\n      \"method\": \"\",\n      \"operationId\": \"\",\n      \"orderId\": \"\",\n      \"refund\": {\n        \"amount\": {},\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"rejectReturnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnLineItem\": {\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"returnRefundLineItem\": {\n        \"amountPretax\": {},\n        \"amountTax\": {},\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"reason\": \"\",\n        \"reasonText\": \"\"\n      },\n      \"setLineItemMetadata\": {\n        \"annotations\": [\n          {\n            \"key\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"lineItemId\": \"\",\n        \"productId\": \"\"\n      },\n      \"shipLineItems\": {\n        \"carrier\": \"\",\n        \"lineItems\": [\n          {\n            \"lineItemId\": \"\",\n            \"productId\": \"\",\n            \"quantity\": 0\n          }\n        ],\n        \"shipmentGroupId\": \"\",\n        \"shipmentId\": \"\",\n        \"shipmentInfos\": [\n          {\n            \"carrier\": \"\",\n            \"shipmentId\": \"\",\n            \"trackingId\": \"\"\n          }\n        ],\n        \"trackingId\": \"\"\n      },\n      \"updateLineItemShippingDetails\": {\n        \"deliverByDate\": \"\",\n        \"lineItemId\": \"\",\n        \"productId\": \"\",\n        \"shipByDate\": \"\"\n      },\n      \"updateShipment\": {\n        \"carrier\": \"\",\n        \"deliveryDate\": \"\",\n        \"shipmentId\": \"\",\n        \"status\": \"\",\n        \"trackingId\": \"\"\n      }\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/orders/batch";

    let payload = json!({"entries": (
            json!({
                "batchId": 0,
                "cancel": json!({
                    "reason": "",
                    "reasonText": ""
                }),
                "cancelLineItem": json!({
                    "amount": json!({
                        "currency": "",
                        "value": ""
                    }),
                    "amountPretax": json!({}),
                    "amountTax": json!({}),
                    "lineItemId": "",
                    "productId": "",
                    "quantity": 0,
                    "reason": "",
                    "reasonText": ""
                }),
                "inStoreRefundLineItem": json!({
                    "amountPretax": json!({}),
                    "amountTax": json!({}),
                    "lineItemId": "",
                    "productId": "",
                    "quantity": 0,
                    "reason": "",
                    "reasonText": ""
                }),
                "merchantId": "",
                "merchantOrderId": "",
                "method": "",
                "operationId": "",
                "orderId": "",
                "refund": json!({
                    "amount": json!({}),
                    "amountPretax": json!({}),
                    "amountTax": json!({}),
                    "reason": "",
                    "reasonText": ""
                }),
                "rejectReturnLineItem": json!({
                    "lineItemId": "",
                    "productId": "",
                    "quantity": 0,
                    "reason": "",
                    "reasonText": ""
                }),
                "returnLineItem": json!({
                    "lineItemId": "",
                    "productId": "",
                    "quantity": 0,
                    "reason": "",
                    "reasonText": ""
                }),
                "returnRefundLineItem": json!({
                    "amountPretax": json!({}),
                    "amountTax": json!({}),
                    "lineItemId": "",
                    "productId": "",
                    "quantity": 0,
                    "reason": "",
                    "reasonText": ""
                }),
                "setLineItemMetadata": json!({
                    "annotations": (
                        json!({
                            "key": "",
                            "value": ""
                        })
                    ),
                    "lineItemId": "",
                    "productId": ""
                }),
                "shipLineItems": json!({
                    "carrier": "",
                    "lineItems": (
                        json!({
                            "lineItemId": "",
                            "productId": "",
                            "quantity": 0
                        })
                    ),
                    "shipmentGroupId": "",
                    "shipmentId": "",
                    "shipmentInfos": (
                        json!({
                            "carrier": "",
                            "shipmentId": "",
                            "trackingId": ""
                        })
                    ),
                    "trackingId": ""
                }),
                "updateLineItemShippingDetails": json!({
                    "deliverByDate": "",
                    "lineItemId": "",
                    "productId": "",
                    "shipByDate": ""
                }),
                "updateShipment": json!({
                    "carrier": "",
                    "deliveryDate": "",
                    "shipmentId": "",
                    "status": "",
                    "trackingId": ""
                })
            })
        )});

    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}}/orders/batch \
  --header 'content-type: application/json' \
  --data '{
  "entries": [
    {
      "batchId": 0,
      "cancel": {
        "reason": "",
        "reasonText": ""
      },
      "cancelLineItem": {
        "amount": {
          "currency": "",
          "value": ""
        },
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "inStoreRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "merchantId": "",
      "merchantOrderId": "",
      "method": "",
      "operationId": "",
      "orderId": "",
      "refund": {
        "amount": {},
        "amountPretax": {},
        "amountTax": {},
        "reason": "",
        "reasonText": ""
      },
      "rejectReturnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "setLineItemMetadata": {
        "annotations": [
          {
            "key": "",
            "value": ""
          }
        ],
        "lineItemId": "",
        "productId": ""
      },
      "shipLineItems": {
        "carrier": "",
        "lineItems": [
          {
            "lineItemId": "",
            "productId": "",
            "quantity": 0
          }
        ],
        "shipmentGroupId": "",
        "shipmentId": "",
        "shipmentInfos": [
          {
            "carrier": "",
            "shipmentId": "",
            "trackingId": ""
          }
        ],
        "trackingId": ""
      },
      "updateLineItemShippingDetails": {
        "deliverByDate": "",
        "lineItemId": "",
        "productId": "",
        "shipByDate": ""
      },
      "updateShipment": {
        "carrier": "",
        "deliveryDate": "",
        "shipmentId": "",
        "status": "",
        "trackingId": ""
      }
    }
  ]
}'
echo '{
  "entries": [
    {
      "batchId": 0,
      "cancel": {
        "reason": "",
        "reasonText": ""
      },
      "cancelLineItem": {
        "amount": {
          "currency": "",
          "value": ""
        },
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "inStoreRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "merchantId": "",
      "merchantOrderId": "",
      "method": "",
      "operationId": "",
      "orderId": "",
      "refund": {
        "amount": {},
        "amountPretax": {},
        "amountTax": {},
        "reason": "",
        "reasonText": ""
      },
      "rejectReturnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnLineItem": {
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "returnRefundLineItem": {
        "amountPretax": {},
        "amountTax": {},
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      },
      "setLineItemMetadata": {
        "annotations": [
          {
            "key": "",
            "value": ""
          }
        ],
        "lineItemId": "",
        "productId": ""
      },
      "shipLineItems": {
        "carrier": "",
        "lineItems": [
          {
            "lineItemId": "",
            "productId": "",
            "quantity": 0
          }
        ],
        "shipmentGroupId": "",
        "shipmentId": "",
        "shipmentInfos": [
          {
            "carrier": "",
            "shipmentId": "",
            "trackingId": ""
          }
        ],
        "trackingId": ""
      },
      "updateLineItemShippingDetails": {
        "deliverByDate": "",
        "lineItemId": "",
        "productId": "",
        "shipByDate": ""
      },
      "updateShipment": {
        "carrier": "",
        "deliveryDate": "",
        "shipmentId": "",
        "status": "",
        "trackingId": ""
      }
    }
  ]
}' |  \
  http POST {{baseUrl}}/orders/batch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entries": [\n    {\n      "batchId": 0,\n      "cancel": {\n        "reason": "",\n        "reasonText": ""\n      },\n      "cancelLineItem": {\n        "amount": {\n          "currency": "",\n          "value": ""\n        },\n        "amountPretax": {},\n        "amountTax": {},\n        "lineItemId": "",\n        "productId": "",\n        "quantity": 0,\n        "reason": "",\n        "reasonText": ""\n      },\n      "inStoreRefundLineItem": {\n        "amountPretax": {},\n        "amountTax": {},\n        "lineItemId": "",\n        "productId": "",\n        "quantity": 0,\n        "reason": "",\n        "reasonText": ""\n      },\n      "merchantId": "",\n      "merchantOrderId": "",\n      "method": "",\n      "operationId": "",\n      "orderId": "",\n      "refund": {\n        "amount": {},\n        "amountPretax": {},\n        "amountTax": {},\n        "reason": "",\n        "reasonText": ""\n      },\n      "rejectReturnLineItem": {\n        "lineItemId": "",\n        "productId": "",\n        "quantity": 0,\n        "reason": "",\n        "reasonText": ""\n      },\n      "returnLineItem": {\n        "lineItemId": "",\n        "productId": "",\n        "quantity": 0,\n        "reason": "",\n        "reasonText": ""\n      },\n      "returnRefundLineItem": {\n        "amountPretax": {},\n        "amountTax": {},\n        "lineItemId": "",\n        "productId": "",\n        "quantity": 0,\n        "reason": "",\n        "reasonText": ""\n      },\n      "setLineItemMetadata": {\n        "annotations": [\n          {\n            "key": "",\n            "value": ""\n          }\n        ],\n        "lineItemId": "",\n        "productId": ""\n      },\n      "shipLineItems": {\n        "carrier": "",\n        "lineItems": [\n          {\n            "lineItemId": "",\n            "productId": "",\n            "quantity": 0\n          }\n        ],\n        "shipmentGroupId": "",\n        "shipmentId": "",\n        "shipmentInfos": [\n          {\n            "carrier": "",\n            "shipmentId": "",\n            "trackingId": ""\n          }\n        ],\n        "trackingId": ""\n      },\n      "updateLineItemShippingDetails": {\n        "deliverByDate": "",\n        "lineItemId": "",\n        "productId": "",\n        "shipByDate": ""\n      },\n      "updateShipment": {\n        "carrier": "",\n        "deliveryDate": "",\n        "shipmentId": "",\n        "status": "",\n        "trackingId": ""\n      }\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/orders/batch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["entries": [
    [
      "batchId": 0,
      "cancel": [
        "reason": "",
        "reasonText": ""
      ],
      "cancelLineItem": [
        "amount": [
          "currency": "",
          "value": ""
        ],
        "amountPretax": [],
        "amountTax": [],
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      ],
      "inStoreRefundLineItem": [
        "amountPretax": [],
        "amountTax": [],
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      ],
      "merchantId": "",
      "merchantOrderId": "",
      "method": "",
      "operationId": "",
      "orderId": "",
      "refund": [
        "amount": [],
        "amountPretax": [],
        "amountTax": [],
        "reason": "",
        "reasonText": ""
      ],
      "rejectReturnLineItem": [
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      ],
      "returnLineItem": [
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      ],
      "returnRefundLineItem": [
        "amountPretax": [],
        "amountTax": [],
        "lineItemId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
      ],
      "setLineItemMetadata": [
        "annotations": [
          [
            "key": "",
            "value": ""
          ]
        ],
        "lineItemId": "",
        "productId": ""
      ],
      "shipLineItems": [
        "carrier": "",
        "lineItems": [
          [
            "lineItemId": "",
            "productId": "",
            "quantity": 0
          ]
        ],
        "shipmentGroupId": "",
        "shipmentId": "",
        "shipmentInfos": [
          [
            "carrier": "",
            "shipmentId": "",
            "trackingId": ""
          ]
        ],
        "trackingId": ""
      ],
      "updateLineItemShippingDetails": [
        "deliverByDate": "",
        "lineItemId": "",
        "productId": "",
        "shipByDate": ""
      ],
      "updateShipment": [
        "carrier": "",
        "deliveryDate": "",
        "shipmentId": "",
        "status": "",
        "trackingId": ""
      ]
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/orders/batch")! 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()
GET content.orders.get
{{baseUrl}}/:merchantId/orders/:orderId
QUERY PARAMS

merchantId
orderId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/orders/:orderId")
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/orders/:orderId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/orders/:orderId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/orders/:orderId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/orders/:orderId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/orders/:orderId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/orders/:orderId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/orders/:orderId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/orders/:orderId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/orders/:orderId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/orders/:orderId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/orders/:orderId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/orders/:orderId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/orders/:orderId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/orders/:orderId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/orders/:orderId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/orders/:orderId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/orders/:orderId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/orders/:orderId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/orders/:orderId
http GET {{baseUrl}}/:merchantId/orders/:orderId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.orders.getbymerchantorderid
{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId
QUERY PARAMS

merchantId
merchantOrderId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId")
require "http/client"

url = "{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/ordersbymerchantid/:merchantOrderId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/ordersbymerchantid/:merchantOrderId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/ordersbymerchantid/:merchantOrderId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/ordersbymerchantid/:merchantOrderId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId
http GET {{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/ordersbymerchantid/:merchantOrderId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.orders.gettestordertemplate
{{baseUrl}}/:merchantId/testordertemplates/:templateName
QUERY PARAMS

merchantId
templateName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/testordertemplates/:templateName");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/testordertemplates/:templateName")
require "http/client"

url = "{{baseUrl}}/:merchantId/testordertemplates/:templateName"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/testordertemplates/:templateName"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/testordertemplates/:templateName");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/testordertemplates/:templateName"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/testordertemplates/:templateName HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/testordertemplates/:templateName")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/testordertemplates/:templateName"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/testordertemplates/:templateName")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/testordertemplates/:templateName")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/testordertemplates/:templateName');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/testordertemplates/:templateName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/testordertemplates/:templateName';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/testordertemplates/:templateName',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/testordertemplates/:templateName")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/testordertemplates/:templateName',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/testordertemplates/:templateName'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/testordertemplates/:templateName');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/testordertemplates/:templateName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/testordertemplates/:templateName';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/testordertemplates/:templateName"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/testordertemplates/:templateName" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/testordertemplates/:templateName",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/testordertemplates/:templateName');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/testordertemplates/:templateName');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/testordertemplates/:templateName');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/testordertemplates/:templateName' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/testordertemplates/:templateName' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/testordertemplates/:templateName")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/testordertemplates/:templateName"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/testordertemplates/:templateName"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/testordertemplates/:templateName")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/testordertemplates/:templateName') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/testordertemplates/:templateName";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/testordertemplates/:templateName
http GET {{baseUrl}}/:merchantId/testordertemplates/:templateName
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/testordertemplates/:templateName
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/testordertemplates/:templateName")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.orders.instorerefundlineitem
{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem
QUERY PARAMS

merchantId
orderId
BODY json

{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem");

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  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem" {:content-type :json
                                                                                              :form-params {:amountPretax {:currency ""
                                                                                                                           :value ""}
                                                                                                            :amountTax {}
                                                                                                            :lineItemId ""
                                                                                                            :operationId ""
                                                                                                            :productId ""
                                                                                                            :quantity 0
                                                                                                            :reason ""
                                                                                                            :reasonText ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/inStoreRefundLineItem"),
    Content = new StringContent("{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/inStoreRefundLineItem");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem"

	payload := strings.NewReader("{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/inStoreRefundLineItem HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 195

{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem")
  .header("content-type", "application/json")
  .body("{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  amountPretax: {
    currency: '',
    value: ''
  },
  amountTax: {},
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem',
  headers: {'content-type': 'application/json'},
  data: {
    amountPretax: {currency: '', value: ''},
    amountTax: {},
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amountPretax":{"currency":"","value":""},"amountTax":{},"lineItemId":"","operationId":"","productId":"","quantity":0,"reason":"","reasonText":""}'
};

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}}/:merchantId/orders/:orderId/inStoreRefundLineItem',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amountPretax": {\n    "currency": "",\n    "value": ""\n  },\n  "amountTax": {},\n  "lineItemId": "",\n  "operationId": "",\n  "productId": "",\n  "quantity": 0,\n  "reason": "",\n  "reasonText": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem")
  .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/:merchantId/orders/:orderId/inStoreRefundLineItem',
  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({
  amountPretax: {currency: '', value: ''},
  amountTax: {},
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem',
  headers: {'content-type': 'application/json'},
  body: {
    amountPretax: {currency: '', value: ''},
    amountTax: {},
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  },
  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}}/:merchantId/orders/:orderId/inStoreRefundLineItem');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  amountPretax: {
    currency: '',
    value: ''
  },
  amountTax: {},
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
});

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}}/:merchantId/orders/:orderId/inStoreRefundLineItem',
  headers: {'content-type': 'application/json'},
  data: {
    amountPretax: {currency: '', value: ''},
    amountTax: {},
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amountPretax":{"currency":"","value":""},"amountTax":{},"lineItemId":"","operationId":"","productId":"","quantity":0,"reason":"","reasonText":""}'
};

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 = @{ @"amountPretax": @{ @"currency": @"", @"value": @"" },
                              @"amountTax": @{  },
                              @"lineItemId": @"",
                              @"operationId": @"",
                              @"productId": @"",
                              @"quantity": @0,
                              @"reason": @"",
                              @"reasonText": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem"]
                                                       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}}/:merchantId/orders/:orderId/inStoreRefundLineItem" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem",
  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([
    'amountPretax' => [
        'currency' => '',
        'value' => ''
    ],
    'amountTax' => [
        
    ],
    'lineItemId' => '',
    'operationId' => '',
    'productId' => '',
    'quantity' => 0,
    'reason' => '',
    'reasonText' => ''
  ]),
  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}}/:merchantId/orders/:orderId/inStoreRefundLineItem', [
  'body' => '{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amountPretax' => [
    'currency' => '',
    'value' => ''
  ],
  'amountTax' => [
    
  ],
  'lineItemId' => '',
  'operationId' => '',
  'productId' => '',
  'quantity' => 0,
  'reason' => '',
  'reasonText' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amountPretax' => [
    'currency' => '',
    'value' => ''
  ],
  'amountTax' => [
    
  ],
  'lineItemId' => '',
  'operationId' => '',
  'productId' => '',
  'quantity' => 0,
  'reason' => '',
  'reasonText' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem');
$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}}/:merchantId/orders/:orderId/inStoreRefundLineItem' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/inStoreRefundLineItem", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem"

payload = {
    "amountPretax": {
        "currency": "",
        "value": ""
    },
    "amountTax": {},
    "lineItemId": "",
    "operationId": "",
    "productId": "",
    "quantity": 0,
    "reason": "",
    "reasonText": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem"

payload <- "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/inStoreRefundLineItem")

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  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/inStoreRefundLineItem') do |req|
  req.body = "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem";

    let payload = json!({
        "amountPretax": json!({
            "currency": "",
            "value": ""
        }),
        "amountTax": json!({}),
        "lineItemId": "",
        "operationId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
    });

    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}}/:merchantId/orders/:orderId/inStoreRefundLineItem \
  --header 'content-type: application/json' \
  --data '{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
echo '{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amountPretax": {\n    "currency": "",\n    "value": ""\n  },\n  "amountTax": {},\n  "lineItemId": "",\n  "operationId": "",\n  "productId": "",\n  "quantity": 0,\n  "reason": "",\n  "reasonText": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amountPretax": [
    "currency": "",
    "value": ""
  ],
  "amountTax": [],
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/inStoreRefundLineItem")! 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()
GET content.orders.list
{{baseUrl}}/:merchantId/orders
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/orders")
require "http/client"

url = "{{baseUrl}}/:merchantId/orders"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/orders"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/orders");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/orders HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/orders")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/orders")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/orders');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/orders'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/orders',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/orders',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/orders'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/orders');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/orders'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/orders" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/orders');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/orders');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/orders' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/orders")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/orders")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/orders') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/orders
http GET {{baseUrl}}/:merchantId/orders
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/orders
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.orders.refund
{{baseUrl}}/:merchantId/orders/:orderId/refund
QUERY PARAMS

merchantId
orderId
BODY json

{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "operationId": "",
  "reason": "",
  "reasonText": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/refund");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/refund" {:content-type :json
                                                                               :form-params {:amount {:currency ""
                                                                                                      :value ""}
                                                                                             :amountPretax {}
                                                                                             :amountTax {}
                                                                                             :operationId ""
                                                                                             :reason ""
                                                                                             :reasonText ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/refund"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/refund"),
    Content = new StringContent("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/refund");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/refund"

	payload := strings.NewReader("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/refund HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 155

{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "operationId": "",
  "reason": "",
  "reasonText": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/refund")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/refund"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/refund")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/refund")
  .header("content-type", "application/json")
  .body("{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  amount: {
    currency: '',
    value: ''
  },
  amountPretax: {},
  amountTax: {},
  operationId: '',
  reason: '',
  reasonText: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orders/:orderId/refund');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/refund',
  headers: {'content-type': 'application/json'},
  data: {
    amount: {currency: '', value: ''},
    amountPretax: {},
    amountTax: {},
    operationId: '',
    reason: '',
    reasonText: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/refund';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amount":{"currency":"","value":""},"amountPretax":{},"amountTax":{},"operationId":"","reason":"","reasonText":""}'
};

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}}/:merchantId/orders/:orderId/refund',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amount": {\n    "currency": "",\n    "value": ""\n  },\n  "amountPretax": {},\n  "amountTax": {},\n  "operationId": "",\n  "reason": "",\n  "reasonText": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/refund")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/orders/:orderId/refund',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  amount: {currency: '', value: ''},
  amountPretax: {},
  amountTax: {},
  operationId: '',
  reason: '',
  reasonText: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/refund',
  headers: {'content-type': 'application/json'},
  body: {
    amount: {currency: '', value: ''},
    amountPretax: {},
    amountTax: {},
    operationId: '',
    reason: '',
    reasonText: ''
  },
  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}}/:merchantId/orders/:orderId/refund');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  amount: {
    currency: '',
    value: ''
  },
  amountPretax: {},
  amountTax: {},
  operationId: '',
  reason: '',
  reasonText: ''
});

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}}/:merchantId/orders/:orderId/refund',
  headers: {'content-type': 'application/json'},
  data: {
    amount: {currency: '', value: ''},
    amountPretax: {},
    amountTax: {},
    operationId: '',
    reason: '',
    reasonText: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/refund';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amount":{"currency":"","value":""},"amountPretax":{},"amountTax":{},"operationId":"","reason":"","reasonText":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"amount": @{ @"currency": @"", @"value": @"" },
                              @"amountPretax": @{  },
                              @"amountTax": @{  },
                              @"operationId": @"",
                              @"reason": @"",
                              @"reasonText": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/refund"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/orders/:orderId/refund" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/refund",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'amount' => [
        'currency' => '',
        'value' => ''
    ],
    'amountPretax' => [
        
    ],
    'amountTax' => [
        
    ],
    'operationId' => '',
    'reason' => '',
    'reasonText' => ''
  ]),
  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}}/:merchantId/orders/:orderId/refund', [
  'body' => '{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "operationId": "",
  "reason": "",
  "reasonText": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/refund');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amount' => [
    'currency' => '',
    'value' => ''
  ],
  'amountPretax' => [
    
  ],
  'amountTax' => [
    
  ],
  'operationId' => '',
  'reason' => '',
  'reasonText' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amount' => [
    'currency' => '',
    'value' => ''
  ],
  'amountPretax' => [
    
  ],
  'amountTax' => [
    
  ],
  'operationId' => '',
  'reason' => '',
  'reasonText' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/refund');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/orders/:orderId/refund' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "operationId": "",
  "reason": "",
  "reasonText": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/refund' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "operationId": "",
  "reason": "",
  "reasonText": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/refund", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/refund"

payload = {
    "amount": {
        "currency": "",
        "value": ""
    },
    "amountPretax": {},
    "amountTax": {},
    "operationId": "",
    "reason": "",
    "reasonText": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/refund"

payload <- "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/refund")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/refund') do |req|
  req.body = "{\n  \"amount\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountPretax\": {},\n  \"amountTax\": {},\n  \"operationId\": \"\",\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/refund";

    let payload = json!({
        "amount": json!({
            "currency": "",
            "value": ""
        }),
        "amountPretax": json!({}),
        "amountTax": json!({}),
        "operationId": "",
        "reason": "",
        "reasonText": ""
    });

    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}}/:merchantId/orders/:orderId/refund \
  --header 'content-type: application/json' \
  --data '{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "operationId": "",
  "reason": "",
  "reasonText": ""
}'
echo '{
  "amount": {
    "currency": "",
    "value": ""
  },
  "amountPretax": {},
  "amountTax": {},
  "operationId": "",
  "reason": "",
  "reasonText": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/refund \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amount": {\n    "currency": "",\n    "value": ""\n  },\n  "amountPretax": {},\n  "amountTax": {},\n  "operationId": "",\n  "reason": "",\n  "reasonText": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/refund
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amount": [
    "currency": "",
    "value": ""
  ],
  "amountPretax": [],
  "amountTax": [],
  "operationId": "",
  "reason": "",
  "reasonText": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/refund")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.orders.rejectreturnlineitem
{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem
QUERY PARAMS

merchantId
orderId
BODY json

{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem");

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  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem" {:content-type :json
                                                                                             :form-params {:lineItemId ""
                                                                                                           :operationId ""
                                                                                                           :productId ""
                                                                                                           :quantity 0
                                                                                                           :reason ""
                                                                                                           :reasonText ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/rejectReturnLineItem"),
    Content = new StringContent("{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/rejectReturnLineItem");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem"

	payload := strings.NewReader("{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/rejectReturnLineItem HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 115

{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem")
  .header("content-type", "application/json")
  .body("{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem',
  headers: {'content-type': 'application/json'},
  data: {
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"lineItemId":"","operationId":"","productId":"","quantity":0,"reason":"","reasonText":""}'
};

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}}/:merchantId/orders/:orderId/rejectReturnLineItem',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "lineItemId": "",\n  "operationId": "",\n  "productId": "",\n  "quantity": 0,\n  "reason": "",\n  "reasonText": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem")
  .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/:merchantId/orders/:orderId/rejectReturnLineItem',
  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({
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem',
  headers: {'content-type': 'application/json'},
  body: {
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  },
  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}}/:merchantId/orders/:orderId/rejectReturnLineItem');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
});

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}}/:merchantId/orders/:orderId/rejectReturnLineItem',
  headers: {'content-type': 'application/json'},
  data: {
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"lineItemId":"","operationId":"","productId":"","quantity":0,"reason":"","reasonText":""}'
};

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 = @{ @"lineItemId": @"",
                              @"operationId": @"",
                              @"productId": @"",
                              @"quantity": @0,
                              @"reason": @"",
                              @"reasonText": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem"]
                                                       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}}/:merchantId/orders/:orderId/rejectReturnLineItem" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem",
  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([
    'lineItemId' => '',
    'operationId' => '',
    'productId' => '',
    'quantity' => 0,
    'reason' => '',
    'reasonText' => ''
  ]),
  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}}/:merchantId/orders/:orderId/rejectReturnLineItem', [
  'body' => '{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'lineItemId' => '',
  'operationId' => '',
  'productId' => '',
  'quantity' => 0,
  'reason' => '',
  'reasonText' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'lineItemId' => '',
  'operationId' => '',
  'productId' => '',
  'quantity' => 0,
  'reason' => '',
  'reasonText' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem');
$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}}/:merchantId/orders/:orderId/rejectReturnLineItem' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/rejectReturnLineItem", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem"

payload = {
    "lineItemId": "",
    "operationId": "",
    "productId": "",
    "quantity": 0,
    "reason": "",
    "reasonText": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem"

payload <- "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/rejectReturnLineItem")

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  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/rejectReturnLineItem') do |req|
  req.body = "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem";

    let payload = json!({
        "lineItemId": "",
        "operationId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
    });

    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}}/:merchantId/orders/:orderId/rejectReturnLineItem \
  --header 'content-type: application/json' \
  --data '{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
echo '{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "lineItemId": "",\n  "operationId": "",\n  "productId": "",\n  "quantity": 0,\n  "reason": "",\n  "reasonText": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/rejectReturnLineItem")! 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()
POST content.orders.returnlineitem
{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem
QUERY PARAMS

merchantId
orderId
BODY json

{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem");

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  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem" {:content-type :json
                                                                                       :form-params {:lineItemId ""
                                                                                                     :operationId ""
                                                                                                     :productId ""
                                                                                                     :quantity 0
                                                                                                     :reason ""
                                                                                                     :reasonText ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/returnLineItem"),
    Content = new StringContent("{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/returnLineItem");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem"

	payload := strings.NewReader("{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/returnLineItem HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 115

{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem")
  .header("content-type", "application/json")
  .body("{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem',
  headers: {'content-type': 'application/json'},
  data: {
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"lineItemId":"","operationId":"","productId":"","quantity":0,"reason":"","reasonText":""}'
};

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}}/:merchantId/orders/:orderId/returnLineItem',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "lineItemId": "",\n  "operationId": "",\n  "productId": "",\n  "quantity": 0,\n  "reason": "",\n  "reasonText": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem")
  .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/:merchantId/orders/:orderId/returnLineItem',
  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({
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem',
  headers: {'content-type': 'application/json'},
  body: {
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  },
  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}}/:merchantId/orders/:orderId/returnLineItem');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
});

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}}/:merchantId/orders/:orderId/returnLineItem',
  headers: {'content-type': 'application/json'},
  data: {
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"lineItemId":"","operationId":"","productId":"","quantity":0,"reason":"","reasonText":""}'
};

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 = @{ @"lineItemId": @"",
                              @"operationId": @"",
                              @"productId": @"",
                              @"quantity": @0,
                              @"reason": @"",
                              @"reasonText": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem"]
                                                       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}}/:merchantId/orders/:orderId/returnLineItem" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem",
  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([
    'lineItemId' => '',
    'operationId' => '',
    'productId' => '',
    'quantity' => 0,
    'reason' => '',
    'reasonText' => ''
  ]),
  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}}/:merchantId/orders/:orderId/returnLineItem', [
  'body' => '{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'lineItemId' => '',
  'operationId' => '',
  'productId' => '',
  'quantity' => 0,
  'reason' => '',
  'reasonText' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'lineItemId' => '',
  'operationId' => '',
  'productId' => '',
  'quantity' => 0,
  'reason' => '',
  'reasonText' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem');
$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}}/:merchantId/orders/:orderId/returnLineItem' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/returnLineItem", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem"

payload = {
    "lineItemId": "",
    "operationId": "",
    "productId": "",
    "quantity": 0,
    "reason": "",
    "reasonText": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem"

payload <- "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/returnLineItem")

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  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/returnLineItem') do |req|
  req.body = "{\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem";

    let payload = json!({
        "lineItemId": "",
        "operationId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
    });

    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}}/:merchantId/orders/:orderId/returnLineItem \
  --header 'content-type: application/json' \
  --data '{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
echo '{
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/returnLineItem \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "lineItemId": "",\n  "operationId": "",\n  "productId": "",\n  "quantity": 0,\n  "reason": "",\n  "reasonText": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/returnLineItem
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/returnLineItem")! 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()
POST content.orders.returnrefundlineitem
{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem
QUERY PARAMS

merchantId
orderId
BODY json

{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem");

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  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem" {:content-type :json
                                                                                             :form-params {:amountPretax {:currency ""
                                                                                                                          :value ""}
                                                                                                           :amountTax {}
                                                                                                           :lineItemId ""
                                                                                                           :operationId ""
                                                                                                           :productId ""
                                                                                                           :quantity 0
                                                                                                           :reason ""
                                                                                                           :reasonText ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/returnRefundLineItem"),
    Content = new StringContent("{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/returnRefundLineItem");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem"

	payload := strings.NewReader("{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/returnRefundLineItem HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 195

{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem")
  .header("content-type", "application/json")
  .body("{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  amountPretax: {
    currency: '',
    value: ''
  },
  amountTax: {},
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem',
  headers: {'content-type': 'application/json'},
  data: {
    amountPretax: {currency: '', value: ''},
    amountTax: {},
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amountPretax":{"currency":"","value":""},"amountTax":{},"lineItemId":"","operationId":"","productId":"","quantity":0,"reason":"","reasonText":""}'
};

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}}/:merchantId/orders/:orderId/returnRefundLineItem',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "amountPretax": {\n    "currency": "",\n    "value": ""\n  },\n  "amountTax": {},\n  "lineItemId": "",\n  "operationId": "",\n  "productId": "",\n  "quantity": 0,\n  "reason": "",\n  "reasonText": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem")
  .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/:merchantId/orders/:orderId/returnRefundLineItem',
  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({
  amountPretax: {currency: '', value: ''},
  amountTax: {},
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem',
  headers: {'content-type': 'application/json'},
  body: {
    amountPretax: {currency: '', value: ''},
    amountTax: {},
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  },
  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}}/:merchantId/orders/:orderId/returnRefundLineItem');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  amountPretax: {
    currency: '',
    value: ''
  },
  amountTax: {},
  lineItemId: '',
  operationId: '',
  productId: '',
  quantity: 0,
  reason: '',
  reasonText: ''
});

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}}/:merchantId/orders/:orderId/returnRefundLineItem',
  headers: {'content-type': 'application/json'},
  data: {
    amountPretax: {currency: '', value: ''},
    amountTax: {},
    lineItemId: '',
    operationId: '',
    productId: '',
    quantity: 0,
    reason: '',
    reasonText: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"amountPretax":{"currency":"","value":""},"amountTax":{},"lineItemId":"","operationId":"","productId":"","quantity":0,"reason":"","reasonText":""}'
};

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 = @{ @"amountPretax": @{ @"currency": @"", @"value": @"" },
                              @"amountTax": @{  },
                              @"lineItemId": @"",
                              @"operationId": @"",
                              @"productId": @"",
                              @"quantity": @0,
                              @"reason": @"",
                              @"reasonText": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem"]
                                                       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}}/:merchantId/orders/:orderId/returnRefundLineItem" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem",
  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([
    'amountPretax' => [
        'currency' => '',
        'value' => ''
    ],
    'amountTax' => [
        
    ],
    'lineItemId' => '',
    'operationId' => '',
    'productId' => '',
    'quantity' => 0,
    'reason' => '',
    'reasonText' => ''
  ]),
  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}}/:merchantId/orders/:orderId/returnRefundLineItem', [
  'body' => '{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'amountPretax' => [
    'currency' => '',
    'value' => ''
  ],
  'amountTax' => [
    
  ],
  'lineItemId' => '',
  'operationId' => '',
  'productId' => '',
  'quantity' => 0,
  'reason' => '',
  'reasonText' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'amountPretax' => [
    'currency' => '',
    'value' => ''
  ],
  'amountTax' => [
    
  ],
  'lineItemId' => '',
  'operationId' => '',
  'productId' => '',
  'quantity' => 0,
  'reason' => '',
  'reasonText' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem');
$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}}/:merchantId/orders/:orderId/returnRefundLineItem' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/returnRefundLineItem", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem"

payload = {
    "amountPretax": {
        "currency": "",
        "value": ""
    },
    "amountTax": {},
    "lineItemId": "",
    "operationId": "",
    "productId": "",
    "quantity": 0,
    "reason": "",
    "reasonText": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem"

payload <- "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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}}/:merchantId/orders/:orderId/returnRefundLineItem")

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  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\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/:merchantId/orders/:orderId/returnRefundLineItem') do |req|
  req.body = "{\n  \"amountPretax\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"amountTax\": {},\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"quantity\": 0,\n  \"reason\": \"\",\n  \"reasonText\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem";

    let payload = json!({
        "amountPretax": json!({
            "currency": "",
            "value": ""
        }),
        "amountTax": json!({}),
        "lineItemId": "",
        "operationId": "",
        "productId": "",
        "quantity": 0,
        "reason": "",
        "reasonText": ""
    });

    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}}/:merchantId/orders/:orderId/returnRefundLineItem \
  --header 'content-type: application/json' \
  --data '{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}'
echo '{
  "amountPretax": {
    "currency": "",
    "value": ""
  },
  "amountTax": {},
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "amountPretax": {\n    "currency": "",\n    "value": ""\n  },\n  "amountTax": {},\n  "lineItemId": "",\n  "operationId": "",\n  "productId": "",\n  "quantity": 0,\n  "reason": "",\n  "reasonText": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "amountPretax": [
    "currency": "",
    "value": ""
  ],
  "amountTax": [],
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "quantity": 0,
  "reason": "",
  "reasonText": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/returnRefundLineItem")! 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()
POST content.orders.setlineitemmetadata
{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata
QUERY PARAMS

merchantId
orderId
BODY json

{
  "annotations": [
    {
      "key": "",
      "value": ""
    }
  ],
  "lineItemId": "",
  "operationId": "",
  "productId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata");

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  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata" {:content-type :json
                                                                                            :form-params {:annotations [{:key ""
                                                                                                                         :value ""}]
                                                                                                          :lineItemId ""
                                                                                                          :operationId ""
                                                                                                          :productId ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\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}}/:merchantId/orders/:orderId/setLineItemMetadata"),
    Content = new StringContent("{\n  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\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}}/:merchantId/orders/:orderId/setLineItemMetadata");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata"

	payload := strings.NewReader("{\n  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\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/:merchantId/orders/:orderId/setLineItemMetadata HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 133

{
  "annotations": [
    {
      "key": "",
      "value": ""
    }
  ],
  "lineItemId": "",
  "operationId": "",
  "productId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\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  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata")
  .header("content-type", "application/json")
  .body("{\n  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  annotations: [
    {
      key: '',
      value: ''
    }
  ],
  lineItemId: '',
  operationId: '',
  productId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata',
  headers: {'content-type': 'application/json'},
  data: {
    annotations: [{key: '', value: ''}],
    lineItemId: '',
    operationId: '',
    productId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"annotations":[{"key":"","value":""}],"lineItemId":"","operationId":"","productId":""}'
};

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}}/:merchantId/orders/:orderId/setLineItemMetadata',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "annotations": [\n    {\n      "key": "",\n      "value": ""\n    }\n  ],\n  "lineItemId": "",\n  "operationId": "",\n  "productId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata")
  .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/:merchantId/orders/:orderId/setLineItemMetadata',
  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({
  annotations: [{key: '', value: ''}],
  lineItemId: '',
  operationId: '',
  productId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata',
  headers: {'content-type': 'application/json'},
  body: {
    annotations: [{key: '', value: ''}],
    lineItemId: '',
    operationId: '',
    productId: ''
  },
  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}}/:merchantId/orders/:orderId/setLineItemMetadata');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  annotations: [
    {
      key: '',
      value: ''
    }
  ],
  lineItemId: '',
  operationId: '',
  productId: ''
});

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}}/:merchantId/orders/:orderId/setLineItemMetadata',
  headers: {'content-type': 'application/json'},
  data: {
    annotations: [{key: '', value: ''}],
    lineItemId: '',
    operationId: '',
    productId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"annotations":[{"key":"","value":""}],"lineItemId":"","operationId":"","productId":""}'
};

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 = @{ @"annotations": @[ @{ @"key": @"", @"value": @"" } ],
                              @"lineItemId": @"",
                              @"operationId": @"",
                              @"productId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata"]
                                                       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}}/:merchantId/orders/:orderId/setLineItemMetadata" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata",
  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([
    'annotations' => [
        [
                'key' => '',
                'value' => ''
        ]
    ],
    'lineItemId' => '',
    'operationId' => '',
    'productId' => ''
  ]),
  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}}/:merchantId/orders/:orderId/setLineItemMetadata', [
  'body' => '{
  "annotations": [
    {
      "key": "",
      "value": ""
    }
  ],
  "lineItemId": "",
  "operationId": "",
  "productId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'annotations' => [
    [
        'key' => '',
        'value' => ''
    ]
  ],
  'lineItemId' => '',
  'operationId' => '',
  'productId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'annotations' => [
    [
        'key' => '',
        'value' => ''
    ]
  ],
  'lineItemId' => '',
  'operationId' => '',
  'productId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata');
$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}}/:merchantId/orders/:orderId/setLineItemMetadata' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "annotations": [
    {
      "key": "",
      "value": ""
    }
  ],
  "lineItemId": "",
  "operationId": "",
  "productId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "annotations": [
    {
      "key": "",
      "value": ""
    }
  ],
  "lineItemId": "",
  "operationId": "",
  "productId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/setLineItemMetadata", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata"

payload = {
    "annotations": [
        {
            "key": "",
            "value": ""
        }
    ],
    "lineItemId": "",
    "operationId": "",
    "productId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata"

payload <- "{\n  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\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}}/:merchantId/orders/:orderId/setLineItemMetadata")

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  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\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/:merchantId/orders/:orderId/setLineItemMetadata') do |req|
  req.body = "{\n  \"annotations\": [\n    {\n      \"key\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata";

    let payload = json!({
        "annotations": (
            json!({
                "key": "",
                "value": ""
            })
        ),
        "lineItemId": "",
        "operationId": "",
        "productId": ""
    });

    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}}/:merchantId/orders/:orderId/setLineItemMetadata \
  --header 'content-type: application/json' \
  --data '{
  "annotations": [
    {
      "key": "",
      "value": ""
    }
  ],
  "lineItemId": "",
  "operationId": "",
  "productId": ""
}'
echo '{
  "annotations": [
    {
      "key": "",
      "value": ""
    }
  ],
  "lineItemId": "",
  "operationId": "",
  "productId": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "annotations": [\n    {\n      "key": "",\n      "value": ""\n    }\n  ],\n  "lineItemId": "",\n  "operationId": "",\n  "productId": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "annotations": [
    [
      "key": "",
      "value": ""
    ]
  ],
  "lineItemId": "",
  "operationId": "",
  "productId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/setLineItemMetadata")! 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()
POST content.orders.shiplineitems
{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems
QUERY PARAMS

merchantId
orderId
BODY json

{
  "carrier": "",
  "lineItems": [
    {
      "lineItemId": "",
      "productId": "",
      "quantity": 0
    }
  ],
  "operationId": "",
  "shipmentGroupId": "",
  "shipmentId": "",
  "shipmentInfos": [
    {
      "carrier": "",
      "shipmentId": "",
      "trackingId": ""
    }
  ],
  "trackingId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems");

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  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems" {:content-type :json
                                                                                      :form-params {:carrier ""
                                                                                                    :lineItems [{:lineItemId ""
                                                                                                                 :productId ""
                                                                                                                 :quantity 0}]
                                                                                                    :operationId ""
                                                                                                    :shipmentGroupId ""
                                                                                                    :shipmentId ""
                                                                                                    :shipmentInfos [{:carrier ""
                                                                                                                     :shipmentId ""
                                                                                                                     :trackingId ""}]
                                                                                                    :trackingId ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\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}}/:merchantId/orders/:orderId/shipLineItems"),
    Content = new StringContent("{\n  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\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}}/:merchantId/orders/:orderId/shipLineItems");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems"

	payload := strings.NewReader("{\n  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\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/:merchantId/orders/:orderId/shipLineItems HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 312

{
  "carrier": "",
  "lineItems": [
    {
      "lineItemId": "",
      "productId": "",
      "quantity": 0
    }
  ],
  "operationId": "",
  "shipmentGroupId": "",
  "shipmentId": "",
  "shipmentInfos": [
    {
      "carrier": "",
      "shipmentId": "",
      "trackingId": ""
    }
  ],
  "trackingId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\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  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems")
  .header("content-type", "application/json")
  .body("{\n  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  carrier: '',
  lineItems: [
    {
      lineItemId: '',
      productId: '',
      quantity: 0
    }
  ],
  operationId: '',
  shipmentGroupId: '',
  shipmentId: '',
  shipmentInfos: [
    {
      carrier: '',
      shipmentId: '',
      trackingId: ''
    }
  ],
  trackingId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems',
  headers: {'content-type': 'application/json'},
  data: {
    carrier: '',
    lineItems: [{lineItemId: '', productId: '', quantity: 0}],
    operationId: '',
    shipmentGroupId: '',
    shipmentId: '',
    shipmentInfos: [{carrier: '', shipmentId: '', trackingId: ''}],
    trackingId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"carrier":"","lineItems":[{"lineItemId":"","productId":"","quantity":0}],"operationId":"","shipmentGroupId":"","shipmentId":"","shipmentInfos":[{"carrier":"","shipmentId":"","trackingId":""}],"trackingId":""}'
};

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}}/:merchantId/orders/:orderId/shipLineItems',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "carrier": "",\n  "lineItems": [\n    {\n      "lineItemId": "",\n      "productId": "",\n      "quantity": 0\n    }\n  ],\n  "operationId": "",\n  "shipmentGroupId": "",\n  "shipmentId": "",\n  "shipmentInfos": [\n    {\n      "carrier": "",\n      "shipmentId": "",\n      "trackingId": ""\n    }\n  ],\n  "trackingId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems")
  .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/:merchantId/orders/:orderId/shipLineItems',
  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({
  carrier: '',
  lineItems: [{lineItemId: '', productId: '', quantity: 0}],
  operationId: '',
  shipmentGroupId: '',
  shipmentId: '',
  shipmentInfos: [{carrier: '', shipmentId: '', trackingId: ''}],
  trackingId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems',
  headers: {'content-type': 'application/json'},
  body: {
    carrier: '',
    lineItems: [{lineItemId: '', productId: '', quantity: 0}],
    operationId: '',
    shipmentGroupId: '',
    shipmentId: '',
    shipmentInfos: [{carrier: '', shipmentId: '', trackingId: ''}],
    trackingId: ''
  },
  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}}/:merchantId/orders/:orderId/shipLineItems');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  carrier: '',
  lineItems: [
    {
      lineItemId: '',
      productId: '',
      quantity: 0
    }
  ],
  operationId: '',
  shipmentGroupId: '',
  shipmentId: '',
  shipmentInfos: [
    {
      carrier: '',
      shipmentId: '',
      trackingId: ''
    }
  ],
  trackingId: ''
});

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}}/:merchantId/orders/:orderId/shipLineItems',
  headers: {'content-type': 'application/json'},
  data: {
    carrier: '',
    lineItems: [{lineItemId: '', productId: '', quantity: 0}],
    operationId: '',
    shipmentGroupId: '',
    shipmentId: '',
    shipmentInfos: [{carrier: '', shipmentId: '', trackingId: ''}],
    trackingId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"carrier":"","lineItems":[{"lineItemId":"","productId":"","quantity":0}],"operationId":"","shipmentGroupId":"","shipmentId":"","shipmentInfos":[{"carrier":"","shipmentId":"","trackingId":""}],"trackingId":""}'
};

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 = @{ @"carrier": @"",
                              @"lineItems": @[ @{ @"lineItemId": @"", @"productId": @"", @"quantity": @0 } ],
                              @"operationId": @"",
                              @"shipmentGroupId": @"",
                              @"shipmentId": @"",
                              @"shipmentInfos": @[ @{ @"carrier": @"", @"shipmentId": @"", @"trackingId": @"" } ],
                              @"trackingId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems"]
                                                       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}}/:merchantId/orders/:orderId/shipLineItems" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems",
  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([
    'carrier' => '',
    'lineItems' => [
        [
                'lineItemId' => '',
                'productId' => '',
                'quantity' => 0
        ]
    ],
    'operationId' => '',
    'shipmentGroupId' => '',
    'shipmentId' => '',
    'shipmentInfos' => [
        [
                'carrier' => '',
                'shipmentId' => '',
                'trackingId' => ''
        ]
    ],
    'trackingId' => ''
  ]),
  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}}/:merchantId/orders/:orderId/shipLineItems', [
  'body' => '{
  "carrier": "",
  "lineItems": [
    {
      "lineItemId": "",
      "productId": "",
      "quantity": 0
    }
  ],
  "operationId": "",
  "shipmentGroupId": "",
  "shipmentId": "",
  "shipmentInfos": [
    {
      "carrier": "",
      "shipmentId": "",
      "trackingId": ""
    }
  ],
  "trackingId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'carrier' => '',
  'lineItems' => [
    [
        'lineItemId' => '',
        'productId' => '',
        'quantity' => 0
    ]
  ],
  'operationId' => '',
  'shipmentGroupId' => '',
  'shipmentId' => '',
  'shipmentInfos' => [
    [
        'carrier' => '',
        'shipmentId' => '',
        'trackingId' => ''
    ]
  ],
  'trackingId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'carrier' => '',
  'lineItems' => [
    [
        'lineItemId' => '',
        'productId' => '',
        'quantity' => 0
    ]
  ],
  'operationId' => '',
  'shipmentGroupId' => '',
  'shipmentId' => '',
  'shipmentInfos' => [
    [
        'carrier' => '',
        'shipmentId' => '',
        'trackingId' => ''
    ]
  ],
  'trackingId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems');
$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}}/:merchantId/orders/:orderId/shipLineItems' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "carrier": "",
  "lineItems": [
    {
      "lineItemId": "",
      "productId": "",
      "quantity": 0
    }
  ],
  "operationId": "",
  "shipmentGroupId": "",
  "shipmentId": "",
  "shipmentInfos": [
    {
      "carrier": "",
      "shipmentId": "",
      "trackingId": ""
    }
  ],
  "trackingId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "carrier": "",
  "lineItems": [
    {
      "lineItemId": "",
      "productId": "",
      "quantity": 0
    }
  ],
  "operationId": "",
  "shipmentGroupId": "",
  "shipmentId": "",
  "shipmentInfos": [
    {
      "carrier": "",
      "shipmentId": "",
      "trackingId": ""
    }
  ],
  "trackingId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/shipLineItems", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems"

payload = {
    "carrier": "",
    "lineItems": [
        {
            "lineItemId": "",
            "productId": "",
            "quantity": 0
        }
    ],
    "operationId": "",
    "shipmentGroupId": "",
    "shipmentId": "",
    "shipmentInfos": [
        {
            "carrier": "",
            "shipmentId": "",
            "trackingId": ""
        }
    ],
    "trackingId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems"

payload <- "{\n  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\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}}/:merchantId/orders/:orderId/shipLineItems")

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  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\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/:merchantId/orders/:orderId/shipLineItems') do |req|
  req.body = "{\n  \"carrier\": \"\",\n  \"lineItems\": [\n    {\n      \"lineItemId\": \"\",\n      \"productId\": \"\",\n      \"quantity\": 0\n    }\n  ],\n  \"operationId\": \"\",\n  \"shipmentGroupId\": \"\",\n  \"shipmentId\": \"\",\n  \"shipmentInfos\": [\n    {\n      \"carrier\": \"\",\n      \"shipmentId\": \"\",\n      \"trackingId\": \"\"\n    }\n  ],\n  \"trackingId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems";

    let payload = json!({
        "carrier": "",
        "lineItems": (
            json!({
                "lineItemId": "",
                "productId": "",
                "quantity": 0
            })
        ),
        "operationId": "",
        "shipmentGroupId": "",
        "shipmentId": "",
        "shipmentInfos": (
            json!({
                "carrier": "",
                "shipmentId": "",
                "trackingId": ""
            })
        ),
        "trackingId": ""
    });

    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}}/:merchantId/orders/:orderId/shipLineItems \
  --header 'content-type: application/json' \
  --data '{
  "carrier": "",
  "lineItems": [
    {
      "lineItemId": "",
      "productId": "",
      "quantity": 0
    }
  ],
  "operationId": "",
  "shipmentGroupId": "",
  "shipmentId": "",
  "shipmentInfos": [
    {
      "carrier": "",
      "shipmentId": "",
      "trackingId": ""
    }
  ],
  "trackingId": ""
}'
echo '{
  "carrier": "",
  "lineItems": [
    {
      "lineItemId": "",
      "productId": "",
      "quantity": 0
    }
  ],
  "operationId": "",
  "shipmentGroupId": "",
  "shipmentId": "",
  "shipmentInfos": [
    {
      "carrier": "",
      "shipmentId": "",
      "trackingId": ""
    }
  ],
  "trackingId": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/shipLineItems \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "carrier": "",\n  "lineItems": [\n    {\n      "lineItemId": "",\n      "productId": "",\n      "quantity": 0\n    }\n  ],\n  "operationId": "",\n  "shipmentGroupId": "",\n  "shipmentId": "",\n  "shipmentInfos": [\n    {\n      "carrier": "",\n      "shipmentId": "",\n      "trackingId": ""\n    }\n  ],\n  "trackingId": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/shipLineItems
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "carrier": "",
  "lineItems": [
    [
      "lineItemId": "",
      "productId": "",
      "quantity": 0
    ]
  ],
  "operationId": "",
  "shipmentGroupId": "",
  "shipmentId": "",
  "shipmentInfos": [
    [
      "carrier": "",
      "shipmentId": "",
      "trackingId": ""
    ]
  ],
  "trackingId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/shipLineItems")! 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()
POST content.orders.updatelineitemshippingdetails
{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails
QUERY PARAMS

merchantId
orderId
BODY json

{
  "deliverByDate": "",
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "shipByDate": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails");

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  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails" {:content-type :json
                                                                                                      :form-params {:deliverByDate ""
                                                                                                                    :lineItemId ""
                                                                                                                    :operationId ""
                                                                                                                    :productId ""
                                                                                                                    :shipByDate ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\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}}/:merchantId/orders/:orderId/updateLineItemShippingDetails"),
    Content = new StringContent("{\n  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\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}}/:merchantId/orders/:orderId/updateLineItemShippingDetails");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails"

	payload := strings.NewReader("{\n  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\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/:merchantId/orders/:orderId/updateLineItemShippingDetails HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 105

{
  "deliverByDate": "",
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "shipByDate": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\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  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails")
  .header("content-type", "application/json")
  .body("{\n  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  deliverByDate: '',
  lineItemId: '',
  operationId: '',
  productId: '',
  shipByDate: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails',
  headers: {'content-type': 'application/json'},
  data: {
    deliverByDate: '',
    lineItemId: '',
    operationId: '',
    productId: '',
    shipByDate: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"deliverByDate":"","lineItemId":"","operationId":"","productId":"","shipByDate":""}'
};

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}}/:merchantId/orders/:orderId/updateLineItemShippingDetails',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "deliverByDate": "",\n  "lineItemId": "",\n  "operationId": "",\n  "productId": "",\n  "shipByDate": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails")
  .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/:merchantId/orders/:orderId/updateLineItemShippingDetails',
  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({
  deliverByDate: '',
  lineItemId: '',
  operationId: '',
  productId: '',
  shipByDate: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails',
  headers: {'content-type': 'application/json'},
  body: {
    deliverByDate: '',
    lineItemId: '',
    operationId: '',
    productId: '',
    shipByDate: ''
  },
  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}}/:merchantId/orders/:orderId/updateLineItemShippingDetails');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  deliverByDate: '',
  lineItemId: '',
  operationId: '',
  productId: '',
  shipByDate: ''
});

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}}/:merchantId/orders/:orderId/updateLineItemShippingDetails',
  headers: {'content-type': 'application/json'},
  data: {
    deliverByDate: '',
    lineItemId: '',
    operationId: '',
    productId: '',
    shipByDate: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"deliverByDate":"","lineItemId":"","operationId":"","productId":"","shipByDate":""}'
};

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 = @{ @"deliverByDate": @"",
                              @"lineItemId": @"",
                              @"operationId": @"",
                              @"productId": @"",
                              @"shipByDate": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails"]
                                                       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}}/:merchantId/orders/:orderId/updateLineItemShippingDetails" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails",
  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([
    'deliverByDate' => '',
    'lineItemId' => '',
    'operationId' => '',
    'productId' => '',
    'shipByDate' => ''
  ]),
  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}}/:merchantId/orders/:orderId/updateLineItemShippingDetails', [
  'body' => '{
  "deliverByDate": "",
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "shipByDate": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'deliverByDate' => '',
  'lineItemId' => '',
  'operationId' => '',
  'productId' => '',
  'shipByDate' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'deliverByDate' => '',
  'lineItemId' => '',
  'operationId' => '',
  'productId' => '',
  'shipByDate' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails');
$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}}/:merchantId/orders/:orderId/updateLineItemShippingDetails' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "deliverByDate": "",
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "shipByDate": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "deliverByDate": "",
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "shipByDate": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/updateLineItemShippingDetails", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails"

payload = {
    "deliverByDate": "",
    "lineItemId": "",
    "operationId": "",
    "productId": "",
    "shipByDate": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails"

payload <- "{\n  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\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}}/:merchantId/orders/:orderId/updateLineItemShippingDetails")

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  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\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/:merchantId/orders/:orderId/updateLineItemShippingDetails') do |req|
  req.body = "{\n  \"deliverByDate\": \"\",\n  \"lineItemId\": \"\",\n  \"operationId\": \"\",\n  \"productId\": \"\",\n  \"shipByDate\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails";

    let payload = json!({
        "deliverByDate": "",
        "lineItemId": "",
        "operationId": "",
        "productId": "",
        "shipByDate": ""
    });

    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}}/:merchantId/orders/:orderId/updateLineItemShippingDetails \
  --header 'content-type: application/json' \
  --data '{
  "deliverByDate": "",
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "shipByDate": ""
}'
echo '{
  "deliverByDate": "",
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "shipByDate": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "deliverByDate": "",\n  "lineItemId": "",\n  "operationId": "",\n  "productId": "",\n  "shipByDate": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "deliverByDate": "",
  "lineItemId": "",
  "operationId": "",
  "productId": "",
  "shipByDate": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/updateLineItemShippingDetails")! 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()
POST content.orders.updatemerchantorderid
{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId
QUERY PARAMS

merchantId
orderId
BODY json

{
  "merchantOrderId": "",
  "operationId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId");

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  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId" {:content-type :json
                                                                                              :form-params {:merchantOrderId ""
                                                                                                            :operationId ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\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}}/:merchantId/orders/:orderId/updateMerchantOrderId"),
    Content = new StringContent("{\n  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\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}}/:merchantId/orders/:orderId/updateMerchantOrderId");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId"

	payload := strings.NewReader("{\n  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\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/:merchantId/orders/:orderId/updateMerchantOrderId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 48

{
  "merchantOrderId": "",
  "operationId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\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  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId")
  .header("content-type", "application/json")
  .body("{\n  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  merchantOrderId: '',
  operationId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId',
  headers: {'content-type': 'application/json'},
  data: {merchantOrderId: '', operationId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"merchantOrderId":"","operationId":""}'
};

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}}/:merchantId/orders/:orderId/updateMerchantOrderId',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "merchantOrderId": "",\n  "operationId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId")
  .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/:merchantId/orders/:orderId/updateMerchantOrderId',
  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({merchantOrderId: '', operationId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId',
  headers: {'content-type': 'application/json'},
  body: {merchantOrderId: '', operationId: ''},
  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}}/:merchantId/orders/:orderId/updateMerchantOrderId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  merchantOrderId: '',
  operationId: ''
});

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}}/:merchantId/orders/:orderId/updateMerchantOrderId',
  headers: {'content-type': 'application/json'},
  data: {merchantOrderId: '', operationId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"merchantOrderId":"","operationId":""}'
};

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 = @{ @"merchantOrderId": @"",
                              @"operationId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId"]
                                                       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}}/:merchantId/orders/:orderId/updateMerchantOrderId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId",
  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([
    'merchantOrderId' => '',
    'operationId' => ''
  ]),
  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}}/:merchantId/orders/:orderId/updateMerchantOrderId', [
  'body' => '{
  "merchantOrderId": "",
  "operationId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'merchantOrderId' => '',
  'operationId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'merchantOrderId' => '',
  'operationId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId');
$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}}/:merchantId/orders/:orderId/updateMerchantOrderId' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "merchantOrderId": "",
  "operationId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "merchantOrderId": "",
  "operationId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/updateMerchantOrderId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId"

payload = {
    "merchantOrderId": "",
    "operationId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId"

payload <- "{\n  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\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}}/:merchantId/orders/:orderId/updateMerchantOrderId")

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  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\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/:merchantId/orders/:orderId/updateMerchantOrderId') do |req|
  req.body = "{\n  \"merchantOrderId\": \"\",\n  \"operationId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId";

    let payload = json!({
        "merchantOrderId": "",
        "operationId": ""
    });

    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}}/:merchantId/orders/:orderId/updateMerchantOrderId \
  --header 'content-type: application/json' \
  --data '{
  "merchantOrderId": "",
  "operationId": ""
}'
echo '{
  "merchantOrderId": "",
  "operationId": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "merchantOrderId": "",\n  "operationId": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "merchantOrderId": "",
  "operationId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/updateMerchantOrderId")! 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()
POST content.orders.updateshipment
{{baseUrl}}/:merchantId/orders/:orderId/updateShipment
QUERY PARAMS

merchantId
orderId
BODY json

{
  "carrier": "",
  "deliveryDate": "",
  "operationId": "",
  "shipmentId": "",
  "status": "",
  "trackingId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/orders/:orderId/updateShipment");

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  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/orders/:orderId/updateShipment" {:content-type :json
                                                                                       :form-params {:carrier ""
                                                                                                     :deliveryDate ""
                                                                                                     :operationId ""
                                                                                                     :shipmentId ""
                                                                                                     :status ""
                                                                                                     :trackingId ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/orders/:orderId/updateShipment"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\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}}/:merchantId/orders/:orderId/updateShipment"),
    Content = new StringContent("{\n  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\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}}/:merchantId/orders/:orderId/updateShipment");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/orders/:orderId/updateShipment"

	payload := strings.NewReader("{\n  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\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/:merchantId/orders/:orderId/updateShipment HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 118

{
  "carrier": "",
  "deliveryDate": "",
  "operationId": "",
  "shipmentId": "",
  "status": "",
  "trackingId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/orders/:orderId/updateShipment")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/orders/:orderId/updateShipment"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\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  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/updateShipment")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/orders/:orderId/updateShipment")
  .header("content-type", "application/json")
  .body("{\n  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  carrier: '',
  deliveryDate: '',
  operationId: '',
  shipmentId: '',
  status: '',
  trackingId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/orders/:orderId/updateShipment');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/updateShipment',
  headers: {'content-type': 'application/json'},
  data: {
    carrier: '',
    deliveryDate: '',
    operationId: '',
    shipmentId: '',
    status: '',
    trackingId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/orders/:orderId/updateShipment';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"carrier":"","deliveryDate":"","operationId":"","shipmentId":"","status":"","trackingId":""}'
};

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}}/:merchantId/orders/:orderId/updateShipment',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "carrier": "",\n  "deliveryDate": "",\n  "operationId": "",\n  "shipmentId": "",\n  "status": "",\n  "trackingId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/orders/:orderId/updateShipment")
  .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/:merchantId/orders/:orderId/updateShipment',
  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({
  carrier: '',
  deliveryDate: '',
  operationId: '',
  shipmentId: '',
  status: '',
  trackingId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/orders/:orderId/updateShipment',
  headers: {'content-type': 'application/json'},
  body: {
    carrier: '',
    deliveryDate: '',
    operationId: '',
    shipmentId: '',
    status: '',
    trackingId: ''
  },
  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}}/:merchantId/orders/:orderId/updateShipment');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  carrier: '',
  deliveryDate: '',
  operationId: '',
  shipmentId: '',
  status: '',
  trackingId: ''
});

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}}/:merchantId/orders/:orderId/updateShipment',
  headers: {'content-type': 'application/json'},
  data: {
    carrier: '',
    deliveryDate: '',
    operationId: '',
    shipmentId: '',
    status: '',
    trackingId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/orders/:orderId/updateShipment';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"carrier":"","deliveryDate":"","operationId":"","shipmentId":"","status":"","trackingId":""}'
};

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 = @{ @"carrier": @"",
                              @"deliveryDate": @"",
                              @"operationId": @"",
                              @"shipmentId": @"",
                              @"status": @"",
                              @"trackingId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/orders/:orderId/updateShipment"]
                                                       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}}/:merchantId/orders/:orderId/updateShipment" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/orders/:orderId/updateShipment",
  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([
    'carrier' => '',
    'deliveryDate' => '',
    'operationId' => '',
    'shipmentId' => '',
    'status' => '',
    'trackingId' => ''
  ]),
  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}}/:merchantId/orders/:orderId/updateShipment', [
  'body' => '{
  "carrier": "",
  "deliveryDate": "",
  "operationId": "",
  "shipmentId": "",
  "status": "",
  "trackingId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/orders/:orderId/updateShipment');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'carrier' => '',
  'deliveryDate' => '',
  'operationId' => '',
  'shipmentId' => '',
  'status' => '',
  'trackingId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'carrier' => '',
  'deliveryDate' => '',
  'operationId' => '',
  'shipmentId' => '',
  'status' => '',
  'trackingId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/orders/:orderId/updateShipment');
$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}}/:merchantId/orders/:orderId/updateShipment' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "carrier": "",
  "deliveryDate": "",
  "operationId": "",
  "shipmentId": "",
  "status": "",
  "trackingId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/orders/:orderId/updateShipment' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "carrier": "",
  "deliveryDate": "",
  "operationId": "",
  "shipmentId": "",
  "status": "",
  "trackingId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/orders/:orderId/updateShipment", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/orders/:orderId/updateShipment"

payload = {
    "carrier": "",
    "deliveryDate": "",
    "operationId": "",
    "shipmentId": "",
    "status": "",
    "trackingId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/orders/:orderId/updateShipment"

payload <- "{\n  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\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}}/:merchantId/orders/:orderId/updateShipment")

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  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\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/:merchantId/orders/:orderId/updateShipment') do |req|
  req.body = "{\n  \"carrier\": \"\",\n  \"deliveryDate\": \"\",\n  \"operationId\": \"\",\n  \"shipmentId\": \"\",\n  \"status\": \"\",\n  \"trackingId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/orders/:orderId/updateShipment";

    let payload = json!({
        "carrier": "",
        "deliveryDate": "",
        "operationId": "",
        "shipmentId": "",
        "status": "",
        "trackingId": ""
    });

    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}}/:merchantId/orders/:orderId/updateShipment \
  --header 'content-type: application/json' \
  --data '{
  "carrier": "",
  "deliveryDate": "",
  "operationId": "",
  "shipmentId": "",
  "status": "",
  "trackingId": ""
}'
echo '{
  "carrier": "",
  "deliveryDate": "",
  "operationId": "",
  "shipmentId": "",
  "status": "",
  "trackingId": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/orders/:orderId/updateShipment \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "carrier": "",\n  "deliveryDate": "",\n  "operationId": "",\n  "shipmentId": "",\n  "status": "",\n  "trackingId": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/orders/:orderId/updateShipment
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "carrier": "",
  "deliveryDate": "",
  "operationId": "",
  "shipmentId": "",
  "status": "",
  "trackingId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/orders/:orderId/updateShipment")! 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()
POST content.pos.custombatch
{{baseUrl}}/pos/batch
BODY json

{
  "entries": [
    {
      "batchId": 0,
      "inventory": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {
          "currency": "",
          "value": ""
        },
        "quantity": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "merchantId": "",
      "method": "",
      "sale": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {},
        "quantity": "",
        "saleId": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "store": {
        "gcidCategory": [],
        "kind": "",
        "phoneNumber": "",
        "placeId": "",
        "storeAddress": "",
        "storeCode": "",
        "storeName": "",
        "websiteUrl": ""
      },
      "storeCode": "",
      "targetMerchantId": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pos/batch");

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  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/pos/batch" {:content-type :json
                                                      :form-params {:entries [{:batchId 0
                                                                               :inventory {:contentLanguage ""
                                                                                           :gtin ""
                                                                                           :itemId ""
                                                                                           :kind ""
                                                                                           :price {:currency ""
                                                                                                   :value ""}
                                                                                           :quantity ""
                                                                                           :storeCode ""
                                                                                           :targetCountry ""
                                                                                           :timestamp ""}
                                                                               :merchantId ""
                                                                               :method ""
                                                                               :sale {:contentLanguage ""
                                                                                      :gtin ""
                                                                                      :itemId ""
                                                                                      :kind ""
                                                                                      :price {}
                                                                                      :quantity ""
                                                                                      :saleId ""
                                                                                      :storeCode ""
                                                                                      :targetCountry ""
                                                                                      :timestamp ""}
                                                                               :store {:gcidCategory []
                                                                                       :kind ""
                                                                                       :phoneNumber ""
                                                                                       :placeId ""
                                                                                       :storeAddress ""
                                                                                       :storeCode ""
                                                                                       :storeName ""
                                                                                       :websiteUrl ""}
                                                                               :storeCode ""
                                                                               :targetMerchantId ""}]}})
require "http/client"

url = "{{baseUrl}}/pos/batch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/pos/batch"),
    Content = new StringContent("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/pos/batch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pos/batch"

	payload := strings.NewReader("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/pos/batch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 943

{
  "entries": [
    {
      "batchId": 0,
      "inventory": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {
          "currency": "",
          "value": ""
        },
        "quantity": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "merchantId": "",
      "method": "",
      "sale": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {},
        "quantity": "",
        "saleId": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "store": {
        "gcidCategory": [],
        "kind": "",
        "phoneNumber": "",
        "placeId": "",
        "storeAddress": "",
        "storeCode": "",
        "storeName": "",
        "websiteUrl": ""
      },
      "storeCode": "",
      "targetMerchantId": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/pos/batch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pos/batch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/pos/batch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/pos/batch")
  .header("content-type", "application/json")
  .body("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  entries: [
    {
      batchId: 0,
      inventory: {
        contentLanguage: '',
        gtin: '',
        itemId: '',
        kind: '',
        price: {
          currency: '',
          value: ''
        },
        quantity: '',
        storeCode: '',
        targetCountry: '',
        timestamp: ''
      },
      merchantId: '',
      method: '',
      sale: {
        contentLanguage: '',
        gtin: '',
        itemId: '',
        kind: '',
        price: {},
        quantity: '',
        saleId: '',
        storeCode: '',
        targetCountry: '',
        timestamp: ''
      },
      store: {
        gcidCategory: [],
        kind: '',
        phoneNumber: '',
        placeId: '',
        storeAddress: '',
        storeCode: '',
        storeName: '',
        websiteUrl: ''
      },
      storeCode: '',
      targetMerchantId: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/pos/batch');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/pos/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        batchId: 0,
        inventory: {
          contentLanguage: '',
          gtin: '',
          itemId: '',
          kind: '',
          price: {currency: '', value: ''},
          quantity: '',
          storeCode: '',
          targetCountry: '',
          timestamp: ''
        },
        merchantId: '',
        method: '',
        sale: {
          contentLanguage: '',
          gtin: '',
          itemId: '',
          kind: '',
          price: {},
          quantity: '',
          saleId: '',
          storeCode: '',
          targetCountry: '',
          timestamp: ''
        },
        store: {
          gcidCategory: [],
          kind: '',
          phoneNumber: '',
          placeId: '',
          storeAddress: '',
          storeCode: '',
          storeName: '',
          websiteUrl: ''
        },
        storeCode: '',
        targetMerchantId: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pos/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"batchId":0,"inventory":{"contentLanguage":"","gtin":"","itemId":"","kind":"","price":{"currency":"","value":""},"quantity":"","storeCode":"","targetCountry":"","timestamp":""},"merchantId":"","method":"","sale":{"contentLanguage":"","gtin":"","itemId":"","kind":"","price":{},"quantity":"","saleId":"","storeCode":"","targetCountry":"","timestamp":""},"store":{"gcidCategory":[],"kind":"","phoneNumber":"","placeId":"","storeAddress":"","storeCode":"","storeName":"","websiteUrl":""},"storeCode":"","targetMerchantId":""}]}'
};

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}}/pos/batch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entries": [\n    {\n      "batchId": 0,\n      "inventory": {\n        "contentLanguage": "",\n        "gtin": "",\n        "itemId": "",\n        "kind": "",\n        "price": {\n          "currency": "",\n          "value": ""\n        },\n        "quantity": "",\n        "storeCode": "",\n        "targetCountry": "",\n        "timestamp": ""\n      },\n      "merchantId": "",\n      "method": "",\n      "sale": {\n        "contentLanguage": "",\n        "gtin": "",\n        "itemId": "",\n        "kind": "",\n        "price": {},\n        "quantity": "",\n        "saleId": "",\n        "storeCode": "",\n        "targetCountry": "",\n        "timestamp": ""\n      },\n      "store": {\n        "gcidCategory": [],\n        "kind": "",\n        "phoneNumber": "",\n        "placeId": "",\n        "storeAddress": "",\n        "storeCode": "",\n        "storeName": "",\n        "websiteUrl": ""\n      },\n      "storeCode": "",\n      "targetMerchantId": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/pos/batch")
  .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/pos/batch',
  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({
  entries: [
    {
      batchId: 0,
      inventory: {
        contentLanguage: '',
        gtin: '',
        itemId: '',
        kind: '',
        price: {currency: '', value: ''},
        quantity: '',
        storeCode: '',
        targetCountry: '',
        timestamp: ''
      },
      merchantId: '',
      method: '',
      sale: {
        contentLanguage: '',
        gtin: '',
        itemId: '',
        kind: '',
        price: {},
        quantity: '',
        saleId: '',
        storeCode: '',
        targetCountry: '',
        timestamp: ''
      },
      store: {
        gcidCategory: [],
        kind: '',
        phoneNumber: '',
        placeId: '',
        storeAddress: '',
        storeCode: '',
        storeName: '',
        websiteUrl: ''
      },
      storeCode: '',
      targetMerchantId: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/pos/batch',
  headers: {'content-type': 'application/json'},
  body: {
    entries: [
      {
        batchId: 0,
        inventory: {
          contentLanguage: '',
          gtin: '',
          itemId: '',
          kind: '',
          price: {currency: '', value: ''},
          quantity: '',
          storeCode: '',
          targetCountry: '',
          timestamp: ''
        },
        merchantId: '',
        method: '',
        sale: {
          contentLanguage: '',
          gtin: '',
          itemId: '',
          kind: '',
          price: {},
          quantity: '',
          saleId: '',
          storeCode: '',
          targetCountry: '',
          timestamp: ''
        },
        store: {
          gcidCategory: [],
          kind: '',
          phoneNumber: '',
          placeId: '',
          storeAddress: '',
          storeCode: '',
          storeName: '',
          websiteUrl: ''
        },
        storeCode: '',
        targetMerchantId: ''
      }
    ]
  },
  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}}/pos/batch');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  entries: [
    {
      batchId: 0,
      inventory: {
        contentLanguage: '',
        gtin: '',
        itemId: '',
        kind: '',
        price: {
          currency: '',
          value: ''
        },
        quantity: '',
        storeCode: '',
        targetCountry: '',
        timestamp: ''
      },
      merchantId: '',
      method: '',
      sale: {
        contentLanguage: '',
        gtin: '',
        itemId: '',
        kind: '',
        price: {},
        quantity: '',
        saleId: '',
        storeCode: '',
        targetCountry: '',
        timestamp: ''
      },
      store: {
        gcidCategory: [],
        kind: '',
        phoneNumber: '',
        placeId: '',
        storeAddress: '',
        storeCode: '',
        storeName: '',
        websiteUrl: ''
      },
      storeCode: '',
      targetMerchantId: ''
    }
  ]
});

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}}/pos/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        batchId: 0,
        inventory: {
          contentLanguage: '',
          gtin: '',
          itemId: '',
          kind: '',
          price: {currency: '', value: ''},
          quantity: '',
          storeCode: '',
          targetCountry: '',
          timestamp: ''
        },
        merchantId: '',
        method: '',
        sale: {
          contentLanguage: '',
          gtin: '',
          itemId: '',
          kind: '',
          price: {},
          quantity: '',
          saleId: '',
          storeCode: '',
          targetCountry: '',
          timestamp: ''
        },
        store: {
          gcidCategory: [],
          kind: '',
          phoneNumber: '',
          placeId: '',
          storeAddress: '',
          storeCode: '',
          storeName: '',
          websiteUrl: ''
        },
        storeCode: '',
        targetMerchantId: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pos/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"batchId":0,"inventory":{"contentLanguage":"","gtin":"","itemId":"","kind":"","price":{"currency":"","value":""},"quantity":"","storeCode":"","targetCountry":"","timestamp":""},"merchantId":"","method":"","sale":{"contentLanguage":"","gtin":"","itemId":"","kind":"","price":{},"quantity":"","saleId":"","storeCode":"","targetCountry":"","timestamp":""},"store":{"gcidCategory":[],"kind":"","phoneNumber":"","placeId":"","storeAddress":"","storeCode":"","storeName":"","websiteUrl":""},"storeCode":"","targetMerchantId":""}]}'
};

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 = @{ @"entries": @[ @{ @"batchId": @0, @"inventory": @{ @"contentLanguage": @"", @"gtin": @"", @"itemId": @"", @"kind": @"", @"price": @{ @"currency": @"", @"value": @"" }, @"quantity": @"", @"storeCode": @"", @"targetCountry": @"", @"timestamp": @"" }, @"merchantId": @"", @"method": @"", @"sale": @{ @"contentLanguage": @"", @"gtin": @"", @"itemId": @"", @"kind": @"", @"price": @{  }, @"quantity": @"", @"saleId": @"", @"storeCode": @"", @"targetCountry": @"", @"timestamp": @"" }, @"store": @{ @"gcidCategory": @[  ], @"kind": @"", @"phoneNumber": @"", @"placeId": @"", @"storeAddress": @"", @"storeCode": @"", @"storeName": @"", @"websiteUrl": @"" }, @"storeCode": @"", @"targetMerchantId": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/pos/batch"]
                                                       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}}/pos/batch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pos/batch",
  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([
    'entries' => [
        [
                'batchId' => 0,
                'inventory' => [
                                'contentLanguage' => '',
                                'gtin' => '',
                                'itemId' => '',
                                'kind' => '',
                                'price' => [
                                                                'currency' => '',
                                                                'value' => ''
                                ],
                                'quantity' => '',
                                'storeCode' => '',
                                'targetCountry' => '',
                                'timestamp' => ''
                ],
                'merchantId' => '',
                'method' => '',
                'sale' => [
                                'contentLanguage' => '',
                                'gtin' => '',
                                'itemId' => '',
                                'kind' => '',
                                'price' => [
                                                                
                                ],
                                'quantity' => '',
                                'saleId' => '',
                                'storeCode' => '',
                                'targetCountry' => '',
                                'timestamp' => ''
                ],
                'store' => [
                                'gcidCategory' => [
                                                                
                                ],
                                'kind' => '',
                                'phoneNumber' => '',
                                'placeId' => '',
                                'storeAddress' => '',
                                'storeCode' => '',
                                'storeName' => '',
                                'websiteUrl' => ''
                ],
                'storeCode' => '',
                'targetMerchantId' => ''
        ]
    ]
  ]),
  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}}/pos/batch', [
  'body' => '{
  "entries": [
    {
      "batchId": 0,
      "inventory": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {
          "currency": "",
          "value": ""
        },
        "quantity": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "merchantId": "",
      "method": "",
      "sale": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {},
        "quantity": "",
        "saleId": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "store": {
        "gcidCategory": [],
        "kind": "",
        "phoneNumber": "",
        "placeId": "",
        "storeAddress": "",
        "storeCode": "",
        "storeName": "",
        "websiteUrl": ""
      },
      "storeCode": "",
      "targetMerchantId": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/pos/batch');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entries' => [
    [
        'batchId' => 0,
        'inventory' => [
                'contentLanguage' => '',
                'gtin' => '',
                'itemId' => '',
                'kind' => '',
                'price' => [
                                'currency' => '',
                                'value' => ''
                ],
                'quantity' => '',
                'storeCode' => '',
                'targetCountry' => '',
                'timestamp' => ''
        ],
        'merchantId' => '',
        'method' => '',
        'sale' => [
                'contentLanguage' => '',
                'gtin' => '',
                'itemId' => '',
                'kind' => '',
                'price' => [
                                
                ],
                'quantity' => '',
                'saleId' => '',
                'storeCode' => '',
                'targetCountry' => '',
                'timestamp' => ''
        ],
        'store' => [
                'gcidCategory' => [
                                
                ],
                'kind' => '',
                'phoneNumber' => '',
                'placeId' => '',
                'storeAddress' => '',
                'storeCode' => '',
                'storeName' => '',
                'websiteUrl' => ''
        ],
        'storeCode' => '',
        'targetMerchantId' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'entries' => [
    [
        'batchId' => 0,
        'inventory' => [
                'contentLanguage' => '',
                'gtin' => '',
                'itemId' => '',
                'kind' => '',
                'price' => [
                                'currency' => '',
                                'value' => ''
                ],
                'quantity' => '',
                'storeCode' => '',
                'targetCountry' => '',
                'timestamp' => ''
        ],
        'merchantId' => '',
        'method' => '',
        'sale' => [
                'contentLanguage' => '',
                'gtin' => '',
                'itemId' => '',
                'kind' => '',
                'price' => [
                                
                ],
                'quantity' => '',
                'saleId' => '',
                'storeCode' => '',
                'targetCountry' => '',
                'timestamp' => ''
        ],
        'store' => [
                'gcidCategory' => [
                                
                ],
                'kind' => '',
                'phoneNumber' => '',
                'placeId' => '',
                'storeAddress' => '',
                'storeCode' => '',
                'storeName' => '',
                'websiteUrl' => ''
        ],
        'storeCode' => '',
        'targetMerchantId' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/pos/batch');
$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}}/pos/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "batchId": 0,
      "inventory": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {
          "currency": "",
          "value": ""
        },
        "quantity": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "merchantId": "",
      "method": "",
      "sale": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {},
        "quantity": "",
        "saleId": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "store": {
        "gcidCategory": [],
        "kind": "",
        "phoneNumber": "",
        "placeId": "",
        "storeAddress": "",
        "storeCode": "",
        "storeName": "",
        "websiteUrl": ""
      },
      "storeCode": "",
      "targetMerchantId": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pos/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "batchId": 0,
      "inventory": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {
          "currency": "",
          "value": ""
        },
        "quantity": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "merchantId": "",
      "method": "",
      "sale": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {},
        "quantity": "",
        "saleId": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "store": {
        "gcidCategory": [],
        "kind": "",
        "phoneNumber": "",
        "placeId": "",
        "storeAddress": "",
        "storeCode": "",
        "storeName": "",
        "websiteUrl": ""
      },
      "storeCode": "",
      "targetMerchantId": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/pos/batch", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pos/batch"

payload = { "entries": [
        {
            "batchId": 0,
            "inventory": {
                "contentLanguage": "",
                "gtin": "",
                "itemId": "",
                "kind": "",
                "price": {
                    "currency": "",
                    "value": ""
                },
                "quantity": "",
                "storeCode": "",
                "targetCountry": "",
                "timestamp": ""
            },
            "merchantId": "",
            "method": "",
            "sale": {
                "contentLanguage": "",
                "gtin": "",
                "itemId": "",
                "kind": "",
                "price": {},
                "quantity": "",
                "saleId": "",
                "storeCode": "",
                "targetCountry": "",
                "timestamp": ""
            },
            "store": {
                "gcidCategory": [],
                "kind": "",
                "phoneNumber": "",
                "placeId": "",
                "storeAddress": "",
                "storeCode": "",
                "storeName": "",
                "websiteUrl": ""
            },
            "storeCode": "",
            "targetMerchantId": ""
        }
    ] }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pos/batch"

payload <- "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pos/batch")

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  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/pos/batch') do |req|
  req.body = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"inventory\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"quantity\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"sale\": {\n        \"contentLanguage\": \"\",\n        \"gtin\": \"\",\n        \"itemId\": \"\",\n        \"kind\": \"\",\n        \"price\": {},\n        \"quantity\": \"\",\n        \"saleId\": \"\",\n        \"storeCode\": \"\",\n        \"targetCountry\": \"\",\n        \"timestamp\": \"\"\n      },\n      \"store\": {\n        \"gcidCategory\": [],\n        \"kind\": \"\",\n        \"phoneNumber\": \"\",\n        \"placeId\": \"\",\n        \"storeAddress\": \"\",\n        \"storeCode\": \"\",\n        \"storeName\": \"\",\n        \"websiteUrl\": \"\"\n      },\n      \"storeCode\": \"\",\n      \"targetMerchantId\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/pos/batch";

    let payload = json!({"entries": (
            json!({
                "batchId": 0,
                "inventory": json!({
                    "contentLanguage": "",
                    "gtin": "",
                    "itemId": "",
                    "kind": "",
                    "price": json!({
                        "currency": "",
                        "value": ""
                    }),
                    "quantity": "",
                    "storeCode": "",
                    "targetCountry": "",
                    "timestamp": ""
                }),
                "merchantId": "",
                "method": "",
                "sale": json!({
                    "contentLanguage": "",
                    "gtin": "",
                    "itemId": "",
                    "kind": "",
                    "price": json!({}),
                    "quantity": "",
                    "saleId": "",
                    "storeCode": "",
                    "targetCountry": "",
                    "timestamp": ""
                }),
                "store": json!({
                    "gcidCategory": (),
                    "kind": "",
                    "phoneNumber": "",
                    "placeId": "",
                    "storeAddress": "",
                    "storeCode": "",
                    "storeName": "",
                    "websiteUrl": ""
                }),
                "storeCode": "",
                "targetMerchantId": ""
            })
        )});

    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}}/pos/batch \
  --header 'content-type: application/json' \
  --data '{
  "entries": [
    {
      "batchId": 0,
      "inventory": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {
          "currency": "",
          "value": ""
        },
        "quantity": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "merchantId": "",
      "method": "",
      "sale": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {},
        "quantity": "",
        "saleId": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "store": {
        "gcidCategory": [],
        "kind": "",
        "phoneNumber": "",
        "placeId": "",
        "storeAddress": "",
        "storeCode": "",
        "storeName": "",
        "websiteUrl": ""
      },
      "storeCode": "",
      "targetMerchantId": ""
    }
  ]
}'
echo '{
  "entries": [
    {
      "batchId": 0,
      "inventory": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {
          "currency": "",
          "value": ""
        },
        "quantity": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "merchantId": "",
      "method": "",
      "sale": {
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": {},
        "quantity": "",
        "saleId": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      },
      "store": {
        "gcidCategory": [],
        "kind": "",
        "phoneNumber": "",
        "placeId": "",
        "storeAddress": "",
        "storeCode": "",
        "storeName": "",
        "websiteUrl": ""
      },
      "storeCode": "",
      "targetMerchantId": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/pos/batch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entries": [\n    {\n      "batchId": 0,\n      "inventory": {\n        "contentLanguage": "",\n        "gtin": "",\n        "itemId": "",\n        "kind": "",\n        "price": {\n          "currency": "",\n          "value": ""\n        },\n        "quantity": "",\n        "storeCode": "",\n        "targetCountry": "",\n        "timestamp": ""\n      },\n      "merchantId": "",\n      "method": "",\n      "sale": {\n        "contentLanguage": "",\n        "gtin": "",\n        "itemId": "",\n        "kind": "",\n        "price": {},\n        "quantity": "",\n        "saleId": "",\n        "storeCode": "",\n        "targetCountry": "",\n        "timestamp": ""\n      },\n      "store": {\n        "gcidCategory": [],\n        "kind": "",\n        "phoneNumber": "",\n        "placeId": "",\n        "storeAddress": "",\n        "storeCode": "",\n        "storeName": "",\n        "websiteUrl": ""\n      },\n      "storeCode": "",\n      "targetMerchantId": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/pos/batch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["entries": [
    [
      "batchId": 0,
      "inventory": [
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": [
          "currency": "",
          "value": ""
        ],
        "quantity": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      ],
      "merchantId": "",
      "method": "",
      "sale": [
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "kind": "",
        "price": [],
        "quantity": "",
        "saleId": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
      ],
      "store": [
        "gcidCategory": [],
        "kind": "",
        "phoneNumber": "",
        "placeId": "",
        "storeAddress": "",
        "storeCode": "",
        "storeName": "",
        "websiteUrl": ""
      ],
      "storeCode": "",
      "targetMerchantId": ""
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pos/batch")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE content.pos.delete
{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode
QUERY PARAMS

merchantId
targetMerchantId
storeCode
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")
require "http/client"

url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/:merchantId/pos/:targetMerchantId/store/:storeCode HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/pos/:targetMerchantId/store/:storeCode',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:merchantId/pos/:targetMerchantId/store/:storeCode")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/:merchantId/pos/:targetMerchantId/store/:storeCode') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode
http DELETE {{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.pos.get
{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode
QUERY PARAMS

merchantId
targetMerchantId
storeCode
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")
require "http/client"

url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/pos/:targetMerchantId/store/:storeCode HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/pos/:targetMerchantId/store/:storeCode',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/pos/:targetMerchantId/store/:storeCode")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/pos/:targetMerchantId/store/:storeCode') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode
http GET {{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store/:storeCode")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.pos.insert
{{baseUrl}}/:merchantId/pos/:targetMerchantId/store
QUERY PARAMS

merchantId
targetMerchantId
BODY json

{
  "gcidCategory": [],
  "kind": "",
  "phoneNumber": "",
  "placeId": "",
  "storeAddress": "",
  "storeCode": "",
  "storeName": "",
  "websiteUrl": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store");

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  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store" {:content-type :json
                                                                                    :form-params {:gcidCategory []
                                                                                                  :kind ""
                                                                                                  :phoneNumber ""
                                                                                                  :placeId ""
                                                                                                  :storeAddress ""
                                                                                                  :storeCode ""
                                                                                                  :storeName ""
                                                                                                  :websiteUrl ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\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}}/:merchantId/pos/:targetMerchantId/store"),
    Content = new StringContent("{\n  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\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}}/:merchantId/pos/:targetMerchantId/store");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store"

	payload := strings.NewReader("{\n  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\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/:merchantId/pos/:targetMerchantId/store HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 156

{
  "gcidCategory": [],
  "kind": "",
  "phoneNumber": "",
  "placeId": "",
  "storeAddress": "",
  "storeCode": "",
  "storeName": "",
  "websiteUrl": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\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  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store")
  .header("content-type", "application/json")
  .body("{\n  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  gcidCategory: [],
  kind: '',
  phoneNumber: '',
  placeId: '',
  storeAddress: '',
  storeCode: '',
  storeName: '',
  websiteUrl: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store',
  headers: {'content-type': 'application/json'},
  data: {
    gcidCategory: [],
    kind: '',
    phoneNumber: '',
    placeId: '',
    storeAddress: '',
    storeCode: '',
    storeName: '',
    websiteUrl: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"gcidCategory":[],"kind":"","phoneNumber":"","placeId":"","storeAddress":"","storeCode":"","storeName":"","websiteUrl":""}'
};

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}}/:merchantId/pos/:targetMerchantId/store',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "gcidCategory": [],\n  "kind": "",\n  "phoneNumber": "",\n  "placeId": "",\n  "storeAddress": "",\n  "storeCode": "",\n  "storeName": "",\n  "websiteUrl": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store")
  .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/:merchantId/pos/:targetMerchantId/store',
  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({
  gcidCategory: [],
  kind: '',
  phoneNumber: '',
  placeId: '',
  storeAddress: '',
  storeCode: '',
  storeName: '',
  websiteUrl: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store',
  headers: {'content-type': 'application/json'},
  body: {
    gcidCategory: [],
    kind: '',
    phoneNumber: '',
    placeId: '',
    storeAddress: '',
    storeCode: '',
    storeName: '',
    websiteUrl: ''
  },
  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}}/:merchantId/pos/:targetMerchantId/store');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  gcidCategory: [],
  kind: '',
  phoneNumber: '',
  placeId: '',
  storeAddress: '',
  storeCode: '',
  storeName: '',
  websiteUrl: ''
});

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}}/:merchantId/pos/:targetMerchantId/store',
  headers: {'content-type': 'application/json'},
  data: {
    gcidCategory: [],
    kind: '',
    phoneNumber: '',
    placeId: '',
    storeAddress: '',
    storeCode: '',
    storeName: '',
    websiteUrl: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"gcidCategory":[],"kind":"","phoneNumber":"","placeId":"","storeAddress":"","storeCode":"","storeName":"","websiteUrl":""}'
};

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 = @{ @"gcidCategory": @[  ],
                              @"kind": @"",
                              @"phoneNumber": @"",
                              @"placeId": @"",
                              @"storeAddress": @"",
                              @"storeCode": @"",
                              @"storeName": @"",
                              @"websiteUrl": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/pos/:targetMerchantId/store"]
                                                       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}}/:merchantId/pos/:targetMerchantId/store" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store",
  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([
    'gcidCategory' => [
        
    ],
    'kind' => '',
    'phoneNumber' => '',
    'placeId' => '',
    'storeAddress' => '',
    'storeCode' => '',
    'storeName' => '',
    'websiteUrl' => ''
  ]),
  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}}/:merchantId/pos/:targetMerchantId/store', [
  'body' => '{
  "gcidCategory": [],
  "kind": "",
  "phoneNumber": "",
  "placeId": "",
  "storeAddress": "",
  "storeCode": "",
  "storeName": "",
  "websiteUrl": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/pos/:targetMerchantId/store');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'gcidCategory' => [
    
  ],
  'kind' => '',
  'phoneNumber' => '',
  'placeId' => '',
  'storeAddress' => '',
  'storeCode' => '',
  'storeName' => '',
  'websiteUrl' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'gcidCategory' => [
    
  ],
  'kind' => '',
  'phoneNumber' => '',
  'placeId' => '',
  'storeAddress' => '',
  'storeCode' => '',
  'storeName' => '',
  'websiteUrl' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/pos/:targetMerchantId/store');
$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}}/:merchantId/pos/:targetMerchantId/store' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "gcidCategory": [],
  "kind": "",
  "phoneNumber": "",
  "placeId": "",
  "storeAddress": "",
  "storeCode": "",
  "storeName": "",
  "websiteUrl": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "gcidCategory": [],
  "kind": "",
  "phoneNumber": "",
  "placeId": "",
  "storeAddress": "",
  "storeCode": "",
  "storeName": "",
  "websiteUrl": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/pos/:targetMerchantId/store", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store"

payload = {
    "gcidCategory": [],
    "kind": "",
    "phoneNumber": "",
    "placeId": "",
    "storeAddress": "",
    "storeCode": "",
    "storeName": "",
    "websiteUrl": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store"

payload <- "{\n  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\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}}/:merchantId/pos/:targetMerchantId/store")

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  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\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/:merchantId/pos/:targetMerchantId/store') do |req|
  req.body = "{\n  \"gcidCategory\": [],\n  \"kind\": \"\",\n  \"phoneNumber\": \"\",\n  \"placeId\": \"\",\n  \"storeAddress\": \"\",\n  \"storeCode\": \"\",\n  \"storeName\": \"\",\n  \"websiteUrl\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store";

    let payload = json!({
        "gcidCategory": (),
        "kind": "",
        "phoneNumber": "",
        "placeId": "",
        "storeAddress": "",
        "storeCode": "",
        "storeName": "",
        "websiteUrl": ""
    });

    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}}/:merchantId/pos/:targetMerchantId/store \
  --header 'content-type: application/json' \
  --data '{
  "gcidCategory": [],
  "kind": "",
  "phoneNumber": "",
  "placeId": "",
  "storeAddress": "",
  "storeCode": "",
  "storeName": "",
  "websiteUrl": ""
}'
echo '{
  "gcidCategory": [],
  "kind": "",
  "phoneNumber": "",
  "placeId": "",
  "storeAddress": "",
  "storeCode": "",
  "storeName": "",
  "websiteUrl": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/pos/:targetMerchantId/store \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "gcidCategory": [],\n  "kind": "",\n  "phoneNumber": "",\n  "placeId": "",\n  "storeAddress": "",\n  "storeCode": "",\n  "storeName": "",\n  "websiteUrl": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/pos/:targetMerchantId/store
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "gcidCategory": [],
  "kind": "",
  "phoneNumber": "",
  "placeId": "",
  "storeAddress": "",
  "storeCode": "",
  "storeName": "",
  "websiteUrl": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store")! 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()
POST content.pos.inventory
{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory
QUERY PARAMS

merchantId
targetMerchantId
BODY json

{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory");

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  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory" {:content-type :json
                                                                                        :form-params {:contentLanguage ""
                                                                                                      :gtin ""
                                                                                                      :itemId ""
                                                                                                      :price {:currency ""
                                                                                                              :value ""}
                                                                                                      :quantity ""
                                                                                                      :storeCode ""
                                                                                                      :targetCountry ""
                                                                                                      :timestamp ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\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}}/:merchantId/pos/:targetMerchantId/inventory"),
    Content = new StringContent("{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\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}}/:merchantId/pos/:targetMerchantId/inventory");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory"

	payload := strings.NewReader("{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\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/:merchantId/pos/:targetMerchantId/inventory HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 190

{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\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  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory")
  .header("content-type", "application/json")
  .body("{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  contentLanguage: '',
  gtin: '',
  itemId: '',
  price: {
    currency: '',
    value: ''
  },
  quantity: '',
  storeCode: '',
  targetCountry: '',
  timestamp: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory',
  headers: {'content-type': 'application/json'},
  data: {
    contentLanguage: '',
    gtin: '',
    itemId: '',
    price: {currency: '', value: ''},
    quantity: '',
    storeCode: '',
    targetCountry: '',
    timestamp: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contentLanguage":"","gtin":"","itemId":"","price":{"currency":"","value":""},"quantity":"","storeCode":"","targetCountry":"","timestamp":""}'
};

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}}/:merchantId/pos/:targetMerchantId/inventory',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "contentLanguage": "",\n  "gtin": "",\n  "itemId": "",\n  "price": {\n    "currency": "",\n    "value": ""\n  },\n  "quantity": "",\n  "storeCode": "",\n  "targetCountry": "",\n  "timestamp": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory")
  .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/:merchantId/pos/:targetMerchantId/inventory',
  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({
  contentLanguage: '',
  gtin: '',
  itemId: '',
  price: {currency: '', value: ''},
  quantity: '',
  storeCode: '',
  targetCountry: '',
  timestamp: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory',
  headers: {'content-type': 'application/json'},
  body: {
    contentLanguage: '',
    gtin: '',
    itemId: '',
    price: {currency: '', value: ''},
    quantity: '',
    storeCode: '',
    targetCountry: '',
    timestamp: ''
  },
  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}}/:merchantId/pos/:targetMerchantId/inventory');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  contentLanguage: '',
  gtin: '',
  itemId: '',
  price: {
    currency: '',
    value: ''
  },
  quantity: '',
  storeCode: '',
  targetCountry: '',
  timestamp: ''
});

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}}/:merchantId/pos/:targetMerchantId/inventory',
  headers: {'content-type': 'application/json'},
  data: {
    contentLanguage: '',
    gtin: '',
    itemId: '',
    price: {currency: '', value: ''},
    quantity: '',
    storeCode: '',
    targetCountry: '',
    timestamp: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contentLanguage":"","gtin":"","itemId":"","price":{"currency":"","value":""},"quantity":"","storeCode":"","targetCountry":"","timestamp":""}'
};

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 = @{ @"contentLanguage": @"",
                              @"gtin": @"",
                              @"itemId": @"",
                              @"price": @{ @"currency": @"", @"value": @"" },
                              @"quantity": @"",
                              @"storeCode": @"",
                              @"targetCountry": @"",
                              @"timestamp": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory"]
                                                       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}}/:merchantId/pos/:targetMerchantId/inventory" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory",
  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([
    'contentLanguage' => '',
    'gtin' => '',
    'itemId' => '',
    'price' => [
        'currency' => '',
        'value' => ''
    ],
    'quantity' => '',
    'storeCode' => '',
    'targetCountry' => '',
    'timestamp' => ''
  ]),
  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}}/:merchantId/pos/:targetMerchantId/inventory', [
  'body' => '{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'contentLanguage' => '',
  'gtin' => '',
  'itemId' => '',
  'price' => [
    'currency' => '',
    'value' => ''
  ],
  'quantity' => '',
  'storeCode' => '',
  'targetCountry' => '',
  'timestamp' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'contentLanguage' => '',
  'gtin' => '',
  'itemId' => '',
  'price' => [
    'currency' => '',
    'value' => ''
  ],
  'quantity' => '',
  'storeCode' => '',
  'targetCountry' => '',
  'timestamp' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory');
$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}}/:merchantId/pos/:targetMerchantId/inventory' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/pos/:targetMerchantId/inventory", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory"

payload = {
    "contentLanguage": "",
    "gtin": "",
    "itemId": "",
    "price": {
        "currency": "",
        "value": ""
    },
    "quantity": "",
    "storeCode": "",
    "targetCountry": "",
    "timestamp": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory"

payload <- "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\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}}/:merchantId/pos/:targetMerchantId/inventory")

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  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\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/:merchantId/pos/:targetMerchantId/inventory') do |req|
  req.body = "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory";

    let payload = json!({
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "price": json!({
            "currency": "",
            "value": ""
        }),
        "quantity": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
    });

    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}}/:merchantId/pos/:targetMerchantId/inventory \
  --header 'content-type: application/json' \
  --data '{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}'
echo '{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "contentLanguage": "",\n  "gtin": "",\n  "itemId": "",\n  "price": {\n    "currency": "",\n    "value": ""\n  },\n  "quantity": "",\n  "storeCode": "",\n  "targetCountry": "",\n  "timestamp": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": [
    "currency": "",
    "value": ""
  ],
  "quantity": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/pos/:targetMerchantId/inventory")! 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()
GET content.pos.list
{{baseUrl}}/:merchantId/pos/:targetMerchantId/store
QUERY PARAMS

merchantId
targetMerchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store")
require "http/client"

url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/pos/:targetMerchantId/store HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/pos/:targetMerchantId/store',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/pos/:targetMerchantId/store"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/pos/:targetMerchantId/store');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/pos/:targetMerchantId/store');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/pos/:targetMerchantId/store' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/pos/:targetMerchantId/store")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/pos/:targetMerchantId/store")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/pos/:targetMerchantId/store') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/pos/:targetMerchantId/store
http GET {{baseUrl}}/:merchantId/pos/:targetMerchantId/store
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/pos/:targetMerchantId/store
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/pos/:targetMerchantId/store")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.pos.sale
{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale
QUERY PARAMS

merchantId
targetMerchantId
BODY json

{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "saleId": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/pos/:targetMerchantId/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  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale" {:content-type :json
                                                                                   :form-params {:contentLanguage ""
                                                                                                 :gtin ""
                                                                                                 :itemId ""
                                                                                                 :price {:currency ""
                                                                                                         :value ""}
                                                                                                 :quantity ""
                                                                                                 :saleId ""
                                                                                                 :storeCode ""
                                                                                                 :targetCountry ""
                                                                                                 :timestamp ""}})
require "http/client"

url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\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}}/:merchantId/pos/:targetMerchantId/sale"),
    Content = new StringContent("{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\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}}/:merchantId/pos/:targetMerchantId/sale");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale"

	payload := strings.NewReader("{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\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/:merchantId/pos/:targetMerchantId/sale HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 206

{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "saleId": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\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  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale")
  .header("content-type", "application/json")
  .body("{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  contentLanguage: '',
  gtin: '',
  itemId: '',
  price: {
    currency: '',
    value: ''
  },
  quantity: '',
  saleId: '',
  storeCode: '',
  targetCountry: '',
  timestamp: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale',
  headers: {'content-type': 'application/json'},
  data: {
    contentLanguage: '',
    gtin: '',
    itemId: '',
    price: {currency: '', value: ''},
    quantity: '',
    saleId: '',
    storeCode: '',
    targetCountry: '',
    timestamp: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contentLanguage":"","gtin":"","itemId":"","price":{"currency":"","value":""},"quantity":"","saleId":"","storeCode":"","targetCountry":"","timestamp":""}'
};

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}}/:merchantId/pos/:targetMerchantId/sale',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "contentLanguage": "",\n  "gtin": "",\n  "itemId": "",\n  "price": {\n    "currency": "",\n    "value": ""\n  },\n  "quantity": "",\n  "saleId": "",\n  "storeCode": "",\n  "targetCountry": "",\n  "timestamp": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/pos/:targetMerchantId/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/:merchantId/pos/:targetMerchantId/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({
  contentLanguage: '',
  gtin: '',
  itemId: '',
  price: {currency: '', value: ''},
  quantity: '',
  saleId: '',
  storeCode: '',
  targetCountry: '',
  timestamp: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale',
  headers: {'content-type': 'application/json'},
  body: {
    contentLanguage: '',
    gtin: '',
    itemId: '',
    price: {currency: '', value: ''},
    quantity: '',
    saleId: '',
    storeCode: '',
    targetCountry: '',
    timestamp: ''
  },
  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}}/:merchantId/pos/:targetMerchantId/sale');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  contentLanguage: '',
  gtin: '',
  itemId: '',
  price: {
    currency: '',
    value: ''
  },
  quantity: '',
  saleId: '',
  storeCode: '',
  targetCountry: '',
  timestamp: ''
});

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}}/:merchantId/pos/:targetMerchantId/sale',
  headers: {'content-type': 'application/json'},
  data: {
    contentLanguage: '',
    gtin: '',
    itemId: '',
    price: {currency: '', value: ''},
    quantity: '',
    saleId: '',
    storeCode: '',
    targetCountry: '',
    timestamp: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contentLanguage":"","gtin":"","itemId":"","price":{"currency":"","value":""},"quantity":"","saleId":"","storeCode":"","targetCountry":"","timestamp":""}'
};

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 = @{ @"contentLanguage": @"",
                              @"gtin": @"",
                              @"itemId": @"",
                              @"price": @{ @"currency": @"", @"value": @"" },
                              @"quantity": @"",
                              @"saleId": @"",
                              @"storeCode": @"",
                              @"targetCountry": @"",
                              @"timestamp": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/pos/:targetMerchantId/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}}/:merchantId/pos/:targetMerchantId/sale" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/pos/:targetMerchantId/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([
    'contentLanguage' => '',
    'gtin' => '',
    'itemId' => '',
    'price' => [
        'currency' => '',
        'value' => ''
    ],
    'quantity' => '',
    'saleId' => '',
    'storeCode' => '',
    'targetCountry' => '',
    'timestamp' => ''
  ]),
  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}}/:merchantId/pos/:targetMerchantId/sale', [
  'body' => '{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "saleId": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'contentLanguage' => '',
  'gtin' => '',
  'itemId' => '',
  'price' => [
    'currency' => '',
    'value' => ''
  ],
  'quantity' => '',
  'saleId' => '',
  'storeCode' => '',
  'targetCountry' => '',
  'timestamp' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'contentLanguage' => '',
  'gtin' => '',
  'itemId' => '',
  'price' => [
    'currency' => '',
    'value' => ''
  ],
  'quantity' => '',
  'saleId' => '',
  'storeCode' => '',
  'targetCountry' => '',
  'timestamp' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/pos/:targetMerchantId/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}}/:merchantId/pos/:targetMerchantId/sale' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "saleId": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "saleId": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/pos/:targetMerchantId/sale", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale"

payload = {
    "contentLanguage": "",
    "gtin": "",
    "itemId": "",
    "price": {
        "currency": "",
        "value": ""
    },
    "quantity": "",
    "saleId": "",
    "storeCode": "",
    "targetCountry": "",
    "timestamp": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale"

payload <- "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\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}}/:merchantId/pos/:targetMerchantId/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  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\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/:merchantId/pos/:targetMerchantId/sale') do |req|
  req.body = "{\n  \"contentLanguage\": \"\",\n  \"gtin\": \"\",\n  \"itemId\": \"\",\n  \"price\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"quantity\": \"\",\n  \"saleId\": \"\",\n  \"storeCode\": \"\",\n  \"targetCountry\": \"\",\n  \"timestamp\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/pos/:targetMerchantId/sale";

    let payload = json!({
        "contentLanguage": "",
        "gtin": "",
        "itemId": "",
        "price": json!({
            "currency": "",
            "value": ""
        }),
        "quantity": "",
        "saleId": "",
        "storeCode": "",
        "targetCountry": "",
        "timestamp": ""
    });

    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}}/:merchantId/pos/:targetMerchantId/sale \
  --header 'content-type: application/json' \
  --data '{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "saleId": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}'
echo '{
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": {
    "currency": "",
    "value": ""
  },
  "quantity": "",
  "saleId": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
}' |  \
  http POST {{baseUrl}}/:merchantId/pos/:targetMerchantId/sale \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "contentLanguage": "",\n  "gtin": "",\n  "itemId": "",\n  "price": {\n    "currency": "",\n    "value": ""\n  },\n  "quantity": "",\n  "saleId": "",\n  "storeCode": "",\n  "targetCountry": "",\n  "timestamp": ""\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/pos/:targetMerchantId/sale
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "contentLanguage": "",
  "gtin": "",
  "itemId": "",
  "price": [
    "currency": "",
    "value": ""
  ],
  "quantity": "",
  "saleId": "",
  "storeCode": "",
  "targetCountry": "",
  "timestamp": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/pos/:targetMerchantId/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()
POST content.products.custombatch
{{baseUrl}}/products/batch
BODY json

{
  "entries": [
    {
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "product": {
        "additionalImageLinks": [],
        "additionalProductTypes": [],
        "adult": false,
        "adwordsGrouping": "",
        "adwordsLabels": [],
        "adwordsRedirect": "",
        "ageGroup": "",
        "aspects": [
          {
            "aspectName": "",
            "destinationName": "",
            "intention": ""
          }
        ],
        "availability": "",
        "availabilityDate": "",
        "brand": "",
        "canonicalLink": "",
        "channel": "",
        "color": "",
        "condition": "",
        "contentLanguage": "",
        "costOfGoodsSold": {
          "currency": "",
          "value": ""
        },
        "customAttributes": [
          {
            "name": "",
            "type": "",
            "unit": "",
            "value": ""
          }
        ],
        "customGroups": [
          {
            "attributes": [
              {}
            ],
            "name": ""
          }
        ],
        "customLabel0": "",
        "customLabel1": "",
        "customLabel2": "",
        "customLabel3": "",
        "customLabel4": "",
        "description": "",
        "destinations": [
          {
            "destinationName": "",
            "intention": ""
          }
        ],
        "displayAdsId": "",
        "displayAdsLink": "",
        "displayAdsSimilarIds": [],
        "displayAdsTitle": "",
        "displayAdsValue": "",
        "energyEfficiencyClass": "",
        "expirationDate": "",
        "gender": "",
        "googleProductCategory": "",
        "gtin": "",
        "id": "",
        "identifierExists": false,
        "imageLink": "",
        "installment": {
          "amount": {},
          "months": ""
        },
        "isBundle": false,
        "itemGroupId": "",
        "kind": "",
        "link": "",
        "loyaltyPoints": {
          "name": "",
          "pointsValue": "",
          "ratio": ""
        },
        "material": "",
        "maxEnergyEfficiencyClass": "",
        "maxHandlingTime": "",
        "minEnergyEfficiencyClass": "",
        "minHandlingTime": "",
        "mobileLink": "",
        "mpn": "",
        "multipack": "",
        "offerId": "",
        "onlineOnly": false,
        "pattern": "",
        "price": {},
        "productType": "",
        "promotionIds": [],
        "salePrice": {},
        "salePriceEffectiveDate": "",
        "sellOnGoogleQuantity": "",
        "shipping": [
          {
            "country": "",
            "locationGroupName": "",
            "locationId": "",
            "postalCode": "",
            "price": {},
            "region": "",
            "service": ""
          }
        ],
        "shippingHeight": {
          "unit": "",
          "value": ""
        },
        "shippingLabel": "",
        "shippingLength": {},
        "shippingWeight": {
          "unit": "",
          "value": ""
        },
        "shippingWidth": {},
        "sizeSystem": "",
        "sizeType": "",
        "sizes": [],
        "source": "",
        "targetCountry": "",
        "taxes": [
          {
            "country": "",
            "locationId": "",
            "postalCode": "",
            "rate": "",
            "region": "",
            "taxShip": false
          }
        ],
        "title": "",
        "unitPricingBaseMeasure": {
          "unit": "",
          "value": ""
        },
        "unitPricingMeasure": {
          "unit": "",
          "value": ""
        },
        "validatedDestinations": [],
        "warnings": [
          {
            "domain": "",
            "message": "",
            "reason": ""
          }
        ]
      },
      "productId": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/batch");

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  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/products/batch" {:content-type :json
                                                           :form-params {:entries [{:batchId 0
                                                                                    :merchantId ""
                                                                                    :method ""
                                                                                    :product {:additionalImageLinks []
                                                                                              :additionalProductTypes []
                                                                                              :adult false
                                                                                              :adwordsGrouping ""
                                                                                              :adwordsLabels []
                                                                                              :adwordsRedirect ""
                                                                                              :ageGroup ""
                                                                                              :aspects [{:aspectName ""
                                                                                                         :destinationName ""
                                                                                                         :intention ""}]
                                                                                              :availability ""
                                                                                              :availabilityDate ""
                                                                                              :brand ""
                                                                                              :canonicalLink ""
                                                                                              :channel ""
                                                                                              :color ""
                                                                                              :condition ""
                                                                                              :contentLanguage ""
                                                                                              :costOfGoodsSold {:currency ""
                                                                                                                :value ""}
                                                                                              :customAttributes [{:name ""
                                                                                                                  :type ""
                                                                                                                  :unit ""
                                                                                                                  :value ""}]
                                                                                              :customGroups [{:attributes [{}]
                                                                                                              :name ""}]
                                                                                              :customLabel0 ""
                                                                                              :customLabel1 ""
                                                                                              :customLabel2 ""
                                                                                              :customLabel3 ""
                                                                                              :customLabel4 ""
                                                                                              :description ""
                                                                                              :destinations [{:destinationName ""
                                                                                                              :intention ""}]
                                                                                              :displayAdsId ""
                                                                                              :displayAdsLink ""
                                                                                              :displayAdsSimilarIds []
                                                                                              :displayAdsTitle ""
                                                                                              :displayAdsValue ""
                                                                                              :energyEfficiencyClass ""
                                                                                              :expirationDate ""
                                                                                              :gender ""
                                                                                              :googleProductCategory ""
                                                                                              :gtin ""
                                                                                              :id ""
                                                                                              :identifierExists false
                                                                                              :imageLink ""
                                                                                              :installment {:amount {}
                                                                                                            :months ""}
                                                                                              :isBundle false
                                                                                              :itemGroupId ""
                                                                                              :kind ""
                                                                                              :link ""
                                                                                              :loyaltyPoints {:name ""
                                                                                                              :pointsValue ""
                                                                                                              :ratio ""}
                                                                                              :material ""
                                                                                              :maxEnergyEfficiencyClass ""
                                                                                              :maxHandlingTime ""
                                                                                              :minEnergyEfficiencyClass ""
                                                                                              :minHandlingTime ""
                                                                                              :mobileLink ""
                                                                                              :mpn ""
                                                                                              :multipack ""
                                                                                              :offerId ""
                                                                                              :onlineOnly false
                                                                                              :pattern ""
                                                                                              :price {}
                                                                                              :productType ""
                                                                                              :promotionIds []
                                                                                              :salePrice {}
                                                                                              :salePriceEffectiveDate ""
                                                                                              :sellOnGoogleQuantity ""
                                                                                              :shipping [{:country ""
                                                                                                          :locationGroupName ""
                                                                                                          :locationId ""
                                                                                                          :postalCode ""
                                                                                                          :price {}
                                                                                                          :region ""
                                                                                                          :service ""}]
                                                                                              :shippingHeight {:unit ""
                                                                                                               :value ""}
                                                                                              :shippingLabel ""
                                                                                              :shippingLength {}
                                                                                              :shippingWeight {:unit ""
                                                                                                               :value ""}
                                                                                              :shippingWidth {}
                                                                                              :sizeSystem ""
                                                                                              :sizeType ""
                                                                                              :sizes []
                                                                                              :source ""
                                                                                              :targetCountry ""
                                                                                              :taxes [{:country ""
                                                                                                       :locationId ""
                                                                                                       :postalCode ""
                                                                                                       :rate ""
                                                                                                       :region ""
                                                                                                       :taxShip false}]
                                                                                              :title ""
                                                                                              :unitPricingBaseMeasure {:unit ""
                                                                                                                       :value ""}
                                                                                              :unitPricingMeasure {:unit ""
                                                                                                                   :value ""}
                                                                                              :validatedDestinations []
                                                                                              :warnings [{:domain ""
                                                                                                          :message ""
                                                                                                          :reason ""}]}
                                                                                    :productId ""}]}})
require "http/client"

url = "{{baseUrl}}/products/batch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/products/batch"),
    Content = new StringContent("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/batch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/batch"

	payload := strings.NewReader("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/products/batch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 3782

{
  "entries": [
    {
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "product": {
        "additionalImageLinks": [],
        "additionalProductTypes": [],
        "adult": false,
        "adwordsGrouping": "",
        "adwordsLabels": [],
        "adwordsRedirect": "",
        "ageGroup": "",
        "aspects": [
          {
            "aspectName": "",
            "destinationName": "",
            "intention": ""
          }
        ],
        "availability": "",
        "availabilityDate": "",
        "brand": "",
        "canonicalLink": "",
        "channel": "",
        "color": "",
        "condition": "",
        "contentLanguage": "",
        "costOfGoodsSold": {
          "currency": "",
          "value": ""
        },
        "customAttributes": [
          {
            "name": "",
            "type": "",
            "unit": "",
            "value": ""
          }
        ],
        "customGroups": [
          {
            "attributes": [
              {}
            ],
            "name": ""
          }
        ],
        "customLabel0": "",
        "customLabel1": "",
        "customLabel2": "",
        "customLabel3": "",
        "customLabel4": "",
        "description": "",
        "destinations": [
          {
            "destinationName": "",
            "intention": ""
          }
        ],
        "displayAdsId": "",
        "displayAdsLink": "",
        "displayAdsSimilarIds": [],
        "displayAdsTitle": "",
        "displayAdsValue": "",
        "energyEfficiencyClass": "",
        "expirationDate": "",
        "gender": "",
        "googleProductCategory": "",
        "gtin": "",
        "id": "",
        "identifierExists": false,
        "imageLink": "",
        "installment": {
          "amount": {},
          "months": ""
        },
        "isBundle": false,
        "itemGroupId": "",
        "kind": "",
        "link": "",
        "loyaltyPoints": {
          "name": "",
          "pointsValue": "",
          "ratio": ""
        },
        "material": "",
        "maxEnergyEfficiencyClass": "",
        "maxHandlingTime": "",
        "minEnergyEfficiencyClass": "",
        "minHandlingTime": "",
        "mobileLink": "",
        "mpn": "",
        "multipack": "",
        "offerId": "",
        "onlineOnly": false,
        "pattern": "",
        "price": {},
        "productType": "",
        "promotionIds": [],
        "salePrice": {},
        "salePriceEffectiveDate": "",
        "sellOnGoogleQuantity": "",
        "shipping": [
          {
            "country": "",
            "locationGroupName": "",
            "locationId": "",
            "postalCode": "",
            "price": {},
            "region": "",
            "service": ""
          }
        ],
        "shippingHeight": {
          "unit": "",
          "value": ""
        },
        "shippingLabel": "",
        "shippingLength": {},
        "shippingWeight": {
          "unit": "",
          "value": ""
        },
        "shippingWidth": {},
        "sizeSystem": "",
        "sizeType": "",
        "sizes": [],
        "source": "",
        "targetCountry": "",
        "taxes": [
          {
            "country": "",
            "locationId": "",
            "postalCode": "",
            "rate": "",
            "region": "",
            "taxShip": false
          }
        ],
        "title": "",
        "unitPricingBaseMeasure": {
          "unit": "",
          "value": ""
        },
        "unitPricingMeasure": {
          "unit": "",
          "value": ""
        },
        "validatedDestinations": [],
        "warnings": [
          {
            "domain": "",
            "message": "",
            "reason": ""
          }
        ]
      },
      "productId": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/products/batch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/batch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/products/batch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/products/batch")
  .header("content-type", "application/json")
  .body("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  entries: [
    {
      batchId: 0,
      merchantId: '',
      method: '',
      product: {
        additionalImageLinks: [],
        additionalProductTypes: [],
        adult: false,
        adwordsGrouping: '',
        adwordsLabels: [],
        adwordsRedirect: '',
        ageGroup: '',
        aspects: [
          {
            aspectName: '',
            destinationName: '',
            intention: ''
          }
        ],
        availability: '',
        availabilityDate: '',
        brand: '',
        canonicalLink: '',
        channel: '',
        color: '',
        condition: '',
        contentLanguage: '',
        costOfGoodsSold: {
          currency: '',
          value: ''
        },
        customAttributes: [
          {
            name: '',
            type: '',
            unit: '',
            value: ''
          }
        ],
        customGroups: [
          {
            attributes: [
              {}
            ],
            name: ''
          }
        ],
        customLabel0: '',
        customLabel1: '',
        customLabel2: '',
        customLabel3: '',
        customLabel4: '',
        description: '',
        destinations: [
          {
            destinationName: '',
            intention: ''
          }
        ],
        displayAdsId: '',
        displayAdsLink: '',
        displayAdsSimilarIds: [],
        displayAdsTitle: '',
        displayAdsValue: '',
        energyEfficiencyClass: '',
        expirationDate: '',
        gender: '',
        googleProductCategory: '',
        gtin: '',
        id: '',
        identifierExists: false,
        imageLink: '',
        installment: {
          amount: {},
          months: ''
        },
        isBundle: false,
        itemGroupId: '',
        kind: '',
        link: '',
        loyaltyPoints: {
          name: '',
          pointsValue: '',
          ratio: ''
        },
        material: '',
        maxEnergyEfficiencyClass: '',
        maxHandlingTime: '',
        minEnergyEfficiencyClass: '',
        minHandlingTime: '',
        mobileLink: '',
        mpn: '',
        multipack: '',
        offerId: '',
        onlineOnly: false,
        pattern: '',
        price: {},
        productType: '',
        promotionIds: [],
        salePrice: {},
        salePriceEffectiveDate: '',
        sellOnGoogleQuantity: '',
        shipping: [
          {
            country: '',
            locationGroupName: '',
            locationId: '',
            postalCode: '',
            price: {},
            region: '',
            service: ''
          }
        ],
        shippingHeight: {
          unit: '',
          value: ''
        },
        shippingLabel: '',
        shippingLength: {},
        shippingWeight: {
          unit: '',
          value: ''
        },
        shippingWidth: {},
        sizeSystem: '',
        sizeType: '',
        sizes: [],
        source: '',
        targetCountry: '',
        taxes: [
          {
            country: '',
            locationId: '',
            postalCode: '',
            rate: '',
            region: '',
            taxShip: false
          }
        ],
        title: '',
        unitPricingBaseMeasure: {
          unit: '',
          value: ''
        },
        unitPricingMeasure: {
          unit: '',
          value: ''
        },
        validatedDestinations: [],
        warnings: [
          {
            domain: '',
            message: '',
            reason: ''
          }
        ]
      },
      productId: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/products/batch');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        batchId: 0,
        merchantId: '',
        method: '',
        product: {
          additionalImageLinks: [],
          additionalProductTypes: [],
          adult: false,
          adwordsGrouping: '',
          adwordsLabels: [],
          adwordsRedirect: '',
          ageGroup: '',
          aspects: [{aspectName: '', destinationName: '', intention: ''}],
          availability: '',
          availabilityDate: '',
          brand: '',
          canonicalLink: '',
          channel: '',
          color: '',
          condition: '',
          contentLanguage: '',
          costOfGoodsSold: {currency: '', value: ''},
          customAttributes: [{name: '', type: '', unit: '', value: ''}],
          customGroups: [{attributes: [{}], name: ''}],
          customLabel0: '',
          customLabel1: '',
          customLabel2: '',
          customLabel3: '',
          customLabel4: '',
          description: '',
          destinations: [{destinationName: '', intention: ''}],
          displayAdsId: '',
          displayAdsLink: '',
          displayAdsSimilarIds: [],
          displayAdsTitle: '',
          displayAdsValue: '',
          energyEfficiencyClass: '',
          expirationDate: '',
          gender: '',
          googleProductCategory: '',
          gtin: '',
          id: '',
          identifierExists: false,
          imageLink: '',
          installment: {amount: {}, months: ''},
          isBundle: false,
          itemGroupId: '',
          kind: '',
          link: '',
          loyaltyPoints: {name: '', pointsValue: '', ratio: ''},
          material: '',
          maxEnergyEfficiencyClass: '',
          maxHandlingTime: '',
          minEnergyEfficiencyClass: '',
          minHandlingTime: '',
          mobileLink: '',
          mpn: '',
          multipack: '',
          offerId: '',
          onlineOnly: false,
          pattern: '',
          price: {},
          productType: '',
          promotionIds: [],
          salePrice: {},
          salePriceEffectiveDate: '',
          sellOnGoogleQuantity: '',
          shipping: [
            {
              country: '',
              locationGroupName: '',
              locationId: '',
              postalCode: '',
              price: {},
              region: '',
              service: ''
            }
          ],
          shippingHeight: {unit: '', value: ''},
          shippingLabel: '',
          shippingLength: {},
          shippingWeight: {unit: '', value: ''},
          shippingWidth: {},
          sizeSystem: '',
          sizeType: '',
          sizes: [],
          source: '',
          targetCountry: '',
          taxes: [
            {
              country: '',
              locationId: '',
              postalCode: '',
              rate: '',
              region: '',
              taxShip: false
            }
          ],
          title: '',
          unitPricingBaseMeasure: {unit: '', value: ''},
          unitPricingMeasure: {unit: '', value: ''},
          validatedDestinations: [],
          warnings: [{domain: '', message: '', reason: ''}]
        },
        productId: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"batchId":0,"merchantId":"","method":"","product":{"additionalImageLinks":[],"additionalProductTypes":[],"adult":false,"adwordsGrouping":"","adwordsLabels":[],"adwordsRedirect":"","ageGroup":"","aspects":[{"aspectName":"","destinationName":"","intention":""}],"availability":"","availabilityDate":"","brand":"","canonicalLink":"","channel":"","color":"","condition":"","contentLanguage":"","costOfGoodsSold":{"currency":"","value":""},"customAttributes":[{"name":"","type":"","unit":"","value":""}],"customGroups":[{"attributes":[{}],"name":""}],"customLabel0":"","customLabel1":"","customLabel2":"","customLabel3":"","customLabel4":"","description":"","destinations":[{"destinationName":"","intention":""}],"displayAdsId":"","displayAdsLink":"","displayAdsSimilarIds":[],"displayAdsTitle":"","displayAdsValue":"","energyEfficiencyClass":"","expirationDate":"","gender":"","googleProductCategory":"","gtin":"","id":"","identifierExists":false,"imageLink":"","installment":{"amount":{},"months":""},"isBundle":false,"itemGroupId":"","kind":"","link":"","loyaltyPoints":{"name":"","pointsValue":"","ratio":""},"material":"","maxEnergyEfficiencyClass":"","maxHandlingTime":"","minEnergyEfficiencyClass":"","minHandlingTime":"","mobileLink":"","mpn":"","multipack":"","offerId":"","onlineOnly":false,"pattern":"","price":{},"productType":"","promotionIds":[],"salePrice":{},"salePriceEffectiveDate":"","sellOnGoogleQuantity":"","shipping":[{"country":"","locationGroupName":"","locationId":"","postalCode":"","price":{},"region":"","service":""}],"shippingHeight":{"unit":"","value":""},"shippingLabel":"","shippingLength":{},"shippingWeight":{"unit":"","value":""},"shippingWidth":{},"sizeSystem":"","sizeType":"","sizes":[],"source":"","targetCountry":"","taxes":[{"country":"","locationId":"","postalCode":"","rate":"","region":"","taxShip":false}],"title":"","unitPricingBaseMeasure":{"unit":"","value":""},"unitPricingMeasure":{"unit":"","value":""},"validatedDestinations":[],"warnings":[{"domain":"","message":"","reason":""}]},"productId":""}]}'
};

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}}/products/batch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entries": [\n    {\n      "batchId": 0,\n      "merchantId": "",\n      "method": "",\n      "product": {\n        "additionalImageLinks": [],\n        "additionalProductTypes": [],\n        "adult": false,\n        "adwordsGrouping": "",\n        "adwordsLabels": [],\n        "adwordsRedirect": "",\n        "ageGroup": "",\n        "aspects": [\n          {\n            "aspectName": "",\n            "destinationName": "",\n            "intention": ""\n          }\n        ],\n        "availability": "",\n        "availabilityDate": "",\n        "brand": "",\n        "canonicalLink": "",\n        "channel": "",\n        "color": "",\n        "condition": "",\n        "contentLanguage": "",\n        "costOfGoodsSold": {\n          "currency": "",\n          "value": ""\n        },\n        "customAttributes": [\n          {\n            "name": "",\n            "type": "",\n            "unit": "",\n            "value": ""\n          }\n        ],\n        "customGroups": [\n          {\n            "attributes": [\n              {}\n            ],\n            "name": ""\n          }\n        ],\n        "customLabel0": "",\n        "customLabel1": "",\n        "customLabel2": "",\n        "customLabel3": "",\n        "customLabel4": "",\n        "description": "",\n        "destinations": [\n          {\n            "destinationName": "",\n            "intention": ""\n          }\n        ],\n        "displayAdsId": "",\n        "displayAdsLink": "",\n        "displayAdsSimilarIds": [],\n        "displayAdsTitle": "",\n        "displayAdsValue": "",\n        "energyEfficiencyClass": "",\n        "expirationDate": "",\n        "gender": "",\n        "googleProductCategory": "",\n        "gtin": "",\n        "id": "",\n        "identifierExists": false,\n        "imageLink": "",\n        "installment": {\n          "amount": {},\n          "months": ""\n        },\n        "isBundle": false,\n        "itemGroupId": "",\n        "kind": "",\n        "link": "",\n        "loyaltyPoints": {\n          "name": "",\n          "pointsValue": "",\n          "ratio": ""\n        },\n        "material": "",\n        "maxEnergyEfficiencyClass": "",\n        "maxHandlingTime": "",\n        "minEnergyEfficiencyClass": "",\n        "minHandlingTime": "",\n        "mobileLink": "",\n        "mpn": "",\n        "multipack": "",\n        "offerId": "",\n        "onlineOnly": false,\n        "pattern": "",\n        "price": {},\n        "productType": "",\n        "promotionIds": [],\n        "salePrice": {},\n        "salePriceEffectiveDate": "",\n        "sellOnGoogleQuantity": "",\n        "shipping": [\n          {\n            "country": "",\n            "locationGroupName": "",\n            "locationId": "",\n            "postalCode": "",\n            "price": {},\n            "region": "",\n            "service": ""\n          }\n        ],\n        "shippingHeight": {\n          "unit": "",\n          "value": ""\n        },\n        "shippingLabel": "",\n        "shippingLength": {},\n        "shippingWeight": {\n          "unit": "",\n          "value": ""\n        },\n        "shippingWidth": {},\n        "sizeSystem": "",\n        "sizeType": "",\n        "sizes": [],\n        "source": "",\n        "targetCountry": "",\n        "taxes": [\n          {\n            "country": "",\n            "locationId": "",\n            "postalCode": "",\n            "rate": "",\n            "region": "",\n            "taxShip": false\n          }\n        ],\n        "title": "",\n        "unitPricingBaseMeasure": {\n          "unit": "",\n          "value": ""\n        },\n        "unitPricingMeasure": {\n          "unit": "",\n          "value": ""\n        },\n        "validatedDestinations": [],\n        "warnings": [\n          {\n            "domain": "",\n            "message": "",\n            "reason": ""\n          }\n        ]\n      },\n      "productId": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/products/batch")
  .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/products/batch',
  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({
  entries: [
    {
      batchId: 0,
      merchantId: '',
      method: '',
      product: {
        additionalImageLinks: [],
        additionalProductTypes: [],
        adult: false,
        adwordsGrouping: '',
        adwordsLabels: [],
        adwordsRedirect: '',
        ageGroup: '',
        aspects: [{aspectName: '', destinationName: '', intention: ''}],
        availability: '',
        availabilityDate: '',
        brand: '',
        canonicalLink: '',
        channel: '',
        color: '',
        condition: '',
        contentLanguage: '',
        costOfGoodsSold: {currency: '', value: ''},
        customAttributes: [{name: '', type: '', unit: '', value: ''}],
        customGroups: [{attributes: [{}], name: ''}],
        customLabel0: '',
        customLabel1: '',
        customLabel2: '',
        customLabel3: '',
        customLabel4: '',
        description: '',
        destinations: [{destinationName: '', intention: ''}],
        displayAdsId: '',
        displayAdsLink: '',
        displayAdsSimilarIds: [],
        displayAdsTitle: '',
        displayAdsValue: '',
        energyEfficiencyClass: '',
        expirationDate: '',
        gender: '',
        googleProductCategory: '',
        gtin: '',
        id: '',
        identifierExists: false,
        imageLink: '',
        installment: {amount: {}, months: ''},
        isBundle: false,
        itemGroupId: '',
        kind: '',
        link: '',
        loyaltyPoints: {name: '', pointsValue: '', ratio: ''},
        material: '',
        maxEnergyEfficiencyClass: '',
        maxHandlingTime: '',
        minEnergyEfficiencyClass: '',
        minHandlingTime: '',
        mobileLink: '',
        mpn: '',
        multipack: '',
        offerId: '',
        onlineOnly: false,
        pattern: '',
        price: {},
        productType: '',
        promotionIds: [],
        salePrice: {},
        salePriceEffectiveDate: '',
        sellOnGoogleQuantity: '',
        shipping: [
          {
            country: '',
            locationGroupName: '',
            locationId: '',
            postalCode: '',
            price: {},
            region: '',
            service: ''
          }
        ],
        shippingHeight: {unit: '', value: ''},
        shippingLabel: '',
        shippingLength: {},
        shippingWeight: {unit: '', value: ''},
        shippingWidth: {},
        sizeSystem: '',
        sizeType: '',
        sizes: [],
        source: '',
        targetCountry: '',
        taxes: [
          {
            country: '',
            locationId: '',
            postalCode: '',
            rate: '',
            region: '',
            taxShip: false
          }
        ],
        title: '',
        unitPricingBaseMeasure: {unit: '', value: ''},
        unitPricingMeasure: {unit: '', value: ''},
        validatedDestinations: [],
        warnings: [{domain: '', message: '', reason: ''}]
      },
      productId: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/batch',
  headers: {'content-type': 'application/json'},
  body: {
    entries: [
      {
        batchId: 0,
        merchantId: '',
        method: '',
        product: {
          additionalImageLinks: [],
          additionalProductTypes: [],
          adult: false,
          adwordsGrouping: '',
          adwordsLabels: [],
          adwordsRedirect: '',
          ageGroup: '',
          aspects: [{aspectName: '', destinationName: '', intention: ''}],
          availability: '',
          availabilityDate: '',
          brand: '',
          canonicalLink: '',
          channel: '',
          color: '',
          condition: '',
          contentLanguage: '',
          costOfGoodsSold: {currency: '', value: ''},
          customAttributes: [{name: '', type: '', unit: '', value: ''}],
          customGroups: [{attributes: [{}], name: ''}],
          customLabel0: '',
          customLabel1: '',
          customLabel2: '',
          customLabel3: '',
          customLabel4: '',
          description: '',
          destinations: [{destinationName: '', intention: ''}],
          displayAdsId: '',
          displayAdsLink: '',
          displayAdsSimilarIds: [],
          displayAdsTitle: '',
          displayAdsValue: '',
          energyEfficiencyClass: '',
          expirationDate: '',
          gender: '',
          googleProductCategory: '',
          gtin: '',
          id: '',
          identifierExists: false,
          imageLink: '',
          installment: {amount: {}, months: ''},
          isBundle: false,
          itemGroupId: '',
          kind: '',
          link: '',
          loyaltyPoints: {name: '', pointsValue: '', ratio: ''},
          material: '',
          maxEnergyEfficiencyClass: '',
          maxHandlingTime: '',
          minEnergyEfficiencyClass: '',
          minHandlingTime: '',
          mobileLink: '',
          mpn: '',
          multipack: '',
          offerId: '',
          onlineOnly: false,
          pattern: '',
          price: {},
          productType: '',
          promotionIds: [],
          salePrice: {},
          salePriceEffectiveDate: '',
          sellOnGoogleQuantity: '',
          shipping: [
            {
              country: '',
              locationGroupName: '',
              locationId: '',
              postalCode: '',
              price: {},
              region: '',
              service: ''
            }
          ],
          shippingHeight: {unit: '', value: ''},
          shippingLabel: '',
          shippingLength: {},
          shippingWeight: {unit: '', value: ''},
          shippingWidth: {},
          sizeSystem: '',
          sizeType: '',
          sizes: [],
          source: '',
          targetCountry: '',
          taxes: [
            {
              country: '',
              locationId: '',
              postalCode: '',
              rate: '',
              region: '',
              taxShip: false
            }
          ],
          title: '',
          unitPricingBaseMeasure: {unit: '', value: ''},
          unitPricingMeasure: {unit: '', value: ''},
          validatedDestinations: [],
          warnings: [{domain: '', message: '', reason: ''}]
        },
        productId: ''
      }
    ]
  },
  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}}/products/batch');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  entries: [
    {
      batchId: 0,
      merchantId: '',
      method: '',
      product: {
        additionalImageLinks: [],
        additionalProductTypes: [],
        adult: false,
        adwordsGrouping: '',
        adwordsLabels: [],
        adwordsRedirect: '',
        ageGroup: '',
        aspects: [
          {
            aspectName: '',
            destinationName: '',
            intention: ''
          }
        ],
        availability: '',
        availabilityDate: '',
        brand: '',
        canonicalLink: '',
        channel: '',
        color: '',
        condition: '',
        contentLanguage: '',
        costOfGoodsSold: {
          currency: '',
          value: ''
        },
        customAttributes: [
          {
            name: '',
            type: '',
            unit: '',
            value: ''
          }
        ],
        customGroups: [
          {
            attributes: [
              {}
            ],
            name: ''
          }
        ],
        customLabel0: '',
        customLabel1: '',
        customLabel2: '',
        customLabel3: '',
        customLabel4: '',
        description: '',
        destinations: [
          {
            destinationName: '',
            intention: ''
          }
        ],
        displayAdsId: '',
        displayAdsLink: '',
        displayAdsSimilarIds: [],
        displayAdsTitle: '',
        displayAdsValue: '',
        energyEfficiencyClass: '',
        expirationDate: '',
        gender: '',
        googleProductCategory: '',
        gtin: '',
        id: '',
        identifierExists: false,
        imageLink: '',
        installment: {
          amount: {},
          months: ''
        },
        isBundle: false,
        itemGroupId: '',
        kind: '',
        link: '',
        loyaltyPoints: {
          name: '',
          pointsValue: '',
          ratio: ''
        },
        material: '',
        maxEnergyEfficiencyClass: '',
        maxHandlingTime: '',
        minEnergyEfficiencyClass: '',
        minHandlingTime: '',
        mobileLink: '',
        mpn: '',
        multipack: '',
        offerId: '',
        onlineOnly: false,
        pattern: '',
        price: {},
        productType: '',
        promotionIds: [],
        salePrice: {},
        salePriceEffectiveDate: '',
        sellOnGoogleQuantity: '',
        shipping: [
          {
            country: '',
            locationGroupName: '',
            locationId: '',
            postalCode: '',
            price: {},
            region: '',
            service: ''
          }
        ],
        shippingHeight: {
          unit: '',
          value: ''
        },
        shippingLabel: '',
        shippingLength: {},
        shippingWeight: {
          unit: '',
          value: ''
        },
        shippingWidth: {},
        sizeSystem: '',
        sizeType: '',
        sizes: [],
        source: '',
        targetCountry: '',
        taxes: [
          {
            country: '',
            locationId: '',
            postalCode: '',
            rate: '',
            region: '',
            taxShip: false
          }
        ],
        title: '',
        unitPricingBaseMeasure: {
          unit: '',
          value: ''
        },
        unitPricingMeasure: {
          unit: '',
          value: ''
        },
        validatedDestinations: [],
        warnings: [
          {
            domain: '',
            message: '',
            reason: ''
          }
        ]
      },
      productId: ''
    }
  ]
});

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}}/products/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        batchId: 0,
        merchantId: '',
        method: '',
        product: {
          additionalImageLinks: [],
          additionalProductTypes: [],
          adult: false,
          adwordsGrouping: '',
          adwordsLabels: [],
          adwordsRedirect: '',
          ageGroup: '',
          aspects: [{aspectName: '', destinationName: '', intention: ''}],
          availability: '',
          availabilityDate: '',
          brand: '',
          canonicalLink: '',
          channel: '',
          color: '',
          condition: '',
          contentLanguage: '',
          costOfGoodsSold: {currency: '', value: ''},
          customAttributes: [{name: '', type: '', unit: '', value: ''}],
          customGroups: [{attributes: [{}], name: ''}],
          customLabel0: '',
          customLabel1: '',
          customLabel2: '',
          customLabel3: '',
          customLabel4: '',
          description: '',
          destinations: [{destinationName: '', intention: ''}],
          displayAdsId: '',
          displayAdsLink: '',
          displayAdsSimilarIds: [],
          displayAdsTitle: '',
          displayAdsValue: '',
          energyEfficiencyClass: '',
          expirationDate: '',
          gender: '',
          googleProductCategory: '',
          gtin: '',
          id: '',
          identifierExists: false,
          imageLink: '',
          installment: {amount: {}, months: ''},
          isBundle: false,
          itemGroupId: '',
          kind: '',
          link: '',
          loyaltyPoints: {name: '', pointsValue: '', ratio: ''},
          material: '',
          maxEnergyEfficiencyClass: '',
          maxHandlingTime: '',
          minEnergyEfficiencyClass: '',
          minHandlingTime: '',
          mobileLink: '',
          mpn: '',
          multipack: '',
          offerId: '',
          onlineOnly: false,
          pattern: '',
          price: {},
          productType: '',
          promotionIds: [],
          salePrice: {},
          salePriceEffectiveDate: '',
          sellOnGoogleQuantity: '',
          shipping: [
            {
              country: '',
              locationGroupName: '',
              locationId: '',
              postalCode: '',
              price: {},
              region: '',
              service: ''
            }
          ],
          shippingHeight: {unit: '', value: ''},
          shippingLabel: '',
          shippingLength: {},
          shippingWeight: {unit: '', value: ''},
          shippingWidth: {},
          sizeSystem: '',
          sizeType: '',
          sizes: [],
          source: '',
          targetCountry: '',
          taxes: [
            {
              country: '',
              locationId: '',
              postalCode: '',
              rate: '',
              region: '',
              taxShip: false
            }
          ],
          title: '',
          unitPricingBaseMeasure: {unit: '', value: ''},
          unitPricingMeasure: {unit: '', value: ''},
          validatedDestinations: [],
          warnings: [{domain: '', message: '', reason: ''}]
        },
        productId: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"batchId":0,"merchantId":"","method":"","product":{"additionalImageLinks":[],"additionalProductTypes":[],"adult":false,"adwordsGrouping":"","adwordsLabels":[],"adwordsRedirect":"","ageGroup":"","aspects":[{"aspectName":"","destinationName":"","intention":""}],"availability":"","availabilityDate":"","brand":"","canonicalLink":"","channel":"","color":"","condition":"","contentLanguage":"","costOfGoodsSold":{"currency":"","value":""},"customAttributes":[{"name":"","type":"","unit":"","value":""}],"customGroups":[{"attributes":[{}],"name":""}],"customLabel0":"","customLabel1":"","customLabel2":"","customLabel3":"","customLabel4":"","description":"","destinations":[{"destinationName":"","intention":""}],"displayAdsId":"","displayAdsLink":"","displayAdsSimilarIds":[],"displayAdsTitle":"","displayAdsValue":"","energyEfficiencyClass":"","expirationDate":"","gender":"","googleProductCategory":"","gtin":"","id":"","identifierExists":false,"imageLink":"","installment":{"amount":{},"months":""},"isBundle":false,"itemGroupId":"","kind":"","link":"","loyaltyPoints":{"name":"","pointsValue":"","ratio":""},"material":"","maxEnergyEfficiencyClass":"","maxHandlingTime":"","minEnergyEfficiencyClass":"","minHandlingTime":"","mobileLink":"","mpn":"","multipack":"","offerId":"","onlineOnly":false,"pattern":"","price":{},"productType":"","promotionIds":[],"salePrice":{},"salePriceEffectiveDate":"","sellOnGoogleQuantity":"","shipping":[{"country":"","locationGroupName":"","locationId":"","postalCode":"","price":{},"region":"","service":""}],"shippingHeight":{"unit":"","value":""},"shippingLabel":"","shippingLength":{},"shippingWeight":{"unit":"","value":""},"shippingWidth":{},"sizeSystem":"","sizeType":"","sizes":[],"source":"","targetCountry":"","taxes":[{"country":"","locationId":"","postalCode":"","rate":"","region":"","taxShip":false}],"title":"","unitPricingBaseMeasure":{"unit":"","value":""},"unitPricingMeasure":{"unit":"","value":""},"validatedDestinations":[],"warnings":[{"domain":"","message":"","reason":""}]},"productId":""}]}'
};

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 = @{ @"entries": @[ @{ @"batchId": @0, @"merchantId": @"", @"method": @"", @"product": @{ @"additionalImageLinks": @[  ], @"additionalProductTypes": @[  ], @"adult": @NO, @"adwordsGrouping": @"", @"adwordsLabels": @[  ], @"adwordsRedirect": @"", @"ageGroup": @"", @"aspects": @[ @{ @"aspectName": @"", @"destinationName": @"", @"intention": @"" } ], @"availability": @"", @"availabilityDate": @"", @"brand": @"", @"canonicalLink": @"", @"channel": @"", @"color": @"", @"condition": @"", @"contentLanguage": @"", @"costOfGoodsSold": @{ @"currency": @"", @"value": @"" }, @"customAttributes": @[ @{ @"name": @"", @"type": @"", @"unit": @"", @"value": @"" } ], @"customGroups": @[ @{ @"attributes": @[ @{  } ], @"name": @"" } ], @"customLabel0": @"", @"customLabel1": @"", @"customLabel2": @"", @"customLabel3": @"", @"customLabel4": @"", @"description": @"", @"destinations": @[ @{ @"destinationName": @"", @"intention": @"" } ], @"displayAdsId": @"", @"displayAdsLink": @"", @"displayAdsSimilarIds": @[  ], @"displayAdsTitle": @"", @"displayAdsValue": @"", @"energyEfficiencyClass": @"", @"expirationDate": @"", @"gender": @"", @"googleProductCategory": @"", @"gtin": @"", @"id": @"", @"identifierExists": @NO, @"imageLink": @"", @"installment": @{ @"amount": @{  }, @"months": @"" }, @"isBundle": @NO, @"itemGroupId": @"", @"kind": @"", @"link": @"", @"loyaltyPoints": @{ @"name": @"", @"pointsValue": @"", @"ratio": @"" }, @"material": @"", @"maxEnergyEfficiencyClass": @"", @"maxHandlingTime": @"", @"minEnergyEfficiencyClass": @"", @"minHandlingTime": @"", @"mobileLink": @"", @"mpn": @"", @"multipack": @"", @"offerId": @"", @"onlineOnly": @NO, @"pattern": @"", @"price": @{  }, @"productType": @"", @"promotionIds": @[  ], @"salePrice": @{  }, @"salePriceEffectiveDate": @"", @"sellOnGoogleQuantity": @"", @"shipping": @[ @{ @"country": @"", @"locationGroupName": @"", @"locationId": @"", @"postalCode": @"", @"price": @{  }, @"region": @"", @"service": @"" } ], @"shippingHeight": @{ @"unit": @"", @"value": @"" }, @"shippingLabel": @"", @"shippingLength": @{  }, @"shippingWeight": @{ @"unit": @"", @"value": @"" }, @"shippingWidth": @{  }, @"sizeSystem": @"", @"sizeType": @"", @"sizes": @[  ], @"source": @"", @"targetCountry": @"", @"taxes": @[ @{ @"country": @"", @"locationId": @"", @"postalCode": @"", @"rate": @"", @"region": @"", @"taxShip": @NO } ], @"title": @"", @"unitPricingBaseMeasure": @{ @"unit": @"", @"value": @"" }, @"unitPricingMeasure": @{ @"unit": @"", @"value": @"" }, @"validatedDestinations": @[  ], @"warnings": @[ @{ @"domain": @"", @"message": @"", @"reason": @"" } ] }, @"productId": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/batch"]
                                                       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}}/products/batch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/batch",
  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([
    'entries' => [
        [
                'batchId' => 0,
                'merchantId' => '',
                'method' => '',
                'product' => [
                                'additionalImageLinks' => [
                                                                
                                ],
                                'additionalProductTypes' => [
                                                                
                                ],
                                'adult' => null,
                                'adwordsGrouping' => '',
                                'adwordsLabels' => [
                                                                
                                ],
                                'adwordsRedirect' => '',
                                'ageGroup' => '',
                                'aspects' => [
                                                                [
                                                                                                                                'aspectName' => '',
                                                                                                                                'destinationName' => '',
                                                                                                                                'intention' => ''
                                                                ]
                                ],
                                'availability' => '',
                                'availabilityDate' => '',
                                'brand' => '',
                                'canonicalLink' => '',
                                'channel' => '',
                                'color' => '',
                                'condition' => '',
                                'contentLanguage' => '',
                                'costOfGoodsSold' => [
                                                                'currency' => '',
                                                                'value' => ''
                                ],
                                'customAttributes' => [
                                                                [
                                                                                                                                'name' => '',
                                                                                                                                'type' => '',
                                                                                                                                'unit' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'customGroups' => [
                                                                [
                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'name' => ''
                                                                ]
                                ],
                                'customLabel0' => '',
                                'customLabel1' => '',
                                'customLabel2' => '',
                                'customLabel3' => '',
                                'customLabel4' => '',
                                'description' => '',
                                'destinations' => [
                                                                [
                                                                                                                                'destinationName' => '',
                                                                                                                                'intention' => ''
                                                                ]
                                ],
                                'displayAdsId' => '',
                                'displayAdsLink' => '',
                                'displayAdsSimilarIds' => [
                                                                
                                ],
                                'displayAdsTitle' => '',
                                'displayAdsValue' => '',
                                'energyEfficiencyClass' => '',
                                'expirationDate' => '',
                                'gender' => '',
                                'googleProductCategory' => '',
                                'gtin' => '',
                                'id' => '',
                                'identifierExists' => null,
                                'imageLink' => '',
                                'installment' => [
                                                                'amount' => [
                                                                                                                                
                                                                ],
                                                                'months' => ''
                                ],
                                'isBundle' => null,
                                'itemGroupId' => '',
                                'kind' => '',
                                'link' => '',
                                'loyaltyPoints' => [
                                                                'name' => '',
                                                                'pointsValue' => '',
                                                                'ratio' => ''
                                ],
                                'material' => '',
                                'maxEnergyEfficiencyClass' => '',
                                'maxHandlingTime' => '',
                                'minEnergyEfficiencyClass' => '',
                                'minHandlingTime' => '',
                                'mobileLink' => '',
                                'mpn' => '',
                                'multipack' => '',
                                'offerId' => '',
                                'onlineOnly' => null,
                                'pattern' => '',
                                'price' => [
                                                                
                                ],
                                'productType' => '',
                                'promotionIds' => [
                                                                
                                ],
                                'salePrice' => [
                                                                
                                ],
                                'salePriceEffectiveDate' => '',
                                'sellOnGoogleQuantity' => '',
                                'shipping' => [
                                                                [
                                                                                                                                'country' => '',
                                                                                                                                'locationGroupName' => '',
                                                                                                                                'locationId' => '',
                                                                                                                                'postalCode' => '',
                                                                                                                                'price' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'region' => '',
                                                                                                                                'service' => ''
                                                                ]
                                ],
                                'shippingHeight' => [
                                                                'unit' => '',
                                                                'value' => ''
                                ],
                                'shippingLabel' => '',
                                'shippingLength' => [
                                                                
                                ],
                                'shippingWeight' => [
                                                                'unit' => '',
                                                                'value' => ''
                                ],
                                'shippingWidth' => [
                                                                
                                ],
                                'sizeSystem' => '',
                                'sizeType' => '',
                                'sizes' => [
                                                                
                                ],
                                'source' => '',
                                'targetCountry' => '',
                                'taxes' => [
                                                                [
                                                                                                                                'country' => '',
                                                                                                                                'locationId' => '',
                                                                                                                                'postalCode' => '',
                                                                                                                                'rate' => '',
                                                                                                                                'region' => '',
                                                                                                                                'taxShip' => null
                                                                ]
                                ],
                                'title' => '',
                                'unitPricingBaseMeasure' => [
                                                                'unit' => '',
                                                                'value' => ''
                                ],
                                'unitPricingMeasure' => [
                                                                'unit' => '',
                                                                'value' => ''
                                ],
                                'validatedDestinations' => [
                                                                
                                ],
                                'warnings' => [
                                                                [
                                                                                                                                'domain' => '',
                                                                                                                                'message' => '',
                                                                                                                                'reason' => ''
                                                                ]
                                ]
                ],
                'productId' => ''
        ]
    ]
  ]),
  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}}/products/batch', [
  'body' => '{
  "entries": [
    {
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "product": {
        "additionalImageLinks": [],
        "additionalProductTypes": [],
        "adult": false,
        "adwordsGrouping": "",
        "adwordsLabels": [],
        "adwordsRedirect": "",
        "ageGroup": "",
        "aspects": [
          {
            "aspectName": "",
            "destinationName": "",
            "intention": ""
          }
        ],
        "availability": "",
        "availabilityDate": "",
        "brand": "",
        "canonicalLink": "",
        "channel": "",
        "color": "",
        "condition": "",
        "contentLanguage": "",
        "costOfGoodsSold": {
          "currency": "",
          "value": ""
        },
        "customAttributes": [
          {
            "name": "",
            "type": "",
            "unit": "",
            "value": ""
          }
        ],
        "customGroups": [
          {
            "attributes": [
              {}
            ],
            "name": ""
          }
        ],
        "customLabel0": "",
        "customLabel1": "",
        "customLabel2": "",
        "customLabel3": "",
        "customLabel4": "",
        "description": "",
        "destinations": [
          {
            "destinationName": "",
            "intention": ""
          }
        ],
        "displayAdsId": "",
        "displayAdsLink": "",
        "displayAdsSimilarIds": [],
        "displayAdsTitle": "",
        "displayAdsValue": "",
        "energyEfficiencyClass": "",
        "expirationDate": "",
        "gender": "",
        "googleProductCategory": "",
        "gtin": "",
        "id": "",
        "identifierExists": false,
        "imageLink": "",
        "installment": {
          "amount": {},
          "months": ""
        },
        "isBundle": false,
        "itemGroupId": "",
        "kind": "",
        "link": "",
        "loyaltyPoints": {
          "name": "",
          "pointsValue": "",
          "ratio": ""
        },
        "material": "",
        "maxEnergyEfficiencyClass": "",
        "maxHandlingTime": "",
        "minEnergyEfficiencyClass": "",
        "minHandlingTime": "",
        "mobileLink": "",
        "mpn": "",
        "multipack": "",
        "offerId": "",
        "onlineOnly": false,
        "pattern": "",
        "price": {},
        "productType": "",
        "promotionIds": [],
        "salePrice": {},
        "salePriceEffectiveDate": "",
        "sellOnGoogleQuantity": "",
        "shipping": [
          {
            "country": "",
            "locationGroupName": "",
            "locationId": "",
            "postalCode": "",
            "price": {},
            "region": "",
            "service": ""
          }
        ],
        "shippingHeight": {
          "unit": "",
          "value": ""
        },
        "shippingLabel": "",
        "shippingLength": {},
        "shippingWeight": {
          "unit": "",
          "value": ""
        },
        "shippingWidth": {},
        "sizeSystem": "",
        "sizeType": "",
        "sizes": [],
        "source": "",
        "targetCountry": "",
        "taxes": [
          {
            "country": "",
            "locationId": "",
            "postalCode": "",
            "rate": "",
            "region": "",
            "taxShip": false
          }
        ],
        "title": "",
        "unitPricingBaseMeasure": {
          "unit": "",
          "value": ""
        },
        "unitPricingMeasure": {
          "unit": "",
          "value": ""
        },
        "validatedDestinations": [],
        "warnings": [
          {
            "domain": "",
            "message": "",
            "reason": ""
          }
        ]
      },
      "productId": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/products/batch');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entries' => [
    [
        'batchId' => 0,
        'merchantId' => '',
        'method' => '',
        'product' => [
                'additionalImageLinks' => [
                                
                ],
                'additionalProductTypes' => [
                                
                ],
                'adult' => null,
                'adwordsGrouping' => '',
                'adwordsLabels' => [
                                
                ],
                'adwordsRedirect' => '',
                'ageGroup' => '',
                'aspects' => [
                                [
                                                                'aspectName' => '',
                                                                'destinationName' => '',
                                                                'intention' => ''
                                ]
                ],
                'availability' => '',
                'availabilityDate' => '',
                'brand' => '',
                'canonicalLink' => '',
                'channel' => '',
                'color' => '',
                'condition' => '',
                'contentLanguage' => '',
                'costOfGoodsSold' => [
                                'currency' => '',
                                'value' => ''
                ],
                'customAttributes' => [
                                [
                                                                'name' => '',
                                                                'type' => '',
                                                                'unit' => '',
                                                                'value' => ''
                                ]
                ],
                'customGroups' => [
                                [
                                                                'attributes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'name' => ''
                                ]
                ],
                'customLabel0' => '',
                'customLabel1' => '',
                'customLabel2' => '',
                'customLabel3' => '',
                'customLabel4' => '',
                'description' => '',
                'destinations' => [
                                [
                                                                'destinationName' => '',
                                                                'intention' => ''
                                ]
                ],
                'displayAdsId' => '',
                'displayAdsLink' => '',
                'displayAdsSimilarIds' => [
                                
                ],
                'displayAdsTitle' => '',
                'displayAdsValue' => '',
                'energyEfficiencyClass' => '',
                'expirationDate' => '',
                'gender' => '',
                'googleProductCategory' => '',
                'gtin' => '',
                'id' => '',
                'identifierExists' => null,
                'imageLink' => '',
                'installment' => [
                                'amount' => [
                                                                
                                ],
                                'months' => ''
                ],
                'isBundle' => null,
                'itemGroupId' => '',
                'kind' => '',
                'link' => '',
                'loyaltyPoints' => [
                                'name' => '',
                                'pointsValue' => '',
                                'ratio' => ''
                ],
                'material' => '',
                'maxEnergyEfficiencyClass' => '',
                'maxHandlingTime' => '',
                'minEnergyEfficiencyClass' => '',
                'minHandlingTime' => '',
                'mobileLink' => '',
                'mpn' => '',
                'multipack' => '',
                'offerId' => '',
                'onlineOnly' => null,
                'pattern' => '',
                'price' => [
                                
                ],
                'productType' => '',
                'promotionIds' => [
                                
                ],
                'salePrice' => [
                                
                ],
                'salePriceEffectiveDate' => '',
                'sellOnGoogleQuantity' => '',
                'shipping' => [
                                [
                                                                'country' => '',
                                                                'locationGroupName' => '',
                                                                'locationId' => '',
                                                                'postalCode' => '',
                                                                'price' => [
                                                                                                                                
                                                                ],
                                                                'region' => '',
                                                                'service' => ''
                                ]
                ],
                'shippingHeight' => [
                                'unit' => '',
                                'value' => ''
                ],
                'shippingLabel' => '',
                'shippingLength' => [
                                
                ],
                'shippingWeight' => [
                                'unit' => '',
                                'value' => ''
                ],
                'shippingWidth' => [
                                
                ],
                'sizeSystem' => '',
                'sizeType' => '',
                'sizes' => [
                                
                ],
                'source' => '',
                'targetCountry' => '',
                'taxes' => [
                                [
                                                                'country' => '',
                                                                'locationId' => '',
                                                                'postalCode' => '',
                                                                'rate' => '',
                                                                'region' => '',
                                                                'taxShip' => null
                                ]
                ],
                'title' => '',
                'unitPricingBaseMeasure' => [
                                'unit' => '',
                                'value' => ''
                ],
                'unitPricingMeasure' => [
                                'unit' => '',
                                'value' => ''
                ],
                'validatedDestinations' => [
                                
                ],
                'warnings' => [
                                [
                                                                'domain' => '',
                                                                'message' => '',
                                                                'reason' => ''
                                ]
                ]
        ],
        'productId' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'entries' => [
    [
        'batchId' => 0,
        'merchantId' => '',
        'method' => '',
        'product' => [
                'additionalImageLinks' => [
                                
                ],
                'additionalProductTypes' => [
                                
                ],
                'adult' => null,
                'adwordsGrouping' => '',
                'adwordsLabels' => [
                                
                ],
                'adwordsRedirect' => '',
                'ageGroup' => '',
                'aspects' => [
                                [
                                                                'aspectName' => '',
                                                                'destinationName' => '',
                                                                'intention' => ''
                                ]
                ],
                'availability' => '',
                'availabilityDate' => '',
                'brand' => '',
                'canonicalLink' => '',
                'channel' => '',
                'color' => '',
                'condition' => '',
                'contentLanguage' => '',
                'costOfGoodsSold' => [
                                'currency' => '',
                                'value' => ''
                ],
                'customAttributes' => [
                                [
                                                                'name' => '',
                                                                'type' => '',
                                                                'unit' => '',
                                                                'value' => ''
                                ]
                ],
                'customGroups' => [
                                [
                                                                'attributes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'name' => ''
                                ]
                ],
                'customLabel0' => '',
                'customLabel1' => '',
                'customLabel2' => '',
                'customLabel3' => '',
                'customLabel4' => '',
                'description' => '',
                'destinations' => [
                                [
                                                                'destinationName' => '',
                                                                'intention' => ''
                                ]
                ],
                'displayAdsId' => '',
                'displayAdsLink' => '',
                'displayAdsSimilarIds' => [
                                
                ],
                'displayAdsTitle' => '',
                'displayAdsValue' => '',
                'energyEfficiencyClass' => '',
                'expirationDate' => '',
                'gender' => '',
                'googleProductCategory' => '',
                'gtin' => '',
                'id' => '',
                'identifierExists' => null,
                'imageLink' => '',
                'installment' => [
                                'amount' => [
                                                                
                                ],
                                'months' => ''
                ],
                'isBundle' => null,
                'itemGroupId' => '',
                'kind' => '',
                'link' => '',
                'loyaltyPoints' => [
                                'name' => '',
                                'pointsValue' => '',
                                'ratio' => ''
                ],
                'material' => '',
                'maxEnergyEfficiencyClass' => '',
                'maxHandlingTime' => '',
                'minEnergyEfficiencyClass' => '',
                'minHandlingTime' => '',
                'mobileLink' => '',
                'mpn' => '',
                'multipack' => '',
                'offerId' => '',
                'onlineOnly' => null,
                'pattern' => '',
                'price' => [
                                
                ],
                'productType' => '',
                'promotionIds' => [
                                
                ],
                'salePrice' => [
                                
                ],
                'salePriceEffectiveDate' => '',
                'sellOnGoogleQuantity' => '',
                'shipping' => [
                                [
                                                                'country' => '',
                                                                'locationGroupName' => '',
                                                                'locationId' => '',
                                                                'postalCode' => '',
                                                                'price' => [
                                                                                                                                
                                                                ],
                                                                'region' => '',
                                                                'service' => ''
                                ]
                ],
                'shippingHeight' => [
                                'unit' => '',
                                'value' => ''
                ],
                'shippingLabel' => '',
                'shippingLength' => [
                                
                ],
                'shippingWeight' => [
                                'unit' => '',
                                'value' => ''
                ],
                'shippingWidth' => [
                                
                ],
                'sizeSystem' => '',
                'sizeType' => '',
                'sizes' => [
                                
                ],
                'source' => '',
                'targetCountry' => '',
                'taxes' => [
                                [
                                                                'country' => '',
                                                                'locationId' => '',
                                                                'postalCode' => '',
                                                                'rate' => '',
                                                                'region' => '',
                                                                'taxShip' => null
                                ]
                ],
                'title' => '',
                'unitPricingBaseMeasure' => [
                                'unit' => '',
                                'value' => ''
                ],
                'unitPricingMeasure' => [
                                'unit' => '',
                                'value' => ''
                ],
                'validatedDestinations' => [
                                
                ],
                'warnings' => [
                                [
                                                                'domain' => '',
                                                                'message' => '',
                                                                'reason' => ''
                                ]
                ]
        ],
        'productId' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/products/batch');
$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}}/products/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "product": {
        "additionalImageLinks": [],
        "additionalProductTypes": [],
        "adult": false,
        "adwordsGrouping": "",
        "adwordsLabels": [],
        "adwordsRedirect": "",
        "ageGroup": "",
        "aspects": [
          {
            "aspectName": "",
            "destinationName": "",
            "intention": ""
          }
        ],
        "availability": "",
        "availabilityDate": "",
        "brand": "",
        "canonicalLink": "",
        "channel": "",
        "color": "",
        "condition": "",
        "contentLanguage": "",
        "costOfGoodsSold": {
          "currency": "",
          "value": ""
        },
        "customAttributes": [
          {
            "name": "",
            "type": "",
            "unit": "",
            "value": ""
          }
        ],
        "customGroups": [
          {
            "attributes": [
              {}
            ],
            "name": ""
          }
        ],
        "customLabel0": "",
        "customLabel1": "",
        "customLabel2": "",
        "customLabel3": "",
        "customLabel4": "",
        "description": "",
        "destinations": [
          {
            "destinationName": "",
            "intention": ""
          }
        ],
        "displayAdsId": "",
        "displayAdsLink": "",
        "displayAdsSimilarIds": [],
        "displayAdsTitle": "",
        "displayAdsValue": "",
        "energyEfficiencyClass": "",
        "expirationDate": "",
        "gender": "",
        "googleProductCategory": "",
        "gtin": "",
        "id": "",
        "identifierExists": false,
        "imageLink": "",
        "installment": {
          "amount": {},
          "months": ""
        },
        "isBundle": false,
        "itemGroupId": "",
        "kind": "",
        "link": "",
        "loyaltyPoints": {
          "name": "",
          "pointsValue": "",
          "ratio": ""
        },
        "material": "",
        "maxEnergyEfficiencyClass": "",
        "maxHandlingTime": "",
        "minEnergyEfficiencyClass": "",
        "minHandlingTime": "",
        "mobileLink": "",
        "mpn": "",
        "multipack": "",
        "offerId": "",
        "onlineOnly": false,
        "pattern": "",
        "price": {},
        "productType": "",
        "promotionIds": [],
        "salePrice": {},
        "salePriceEffectiveDate": "",
        "sellOnGoogleQuantity": "",
        "shipping": [
          {
            "country": "",
            "locationGroupName": "",
            "locationId": "",
            "postalCode": "",
            "price": {},
            "region": "",
            "service": ""
          }
        ],
        "shippingHeight": {
          "unit": "",
          "value": ""
        },
        "shippingLabel": "",
        "shippingLength": {},
        "shippingWeight": {
          "unit": "",
          "value": ""
        },
        "shippingWidth": {},
        "sizeSystem": "",
        "sizeType": "",
        "sizes": [],
        "source": "",
        "targetCountry": "",
        "taxes": [
          {
            "country": "",
            "locationId": "",
            "postalCode": "",
            "rate": "",
            "region": "",
            "taxShip": false
          }
        ],
        "title": "",
        "unitPricingBaseMeasure": {
          "unit": "",
          "value": ""
        },
        "unitPricingMeasure": {
          "unit": "",
          "value": ""
        },
        "validatedDestinations": [],
        "warnings": [
          {
            "domain": "",
            "message": "",
            "reason": ""
          }
        ]
      },
      "productId": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "product": {
        "additionalImageLinks": [],
        "additionalProductTypes": [],
        "adult": false,
        "adwordsGrouping": "",
        "adwordsLabels": [],
        "adwordsRedirect": "",
        "ageGroup": "",
        "aspects": [
          {
            "aspectName": "",
            "destinationName": "",
            "intention": ""
          }
        ],
        "availability": "",
        "availabilityDate": "",
        "brand": "",
        "canonicalLink": "",
        "channel": "",
        "color": "",
        "condition": "",
        "contentLanguage": "",
        "costOfGoodsSold": {
          "currency": "",
          "value": ""
        },
        "customAttributes": [
          {
            "name": "",
            "type": "",
            "unit": "",
            "value": ""
          }
        ],
        "customGroups": [
          {
            "attributes": [
              {}
            ],
            "name": ""
          }
        ],
        "customLabel0": "",
        "customLabel1": "",
        "customLabel2": "",
        "customLabel3": "",
        "customLabel4": "",
        "description": "",
        "destinations": [
          {
            "destinationName": "",
            "intention": ""
          }
        ],
        "displayAdsId": "",
        "displayAdsLink": "",
        "displayAdsSimilarIds": [],
        "displayAdsTitle": "",
        "displayAdsValue": "",
        "energyEfficiencyClass": "",
        "expirationDate": "",
        "gender": "",
        "googleProductCategory": "",
        "gtin": "",
        "id": "",
        "identifierExists": false,
        "imageLink": "",
        "installment": {
          "amount": {},
          "months": ""
        },
        "isBundle": false,
        "itemGroupId": "",
        "kind": "",
        "link": "",
        "loyaltyPoints": {
          "name": "",
          "pointsValue": "",
          "ratio": ""
        },
        "material": "",
        "maxEnergyEfficiencyClass": "",
        "maxHandlingTime": "",
        "minEnergyEfficiencyClass": "",
        "minHandlingTime": "",
        "mobileLink": "",
        "mpn": "",
        "multipack": "",
        "offerId": "",
        "onlineOnly": false,
        "pattern": "",
        "price": {},
        "productType": "",
        "promotionIds": [],
        "salePrice": {},
        "salePriceEffectiveDate": "",
        "sellOnGoogleQuantity": "",
        "shipping": [
          {
            "country": "",
            "locationGroupName": "",
            "locationId": "",
            "postalCode": "",
            "price": {},
            "region": "",
            "service": ""
          }
        ],
        "shippingHeight": {
          "unit": "",
          "value": ""
        },
        "shippingLabel": "",
        "shippingLength": {},
        "shippingWeight": {
          "unit": "",
          "value": ""
        },
        "shippingWidth": {},
        "sizeSystem": "",
        "sizeType": "",
        "sizes": [],
        "source": "",
        "targetCountry": "",
        "taxes": [
          {
            "country": "",
            "locationId": "",
            "postalCode": "",
            "rate": "",
            "region": "",
            "taxShip": false
          }
        ],
        "title": "",
        "unitPricingBaseMeasure": {
          "unit": "",
          "value": ""
        },
        "unitPricingMeasure": {
          "unit": "",
          "value": ""
        },
        "validatedDestinations": [],
        "warnings": [
          {
            "domain": "",
            "message": "",
            "reason": ""
          }
        ]
      },
      "productId": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/products/batch", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/batch"

payload = { "entries": [
        {
            "batchId": 0,
            "merchantId": "",
            "method": "",
            "product": {
                "additionalImageLinks": [],
                "additionalProductTypes": [],
                "adult": False,
                "adwordsGrouping": "",
                "adwordsLabels": [],
                "adwordsRedirect": "",
                "ageGroup": "",
                "aspects": [
                    {
                        "aspectName": "",
                        "destinationName": "",
                        "intention": ""
                    }
                ],
                "availability": "",
                "availabilityDate": "",
                "brand": "",
                "canonicalLink": "",
                "channel": "",
                "color": "",
                "condition": "",
                "contentLanguage": "",
                "costOfGoodsSold": {
                    "currency": "",
                    "value": ""
                },
                "customAttributes": [
                    {
                        "name": "",
                        "type": "",
                        "unit": "",
                        "value": ""
                    }
                ],
                "customGroups": [
                    {
                        "attributes": [{}],
                        "name": ""
                    }
                ],
                "customLabel0": "",
                "customLabel1": "",
                "customLabel2": "",
                "customLabel3": "",
                "customLabel4": "",
                "description": "",
                "destinations": [
                    {
                        "destinationName": "",
                        "intention": ""
                    }
                ],
                "displayAdsId": "",
                "displayAdsLink": "",
                "displayAdsSimilarIds": [],
                "displayAdsTitle": "",
                "displayAdsValue": "",
                "energyEfficiencyClass": "",
                "expirationDate": "",
                "gender": "",
                "googleProductCategory": "",
                "gtin": "",
                "id": "",
                "identifierExists": False,
                "imageLink": "",
                "installment": {
                    "amount": {},
                    "months": ""
                },
                "isBundle": False,
                "itemGroupId": "",
                "kind": "",
                "link": "",
                "loyaltyPoints": {
                    "name": "",
                    "pointsValue": "",
                    "ratio": ""
                },
                "material": "",
                "maxEnergyEfficiencyClass": "",
                "maxHandlingTime": "",
                "minEnergyEfficiencyClass": "",
                "minHandlingTime": "",
                "mobileLink": "",
                "mpn": "",
                "multipack": "",
                "offerId": "",
                "onlineOnly": False,
                "pattern": "",
                "price": {},
                "productType": "",
                "promotionIds": [],
                "salePrice": {},
                "salePriceEffectiveDate": "",
                "sellOnGoogleQuantity": "",
                "shipping": [
                    {
                        "country": "",
                        "locationGroupName": "",
                        "locationId": "",
                        "postalCode": "",
                        "price": {},
                        "region": "",
                        "service": ""
                    }
                ],
                "shippingHeight": {
                    "unit": "",
                    "value": ""
                },
                "shippingLabel": "",
                "shippingLength": {},
                "shippingWeight": {
                    "unit": "",
                    "value": ""
                },
                "shippingWidth": {},
                "sizeSystem": "",
                "sizeType": "",
                "sizes": [],
                "source": "",
                "targetCountry": "",
                "taxes": [
                    {
                        "country": "",
                        "locationId": "",
                        "postalCode": "",
                        "rate": "",
                        "region": "",
                        "taxShip": False
                    }
                ],
                "title": "",
                "unitPricingBaseMeasure": {
                    "unit": "",
                    "value": ""
                },
                "unitPricingMeasure": {
                    "unit": "",
                    "value": ""
                },
                "validatedDestinations": [],
                "warnings": [
                    {
                        "domain": "",
                        "message": "",
                        "reason": ""
                    }
                ]
            },
            "productId": ""
        }
    ] }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/batch"

payload <- "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/batch")

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  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/products/batch') do |req|
  req.body = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"product\": {\n        \"additionalImageLinks\": [],\n        \"additionalProductTypes\": [],\n        \"adult\": false,\n        \"adwordsGrouping\": \"\",\n        \"adwordsLabels\": [],\n        \"adwordsRedirect\": \"\",\n        \"ageGroup\": \"\",\n        \"aspects\": [\n          {\n            \"aspectName\": \"\",\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"availability\": \"\",\n        \"availabilityDate\": \"\",\n        \"brand\": \"\",\n        \"canonicalLink\": \"\",\n        \"channel\": \"\",\n        \"color\": \"\",\n        \"condition\": \"\",\n        \"contentLanguage\": \"\",\n        \"costOfGoodsSold\": {\n          \"currency\": \"\",\n          \"value\": \"\"\n        },\n        \"customAttributes\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\",\n            \"unit\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"customGroups\": [\n          {\n            \"attributes\": [\n              {}\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"customLabel0\": \"\",\n        \"customLabel1\": \"\",\n        \"customLabel2\": \"\",\n        \"customLabel3\": \"\",\n        \"customLabel4\": \"\",\n        \"description\": \"\",\n        \"destinations\": [\n          {\n            \"destinationName\": \"\",\n            \"intention\": \"\"\n          }\n        ],\n        \"displayAdsId\": \"\",\n        \"displayAdsLink\": \"\",\n        \"displayAdsSimilarIds\": [],\n        \"displayAdsTitle\": \"\",\n        \"displayAdsValue\": \"\",\n        \"energyEfficiencyClass\": \"\",\n        \"expirationDate\": \"\",\n        \"gender\": \"\",\n        \"googleProductCategory\": \"\",\n        \"gtin\": \"\",\n        \"id\": \"\",\n        \"identifierExists\": false,\n        \"imageLink\": \"\",\n        \"installment\": {\n          \"amount\": {},\n          \"months\": \"\"\n        },\n        \"isBundle\": false,\n        \"itemGroupId\": \"\",\n        \"kind\": \"\",\n        \"link\": \"\",\n        \"loyaltyPoints\": {\n          \"name\": \"\",\n          \"pointsValue\": \"\",\n          \"ratio\": \"\"\n        },\n        \"material\": \"\",\n        \"maxEnergyEfficiencyClass\": \"\",\n        \"maxHandlingTime\": \"\",\n        \"minEnergyEfficiencyClass\": \"\",\n        \"minHandlingTime\": \"\",\n        \"mobileLink\": \"\",\n        \"mpn\": \"\",\n        \"multipack\": \"\",\n        \"offerId\": \"\",\n        \"onlineOnly\": false,\n        \"pattern\": \"\",\n        \"price\": {},\n        \"productType\": \"\",\n        \"promotionIds\": [],\n        \"salePrice\": {},\n        \"salePriceEffectiveDate\": \"\",\n        \"sellOnGoogleQuantity\": \"\",\n        \"shipping\": [\n          {\n            \"country\": \"\",\n            \"locationGroupName\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"price\": {},\n            \"region\": \"\",\n            \"service\": \"\"\n          }\n        ],\n        \"shippingHeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingLabel\": \"\",\n        \"shippingLength\": {},\n        \"shippingWeight\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"shippingWidth\": {},\n        \"sizeSystem\": \"\",\n        \"sizeType\": \"\",\n        \"sizes\": [],\n        \"source\": \"\",\n        \"targetCountry\": \"\",\n        \"taxes\": [\n          {\n            \"country\": \"\",\n            \"locationId\": \"\",\n            \"postalCode\": \"\",\n            \"rate\": \"\",\n            \"region\": \"\",\n            \"taxShip\": false\n          }\n        ],\n        \"title\": \"\",\n        \"unitPricingBaseMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"unitPricingMeasure\": {\n          \"unit\": \"\",\n          \"value\": \"\"\n        },\n        \"validatedDestinations\": [],\n        \"warnings\": [\n          {\n            \"domain\": \"\",\n            \"message\": \"\",\n            \"reason\": \"\"\n          }\n        ]\n      },\n      \"productId\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/batch";

    let payload = json!({"entries": (
            json!({
                "batchId": 0,
                "merchantId": "",
                "method": "",
                "product": json!({
                    "additionalImageLinks": (),
                    "additionalProductTypes": (),
                    "adult": false,
                    "adwordsGrouping": "",
                    "adwordsLabels": (),
                    "adwordsRedirect": "",
                    "ageGroup": "",
                    "aspects": (
                        json!({
                            "aspectName": "",
                            "destinationName": "",
                            "intention": ""
                        })
                    ),
                    "availability": "",
                    "availabilityDate": "",
                    "brand": "",
                    "canonicalLink": "",
                    "channel": "",
                    "color": "",
                    "condition": "",
                    "contentLanguage": "",
                    "costOfGoodsSold": json!({
                        "currency": "",
                        "value": ""
                    }),
                    "customAttributes": (
                        json!({
                            "name": "",
                            "type": "",
                            "unit": "",
                            "value": ""
                        })
                    ),
                    "customGroups": (
                        json!({
                            "attributes": (json!({})),
                            "name": ""
                        })
                    ),
                    "customLabel0": "",
                    "customLabel1": "",
                    "customLabel2": "",
                    "customLabel3": "",
                    "customLabel4": "",
                    "description": "",
                    "destinations": (
                        json!({
                            "destinationName": "",
                            "intention": ""
                        })
                    ),
                    "displayAdsId": "",
                    "displayAdsLink": "",
                    "displayAdsSimilarIds": (),
                    "displayAdsTitle": "",
                    "displayAdsValue": "",
                    "energyEfficiencyClass": "",
                    "expirationDate": "",
                    "gender": "",
                    "googleProductCategory": "",
                    "gtin": "",
                    "id": "",
                    "identifierExists": false,
                    "imageLink": "",
                    "installment": json!({
                        "amount": json!({}),
                        "months": ""
                    }),
                    "isBundle": false,
                    "itemGroupId": "",
                    "kind": "",
                    "link": "",
                    "loyaltyPoints": json!({
                        "name": "",
                        "pointsValue": "",
                        "ratio": ""
                    }),
                    "material": "",
                    "maxEnergyEfficiencyClass": "",
                    "maxHandlingTime": "",
                    "minEnergyEfficiencyClass": "",
                    "minHandlingTime": "",
                    "mobileLink": "",
                    "mpn": "",
                    "multipack": "",
                    "offerId": "",
                    "onlineOnly": false,
                    "pattern": "",
                    "price": json!({}),
                    "productType": "",
                    "promotionIds": (),
                    "salePrice": json!({}),
                    "salePriceEffectiveDate": "",
                    "sellOnGoogleQuantity": "",
                    "shipping": (
                        json!({
                            "country": "",
                            "locationGroupName": "",
                            "locationId": "",
                            "postalCode": "",
                            "price": json!({}),
                            "region": "",
                            "service": ""
                        })
                    ),
                    "shippingHeight": json!({
                        "unit": "",
                        "value": ""
                    }),
                    "shippingLabel": "",
                    "shippingLength": json!({}),
                    "shippingWeight": json!({
                        "unit": "",
                        "value": ""
                    }),
                    "shippingWidth": json!({}),
                    "sizeSystem": "",
                    "sizeType": "",
                    "sizes": (),
                    "source": "",
                    "targetCountry": "",
                    "taxes": (
                        json!({
                            "country": "",
                            "locationId": "",
                            "postalCode": "",
                            "rate": "",
                            "region": "",
                            "taxShip": false
                        })
                    ),
                    "title": "",
                    "unitPricingBaseMeasure": json!({
                        "unit": "",
                        "value": ""
                    }),
                    "unitPricingMeasure": json!({
                        "unit": "",
                        "value": ""
                    }),
                    "validatedDestinations": (),
                    "warnings": (
                        json!({
                            "domain": "",
                            "message": "",
                            "reason": ""
                        })
                    )
                }),
                "productId": ""
            })
        )});

    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}}/products/batch \
  --header 'content-type: application/json' \
  --data '{
  "entries": [
    {
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "product": {
        "additionalImageLinks": [],
        "additionalProductTypes": [],
        "adult": false,
        "adwordsGrouping": "",
        "adwordsLabels": [],
        "adwordsRedirect": "",
        "ageGroup": "",
        "aspects": [
          {
            "aspectName": "",
            "destinationName": "",
            "intention": ""
          }
        ],
        "availability": "",
        "availabilityDate": "",
        "brand": "",
        "canonicalLink": "",
        "channel": "",
        "color": "",
        "condition": "",
        "contentLanguage": "",
        "costOfGoodsSold": {
          "currency": "",
          "value": ""
        },
        "customAttributes": [
          {
            "name": "",
            "type": "",
            "unit": "",
            "value": ""
          }
        ],
        "customGroups": [
          {
            "attributes": [
              {}
            ],
            "name": ""
          }
        ],
        "customLabel0": "",
        "customLabel1": "",
        "customLabel2": "",
        "customLabel3": "",
        "customLabel4": "",
        "description": "",
        "destinations": [
          {
            "destinationName": "",
            "intention": ""
          }
        ],
        "displayAdsId": "",
        "displayAdsLink": "",
        "displayAdsSimilarIds": [],
        "displayAdsTitle": "",
        "displayAdsValue": "",
        "energyEfficiencyClass": "",
        "expirationDate": "",
        "gender": "",
        "googleProductCategory": "",
        "gtin": "",
        "id": "",
        "identifierExists": false,
        "imageLink": "",
        "installment": {
          "amount": {},
          "months": ""
        },
        "isBundle": false,
        "itemGroupId": "",
        "kind": "",
        "link": "",
        "loyaltyPoints": {
          "name": "",
          "pointsValue": "",
          "ratio": ""
        },
        "material": "",
        "maxEnergyEfficiencyClass": "",
        "maxHandlingTime": "",
        "minEnergyEfficiencyClass": "",
        "minHandlingTime": "",
        "mobileLink": "",
        "mpn": "",
        "multipack": "",
        "offerId": "",
        "onlineOnly": false,
        "pattern": "",
        "price": {},
        "productType": "",
        "promotionIds": [],
        "salePrice": {},
        "salePriceEffectiveDate": "",
        "sellOnGoogleQuantity": "",
        "shipping": [
          {
            "country": "",
            "locationGroupName": "",
            "locationId": "",
            "postalCode": "",
            "price": {},
            "region": "",
            "service": ""
          }
        ],
        "shippingHeight": {
          "unit": "",
          "value": ""
        },
        "shippingLabel": "",
        "shippingLength": {},
        "shippingWeight": {
          "unit": "",
          "value": ""
        },
        "shippingWidth": {},
        "sizeSystem": "",
        "sizeType": "",
        "sizes": [],
        "source": "",
        "targetCountry": "",
        "taxes": [
          {
            "country": "",
            "locationId": "",
            "postalCode": "",
            "rate": "",
            "region": "",
            "taxShip": false
          }
        ],
        "title": "",
        "unitPricingBaseMeasure": {
          "unit": "",
          "value": ""
        },
        "unitPricingMeasure": {
          "unit": "",
          "value": ""
        },
        "validatedDestinations": [],
        "warnings": [
          {
            "domain": "",
            "message": "",
            "reason": ""
          }
        ]
      },
      "productId": ""
    }
  ]
}'
echo '{
  "entries": [
    {
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "product": {
        "additionalImageLinks": [],
        "additionalProductTypes": [],
        "adult": false,
        "adwordsGrouping": "",
        "adwordsLabels": [],
        "adwordsRedirect": "",
        "ageGroup": "",
        "aspects": [
          {
            "aspectName": "",
            "destinationName": "",
            "intention": ""
          }
        ],
        "availability": "",
        "availabilityDate": "",
        "brand": "",
        "canonicalLink": "",
        "channel": "",
        "color": "",
        "condition": "",
        "contentLanguage": "",
        "costOfGoodsSold": {
          "currency": "",
          "value": ""
        },
        "customAttributes": [
          {
            "name": "",
            "type": "",
            "unit": "",
            "value": ""
          }
        ],
        "customGroups": [
          {
            "attributes": [
              {}
            ],
            "name": ""
          }
        ],
        "customLabel0": "",
        "customLabel1": "",
        "customLabel2": "",
        "customLabel3": "",
        "customLabel4": "",
        "description": "",
        "destinations": [
          {
            "destinationName": "",
            "intention": ""
          }
        ],
        "displayAdsId": "",
        "displayAdsLink": "",
        "displayAdsSimilarIds": [],
        "displayAdsTitle": "",
        "displayAdsValue": "",
        "energyEfficiencyClass": "",
        "expirationDate": "",
        "gender": "",
        "googleProductCategory": "",
        "gtin": "",
        "id": "",
        "identifierExists": false,
        "imageLink": "",
        "installment": {
          "amount": {},
          "months": ""
        },
        "isBundle": false,
        "itemGroupId": "",
        "kind": "",
        "link": "",
        "loyaltyPoints": {
          "name": "",
          "pointsValue": "",
          "ratio": ""
        },
        "material": "",
        "maxEnergyEfficiencyClass": "",
        "maxHandlingTime": "",
        "minEnergyEfficiencyClass": "",
        "minHandlingTime": "",
        "mobileLink": "",
        "mpn": "",
        "multipack": "",
        "offerId": "",
        "onlineOnly": false,
        "pattern": "",
        "price": {},
        "productType": "",
        "promotionIds": [],
        "salePrice": {},
        "salePriceEffectiveDate": "",
        "sellOnGoogleQuantity": "",
        "shipping": [
          {
            "country": "",
            "locationGroupName": "",
            "locationId": "",
            "postalCode": "",
            "price": {},
            "region": "",
            "service": ""
          }
        ],
        "shippingHeight": {
          "unit": "",
          "value": ""
        },
        "shippingLabel": "",
        "shippingLength": {},
        "shippingWeight": {
          "unit": "",
          "value": ""
        },
        "shippingWidth": {},
        "sizeSystem": "",
        "sizeType": "",
        "sizes": [],
        "source": "",
        "targetCountry": "",
        "taxes": [
          {
            "country": "",
            "locationId": "",
            "postalCode": "",
            "rate": "",
            "region": "",
            "taxShip": false
          }
        ],
        "title": "",
        "unitPricingBaseMeasure": {
          "unit": "",
          "value": ""
        },
        "unitPricingMeasure": {
          "unit": "",
          "value": ""
        },
        "validatedDestinations": [],
        "warnings": [
          {
            "domain": "",
            "message": "",
            "reason": ""
          }
        ]
      },
      "productId": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/products/batch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entries": [\n    {\n      "batchId": 0,\n      "merchantId": "",\n      "method": "",\n      "product": {\n        "additionalImageLinks": [],\n        "additionalProductTypes": [],\n        "adult": false,\n        "adwordsGrouping": "",\n        "adwordsLabels": [],\n        "adwordsRedirect": "",\n        "ageGroup": "",\n        "aspects": [\n          {\n            "aspectName": "",\n            "destinationName": "",\n            "intention": ""\n          }\n        ],\n        "availability": "",\n        "availabilityDate": "",\n        "brand": "",\n        "canonicalLink": "",\n        "channel": "",\n        "color": "",\n        "condition": "",\n        "contentLanguage": "",\n        "costOfGoodsSold": {\n          "currency": "",\n          "value": ""\n        },\n        "customAttributes": [\n          {\n            "name": "",\n            "type": "",\n            "unit": "",\n            "value": ""\n          }\n        ],\n        "customGroups": [\n          {\n            "attributes": [\n              {}\n            ],\n            "name": ""\n          }\n        ],\n        "customLabel0": "",\n        "customLabel1": "",\n        "customLabel2": "",\n        "customLabel3": "",\n        "customLabel4": "",\n        "description": "",\n        "destinations": [\n          {\n            "destinationName": "",\n            "intention": ""\n          }\n        ],\n        "displayAdsId": "",\n        "displayAdsLink": "",\n        "displayAdsSimilarIds": [],\n        "displayAdsTitle": "",\n        "displayAdsValue": "",\n        "energyEfficiencyClass": "",\n        "expirationDate": "",\n        "gender": "",\n        "googleProductCategory": "",\n        "gtin": "",\n        "id": "",\n        "identifierExists": false,\n        "imageLink": "",\n        "installment": {\n          "amount": {},\n          "months": ""\n        },\n        "isBundle": false,\n        "itemGroupId": "",\n        "kind": "",\n        "link": "",\n        "loyaltyPoints": {\n          "name": "",\n          "pointsValue": "",\n          "ratio": ""\n        },\n        "material": "",\n        "maxEnergyEfficiencyClass": "",\n        "maxHandlingTime": "",\n        "minEnergyEfficiencyClass": "",\n        "minHandlingTime": "",\n        "mobileLink": "",\n        "mpn": "",\n        "multipack": "",\n        "offerId": "",\n        "onlineOnly": false,\n        "pattern": "",\n        "price": {},\n        "productType": "",\n        "promotionIds": [],\n        "salePrice": {},\n        "salePriceEffectiveDate": "",\n        "sellOnGoogleQuantity": "",\n        "shipping": [\n          {\n            "country": "",\n            "locationGroupName": "",\n            "locationId": "",\n            "postalCode": "",\n            "price": {},\n            "region": "",\n            "service": ""\n          }\n        ],\n        "shippingHeight": {\n          "unit": "",\n          "value": ""\n        },\n        "shippingLabel": "",\n        "shippingLength": {},\n        "shippingWeight": {\n          "unit": "",\n          "value": ""\n        },\n        "shippingWidth": {},\n        "sizeSystem": "",\n        "sizeType": "",\n        "sizes": [],\n        "source": "",\n        "targetCountry": "",\n        "taxes": [\n          {\n            "country": "",\n            "locationId": "",\n            "postalCode": "",\n            "rate": "",\n            "region": "",\n            "taxShip": false\n          }\n        ],\n        "title": "",\n        "unitPricingBaseMeasure": {\n          "unit": "",\n          "value": ""\n        },\n        "unitPricingMeasure": {\n          "unit": "",\n          "value": ""\n        },\n        "validatedDestinations": [],\n        "warnings": [\n          {\n            "domain": "",\n            "message": "",\n            "reason": ""\n          }\n        ]\n      },\n      "productId": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/products/batch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["entries": [
    [
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "product": [
        "additionalImageLinks": [],
        "additionalProductTypes": [],
        "adult": false,
        "adwordsGrouping": "",
        "adwordsLabels": [],
        "adwordsRedirect": "",
        "ageGroup": "",
        "aspects": [
          [
            "aspectName": "",
            "destinationName": "",
            "intention": ""
          ]
        ],
        "availability": "",
        "availabilityDate": "",
        "brand": "",
        "canonicalLink": "",
        "channel": "",
        "color": "",
        "condition": "",
        "contentLanguage": "",
        "costOfGoodsSold": [
          "currency": "",
          "value": ""
        ],
        "customAttributes": [
          [
            "name": "",
            "type": "",
            "unit": "",
            "value": ""
          ]
        ],
        "customGroups": [
          [
            "attributes": [[]],
            "name": ""
          ]
        ],
        "customLabel0": "",
        "customLabel1": "",
        "customLabel2": "",
        "customLabel3": "",
        "customLabel4": "",
        "description": "",
        "destinations": [
          [
            "destinationName": "",
            "intention": ""
          ]
        ],
        "displayAdsId": "",
        "displayAdsLink": "",
        "displayAdsSimilarIds": [],
        "displayAdsTitle": "",
        "displayAdsValue": "",
        "energyEfficiencyClass": "",
        "expirationDate": "",
        "gender": "",
        "googleProductCategory": "",
        "gtin": "",
        "id": "",
        "identifierExists": false,
        "imageLink": "",
        "installment": [
          "amount": [],
          "months": ""
        ],
        "isBundle": false,
        "itemGroupId": "",
        "kind": "",
        "link": "",
        "loyaltyPoints": [
          "name": "",
          "pointsValue": "",
          "ratio": ""
        ],
        "material": "",
        "maxEnergyEfficiencyClass": "",
        "maxHandlingTime": "",
        "minEnergyEfficiencyClass": "",
        "minHandlingTime": "",
        "mobileLink": "",
        "mpn": "",
        "multipack": "",
        "offerId": "",
        "onlineOnly": false,
        "pattern": "",
        "price": [],
        "productType": "",
        "promotionIds": [],
        "salePrice": [],
        "salePriceEffectiveDate": "",
        "sellOnGoogleQuantity": "",
        "shipping": [
          [
            "country": "",
            "locationGroupName": "",
            "locationId": "",
            "postalCode": "",
            "price": [],
            "region": "",
            "service": ""
          ]
        ],
        "shippingHeight": [
          "unit": "",
          "value": ""
        ],
        "shippingLabel": "",
        "shippingLength": [],
        "shippingWeight": [
          "unit": "",
          "value": ""
        ],
        "shippingWidth": [],
        "sizeSystem": "",
        "sizeType": "",
        "sizes": [],
        "source": "",
        "targetCountry": "",
        "taxes": [
          [
            "country": "",
            "locationId": "",
            "postalCode": "",
            "rate": "",
            "region": "",
            "taxShip": false
          ]
        ],
        "title": "",
        "unitPricingBaseMeasure": [
          "unit": "",
          "value": ""
        ],
        "unitPricingMeasure": [
          "unit": "",
          "value": ""
        ],
        "validatedDestinations": [],
        "warnings": [
          [
            "domain": "",
            "message": "",
            "reason": ""
          ]
        ]
      ],
      "productId": ""
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/batch")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE content.products.delete
{{baseUrl}}/:merchantId/products/:productId
QUERY PARAMS

merchantId
productId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/products/:productId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:merchantId/products/:productId")
require "http/client"

url = "{{baseUrl}}/:merchantId/products/:productId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/products/:productId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/products/:productId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/products/:productId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/:merchantId/products/:productId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:merchantId/products/:productId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/products/:productId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/products/:productId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:merchantId/products/:productId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:merchantId/products/:productId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:merchantId/products/:productId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/products/:productId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/products/:productId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/products/:productId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/products/:productId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:merchantId/products/:productId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:merchantId/products/:productId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:merchantId/products/:productId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/products/:productId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/products/:productId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/products/:productId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/products/:productId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:merchantId/products/:productId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/products/:productId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/products/:productId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/products/:productId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/products/:productId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:merchantId/products/:productId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/products/:productId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/products/:productId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/products/:productId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/:merchantId/products/:productId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/products/:productId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:merchantId/products/:productId
http DELETE {{baseUrl}}/:merchantId/products/:productId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:merchantId/products/:productId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/products/:productId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.products.get
{{baseUrl}}/:merchantId/products/:productId
QUERY PARAMS

merchantId
productId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/products/:productId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/products/:productId")
require "http/client"

url = "{{baseUrl}}/:merchantId/products/:productId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/products/:productId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/products/:productId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/products/:productId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/products/:productId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/products/:productId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/products/:productId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/products/:productId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/products/:productId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/products/:productId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/products/:productId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/products/:productId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/products/:productId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/products/:productId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/products/:productId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/products/:productId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/products/:productId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/products/:productId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/products/:productId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/products/:productId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/products/:productId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/products/:productId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/products/:productId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/products/:productId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/products/:productId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/products/:productId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/products/:productId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/products/:productId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/products/:productId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/products/:productId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/products/:productId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/products/:productId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/products/:productId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/products/:productId
http GET {{baseUrl}}/:merchantId/products/:productId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/products/:productId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/products/:productId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.products.insert
{{baseUrl}}/:merchantId/products
QUERY PARAMS

merchantId
BODY json

{
  "additionalImageLinks": [],
  "additionalProductTypes": [],
  "adult": false,
  "adwordsGrouping": "",
  "adwordsLabels": [],
  "adwordsRedirect": "",
  "ageGroup": "",
  "aspects": [
    {
      "aspectName": "",
      "destinationName": "",
      "intention": ""
    }
  ],
  "availability": "",
  "availabilityDate": "",
  "brand": "",
  "canonicalLink": "",
  "channel": "",
  "color": "",
  "condition": "",
  "contentLanguage": "",
  "costOfGoodsSold": {
    "currency": "",
    "value": ""
  },
  "customAttributes": [
    {
      "name": "",
      "type": "",
      "unit": "",
      "value": ""
    }
  ],
  "customGroups": [
    {
      "attributes": [
        {}
      ],
      "name": ""
    }
  ],
  "customLabel0": "",
  "customLabel1": "",
  "customLabel2": "",
  "customLabel3": "",
  "customLabel4": "",
  "description": "",
  "destinations": [
    {
      "destinationName": "",
      "intention": ""
    }
  ],
  "displayAdsId": "",
  "displayAdsLink": "",
  "displayAdsSimilarIds": [],
  "displayAdsTitle": "",
  "displayAdsValue": "",
  "energyEfficiencyClass": "",
  "expirationDate": "",
  "gender": "",
  "googleProductCategory": "",
  "gtin": "",
  "id": "",
  "identifierExists": false,
  "imageLink": "",
  "installment": {
    "amount": {},
    "months": ""
  },
  "isBundle": false,
  "itemGroupId": "",
  "kind": "",
  "link": "",
  "loyaltyPoints": {
    "name": "",
    "pointsValue": "",
    "ratio": ""
  },
  "material": "",
  "maxEnergyEfficiencyClass": "",
  "maxHandlingTime": "",
  "minEnergyEfficiencyClass": "",
  "minHandlingTime": "",
  "mobileLink": "",
  "mpn": "",
  "multipack": "",
  "offerId": "",
  "onlineOnly": false,
  "pattern": "",
  "price": {},
  "productType": "",
  "promotionIds": [],
  "salePrice": {},
  "salePriceEffectiveDate": "",
  "sellOnGoogleQuantity": "",
  "shipping": [
    {
      "country": "",
      "locationGroupName": "",
      "locationId": "",
      "postalCode": "",
      "price": {},
      "region": "",
      "service": ""
    }
  ],
  "shippingHeight": {
    "unit": "",
    "value": ""
  },
  "shippingLabel": "",
  "shippingLength": {},
  "shippingWeight": {
    "unit": "",
    "value": ""
  },
  "shippingWidth": {},
  "sizeSystem": "",
  "sizeType": "",
  "sizes": [],
  "source": "",
  "targetCountry": "",
  "taxes": [
    {
      "country": "",
      "locationId": "",
      "postalCode": "",
      "rate": "",
      "region": "",
      "taxShip": false
    }
  ],
  "title": "",
  "unitPricingBaseMeasure": {
    "unit": "",
    "value": ""
  },
  "unitPricingMeasure": {
    "unit": "",
    "value": ""
  },
  "validatedDestinations": [],
  "warnings": [
    {
      "domain": "",
      "message": "",
      "reason": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/products");

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  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:merchantId/products" {:content-type :json
                                                                 :form-params {:additionalImageLinks []
                                                                               :additionalProductTypes []
                                                                               :adult false
                                                                               :adwordsGrouping ""
                                                                               :adwordsLabels []
                                                                               :adwordsRedirect ""
                                                                               :ageGroup ""
                                                                               :aspects [{:aspectName ""
                                                                                          :destinationName ""
                                                                                          :intention ""}]
                                                                               :availability ""
                                                                               :availabilityDate ""
                                                                               :brand ""
                                                                               :canonicalLink ""
                                                                               :channel ""
                                                                               :color ""
                                                                               :condition ""
                                                                               :contentLanguage ""
                                                                               :costOfGoodsSold {:currency ""
                                                                                                 :value ""}
                                                                               :customAttributes [{:name ""
                                                                                                   :type ""
                                                                                                   :unit ""
                                                                                                   :value ""}]
                                                                               :customGroups [{:attributes [{}]
                                                                                               :name ""}]
                                                                               :customLabel0 ""
                                                                               :customLabel1 ""
                                                                               :customLabel2 ""
                                                                               :customLabel3 ""
                                                                               :customLabel4 ""
                                                                               :description ""
                                                                               :destinations [{:destinationName ""
                                                                                               :intention ""}]
                                                                               :displayAdsId ""
                                                                               :displayAdsLink ""
                                                                               :displayAdsSimilarIds []
                                                                               :displayAdsTitle ""
                                                                               :displayAdsValue ""
                                                                               :energyEfficiencyClass ""
                                                                               :expirationDate ""
                                                                               :gender ""
                                                                               :googleProductCategory ""
                                                                               :gtin ""
                                                                               :id ""
                                                                               :identifierExists false
                                                                               :imageLink ""
                                                                               :installment {:amount {}
                                                                                             :months ""}
                                                                               :isBundle false
                                                                               :itemGroupId ""
                                                                               :kind ""
                                                                               :link ""
                                                                               :loyaltyPoints {:name ""
                                                                                               :pointsValue ""
                                                                                               :ratio ""}
                                                                               :material ""
                                                                               :maxEnergyEfficiencyClass ""
                                                                               :maxHandlingTime ""
                                                                               :minEnergyEfficiencyClass ""
                                                                               :minHandlingTime ""
                                                                               :mobileLink ""
                                                                               :mpn ""
                                                                               :multipack ""
                                                                               :offerId ""
                                                                               :onlineOnly false
                                                                               :pattern ""
                                                                               :price {}
                                                                               :productType ""
                                                                               :promotionIds []
                                                                               :salePrice {}
                                                                               :salePriceEffectiveDate ""
                                                                               :sellOnGoogleQuantity ""
                                                                               :shipping [{:country ""
                                                                                           :locationGroupName ""
                                                                                           :locationId ""
                                                                                           :postalCode ""
                                                                                           :price {}
                                                                                           :region ""
                                                                                           :service ""}]
                                                                               :shippingHeight {:unit ""
                                                                                                :value ""}
                                                                               :shippingLabel ""
                                                                               :shippingLength {}
                                                                               :shippingWeight {:unit ""
                                                                                                :value ""}
                                                                               :shippingWidth {}
                                                                               :sizeSystem ""
                                                                               :sizeType ""
                                                                               :sizes []
                                                                               :source ""
                                                                               :targetCountry ""
                                                                               :taxes [{:country ""
                                                                                        :locationId ""
                                                                                        :postalCode ""
                                                                                        :rate ""
                                                                                        :region ""
                                                                                        :taxShip false}]
                                                                               :title ""
                                                                               :unitPricingBaseMeasure {:unit ""
                                                                                                        :value ""}
                                                                               :unitPricingMeasure {:unit ""
                                                                                                    :value ""}
                                                                               :validatedDestinations []
                                                                               :warnings [{:domain ""
                                                                                           :message ""
                                                                                           :reason ""}]}})
require "http/client"

url = "{{baseUrl}}/:merchantId/products"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/products"),
    Content = new StringContent("{\n  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/products");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/products"

	payload := strings.NewReader("{\n  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:merchantId/products HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2731

{
  "additionalImageLinks": [],
  "additionalProductTypes": [],
  "adult": false,
  "adwordsGrouping": "",
  "adwordsLabels": [],
  "adwordsRedirect": "",
  "ageGroup": "",
  "aspects": [
    {
      "aspectName": "",
      "destinationName": "",
      "intention": ""
    }
  ],
  "availability": "",
  "availabilityDate": "",
  "brand": "",
  "canonicalLink": "",
  "channel": "",
  "color": "",
  "condition": "",
  "contentLanguage": "",
  "costOfGoodsSold": {
    "currency": "",
    "value": ""
  },
  "customAttributes": [
    {
      "name": "",
      "type": "",
      "unit": "",
      "value": ""
    }
  ],
  "customGroups": [
    {
      "attributes": [
        {}
      ],
      "name": ""
    }
  ],
  "customLabel0": "",
  "customLabel1": "",
  "customLabel2": "",
  "customLabel3": "",
  "customLabel4": "",
  "description": "",
  "destinations": [
    {
      "destinationName": "",
      "intention": ""
    }
  ],
  "displayAdsId": "",
  "displayAdsLink": "",
  "displayAdsSimilarIds": [],
  "displayAdsTitle": "",
  "displayAdsValue": "",
  "energyEfficiencyClass": "",
  "expirationDate": "",
  "gender": "",
  "googleProductCategory": "",
  "gtin": "",
  "id": "",
  "identifierExists": false,
  "imageLink": "",
  "installment": {
    "amount": {},
    "months": ""
  },
  "isBundle": false,
  "itemGroupId": "",
  "kind": "",
  "link": "",
  "loyaltyPoints": {
    "name": "",
    "pointsValue": "",
    "ratio": ""
  },
  "material": "",
  "maxEnergyEfficiencyClass": "",
  "maxHandlingTime": "",
  "minEnergyEfficiencyClass": "",
  "minHandlingTime": "",
  "mobileLink": "",
  "mpn": "",
  "multipack": "",
  "offerId": "",
  "onlineOnly": false,
  "pattern": "",
  "price": {},
  "productType": "",
  "promotionIds": [],
  "salePrice": {},
  "salePriceEffectiveDate": "",
  "sellOnGoogleQuantity": "",
  "shipping": [
    {
      "country": "",
      "locationGroupName": "",
      "locationId": "",
      "postalCode": "",
      "price": {},
      "region": "",
      "service": ""
    }
  ],
  "shippingHeight": {
    "unit": "",
    "value": ""
  },
  "shippingLabel": "",
  "shippingLength": {},
  "shippingWeight": {
    "unit": "",
    "value": ""
  },
  "shippingWidth": {},
  "sizeSystem": "",
  "sizeType": "",
  "sizes": [],
  "source": "",
  "targetCountry": "",
  "taxes": [
    {
      "country": "",
      "locationId": "",
      "postalCode": "",
      "rate": "",
      "region": "",
      "taxShip": false
    }
  ],
  "title": "",
  "unitPricingBaseMeasure": {
    "unit": "",
    "value": ""
  },
  "unitPricingMeasure": {
    "unit": "",
    "value": ""
  },
  "validatedDestinations": [],
  "warnings": [
    {
      "domain": "",
      "message": "",
      "reason": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:merchantId/products")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/products"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/products")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:merchantId/products")
  .header("content-type", "application/json")
  .body("{\n  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  additionalImageLinks: [],
  additionalProductTypes: [],
  adult: false,
  adwordsGrouping: '',
  adwordsLabels: [],
  adwordsRedirect: '',
  ageGroup: '',
  aspects: [
    {
      aspectName: '',
      destinationName: '',
      intention: ''
    }
  ],
  availability: '',
  availabilityDate: '',
  brand: '',
  canonicalLink: '',
  channel: '',
  color: '',
  condition: '',
  contentLanguage: '',
  costOfGoodsSold: {
    currency: '',
    value: ''
  },
  customAttributes: [
    {
      name: '',
      type: '',
      unit: '',
      value: ''
    }
  ],
  customGroups: [
    {
      attributes: [
        {}
      ],
      name: ''
    }
  ],
  customLabel0: '',
  customLabel1: '',
  customLabel2: '',
  customLabel3: '',
  customLabel4: '',
  description: '',
  destinations: [
    {
      destinationName: '',
      intention: ''
    }
  ],
  displayAdsId: '',
  displayAdsLink: '',
  displayAdsSimilarIds: [],
  displayAdsTitle: '',
  displayAdsValue: '',
  energyEfficiencyClass: '',
  expirationDate: '',
  gender: '',
  googleProductCategory: '',
  gtin: '',
  id: '',
  identifierExists: false,
  imageLink: '',
  installment: {
    amount: {},
    months: ''
  },
  isBundle: false,
  itemGroupId: '',
  kind: '',
  link: '',
  loyaltyPoints: {
    name: '',
    pointsValue: '',
    ratio: ''
  },
  material: '',
  maxEnergyEfficiencyClass: '',
  maxHandlingTime: '',
  minEnergyEfficiencyClass: '',
  minHandlingTime: '',
  mobileLink: '',
  mpn: '',
  multipack: '',
  offerId: '',
  onlineOnly: false,
  pattern: '',
  price: {},
  productType: '',
  promotionIds: [],
  salePrice: {},
  salePriceEffectiveDate: '',
  sellOnGoogleQuantity: '',
  shipping: [
    {
      country: '',
      locationGroupName: '',
      locationId: '',
      postalCode: '',
      price: {},
      region: '',
      service: ''
    }
  ],
  shippingHeight: {
    unit: '',
    value: ''
  },
  shippingLabel: '',
  shippingLength: {},
  shippingWeight: {
    unit: '',
    value: ''
  },
  shippingWidth: {},
  sizeSystem: '',
  sizeType: '',
  sizes: [],
  source: '',
  targetCountry: '',
  taxes: [
    {
      country: '',
      locationId: '',
      postalCode: '',
      rate: '',
      region: '',
      taxShip: false
    }
  ],
  title: '',
  unitPricingBaseMeasure: {
    unit: '',
    value: ''
  },
  unitPricingMeasure: {
    unit: '',
    value: ''
  },
  validatedDestinations: [],
  warnings: [
    {
      domain: '',
      message: '',
      reason: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:merchantId/products');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/products',
  headers: {'content-type': 'application/json'},
  data: {
    additionalImageLinks: [],
    additionalProductTypes: [],
    adult: false,
    adwordsGrouping: '',
    adwordsLabels: [],
    adwordsRedirect: '',
    ageGroup: '',
    aspects: [{aspectName: '', destinationName: '', intention: ''}],
    availability: '',
    availabilityDate: '',
    brand: '',
    canonicalLink: '',
    channel: '',
    color: '',
    condition: '',
    contentLanguage: '',
    costOfGoodsSold: {currency: '', value: ''},
    customAttributes: [{name: '', type: '', unit: '', value: ''}],
    customGroups: [{attributes: [{}], name: ''}],
    customLabel0: '',
    customLabel1: '',
    customLabel2: '',
    customLabel3: '',
    customLabel4: '',
    description: '',
    destinations: [{destinationName: '', intention: ''}],
    displayAdsId: '',
    displayAdsLink: '',
    displayAdsSimilarIds: [],
    displayAdsTitle: '',
    displayAdsValue: '',
    energyEfficiencyClass: '',
    expirationDate: '',
    gender: '',
    googleProductCategory: '',
    gtin: '',
    id: '',
    identifierExists: false,
    imageLink: '',
    installment: {amount: {}, months: ''},
    isBundle: false,
    itemGroupId: '',
    kind: '',
    link: '',
    loyaltyPoints: {name: '', pointsValue: '', ratio: ''},
    material: '',
    maxEnergyEfficiencyClass: '',
    maxHandlingTime: '',
    minEnergyEfficiencyClass: '',
    minHandlingTime: '',
    mobileLink: '',
    mpn: '',
    multipack: '',
    offerId: '',
    onlineOnly: false,
    pattern: '',
    price: {},
    productType: '',
    promotionIds: [],
    salePrice: {},
    salePriceEffectiveDate: '',
    sellOnGoogleQuantity: '',
    shipping: [
      {
        country: '',
        locationGroupName: '',
        locationId: '',
        postalCode: '',
        price: {},
        region: '',
        service: ''
      }
    ],
    shippingHeight: {unit: '', value: ''},
    shippingLabel: '',
    shippingLength: {},
    shippingWeight: {unit: '', value: ''},
    shippingWidth: {},
    sizeSystem: '',
    sizeType: '',
    sizes: [],
    source: '',
    targetCountry: '',
    taxes: [
      {
        country: '',
        locationId: '',
        postalCode: '',
        rate: '',
        region: '',
        taxShip: false
      }
    ],
    title: '',
    unitPricingBaseMeasure: {unit: '', value: ''},
    unitPricingMeasure: {unit: '', value: ''},
    validatedDestinations: [],
    warnings: [{domain: '', message: '', reason: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/products';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalImageLinks":[],"additionalProductTypes":[],"adult":false,"adwordsGrouping":"","adwordsLabels":[],"adwordsRedirect":"","ageGroup":"","aspects":[{"aspectName":"","destinationName":"","intention":""}],"availability":"","availabilityDate":"","brand":"","canonicalLink":"","channel":"","color":"","condition":"","contentLanguage":"","costOfGoodsSold":{"currency":"","value":""},"customAttributes":[{"name":"","type":"","unit":"","value":""}],"customGroups":[{"attributes":[{}],"name":""}],"customLabel0":"","customLabel1":"","customLabel2":"","customLabel3":"","customLabel4":"","description":"","destinations":[{"destinationName":"","intention":""}],"displayAdsId":"","displayAdsLink":"","displayAdsSimilarIds":[],"displayAdsTitle":"","displayAdsValue":"","energyEfficiencyClass":"","expirationDate":"","gender":"","googleProductCategory":"","gtin":"","id":"","identifierExists":false,"imageLink":"","installment":{"amount":{},"months":""},"isBundle":false,"itemGroupId":"","kind":"","link":"","loyaltyPoints":{"name":"","pointsValue":"","ratio":""},"material":"","maxEnergyEfficiencyClass":"","maxHandlingTime":"","minEnergyEfficiencyClass":"","minHandlingTime":"","mobileLink":"","mpn":"","multipack":"","offerId":"","onlineOnly":false,"pattern":"","price":{},"productType":"","promotionIds":[],"salePrice":{},"salePriceEffectiveDate":"","sellOnGoogleQuantity":"","shipping":[{"country":"","locationGroupName":"","locationId":"","postalCode":"","price":{},"region":"","service":""}],"shippingHeight":{"unit":"","value":""},"shippingLabel":"","shippingLength":{},"shippingWeight":{"unit":"","value":""},"shippingWidth":{},"sizeSystem":"","sizeType":"","sizes":[],"source":"","targetCountry":"","taxes":[{"country":"","locationId":"","postalCode":"","rate":"","region":"","taxShip":false}],"title":"","unitPricingBaseMeasure":{"unit":"","value":""},"unitPricingMeasure":{"unit":"","value":""},"validatedDestinations":[],"warnings":[{"domain":"","message":"","reason":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/products',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalImageLinks": [],\n  "additionalProductTypes": [],\n  "adult": false,\n  "adwordsGrouping": "",\n  "adwordsLabels": [],\n  "adwordsRedirect": "",\n  "ageGroup": "",\n  "aspects": [\n    {\n      "aspectName": "",\n      "destinationName": "",\n      "intention": ""\n    }\n  ],\n  "availability": "",\n  "availabilityDate": "",\n  "brand": "",\n  "canonicalLink": "",\n  "channel": "",\n  "color": "",\n  "condition": "",\n  "contentLanguage": "",\n  "costOfGoodsSold": {\n    "currency": "",\n    "value": ""\n  },\n  "customAttributes": [\n    {\n      "name": "",\n      "type": "",\n      "unit": "",\n      "value": ""\n    }\n  ],\n  "customGroups": [\n    {\n      "attributes": [\n        {}\n      ],\n      "name": ""\n    }\n  ],\n  "customLabel0": "",\n  "customLabel1": "",\n  "customLabel2": "",\n  "customLabel3": "",\n  "customLabel4": "",\n  "description": "",\n  "destinations": [\n    {\n      "destinationName": "",\n      "intention": ""\n    }\n  ],\n  "displayAdsId": "",\n  "displayAdsLink": "",\n  "displayAdsSimilarIds": [],\n  "displayAdsTitle": "",\n  "displayAdsValue": "",\n  "energyEfficiencyClass": "",\n  "expirationDate": "",\n  "gender": "",\n  "googleProductCategory": "",\n  "gtin": "",\n  "id": "",\n  "identifierExists": false,\n  "imageLink": "",\n  "installment": {\n    "amount": {},\n    "months": ""\n  },\n  "isBundle": false,\n  "itemGroupId": "",\n  "kind": "",\n  "link": "",\n  "loyaltyPoints": {\n    "name": "",\n    "pointsValue": "",\n    "ratio": ""\n  },\n  "material": "",\n  "maxEnergyEfficiencyClass": "",\n  "maxHandlingTime": "",\n  "minEnergyEfficiencyClass": "",\n  "minHandlingTime": "",\n  "mobileLink": "",\n  "mpn": "",\n  "multipack": "",\n  "offerId": "",\n  "onlineOnly": false,\n  "pattern": "",\n  "price": {},\n  "productType": "",\n  "promotionIds": [],\n  "salePrice": {},\n  "salePriceEffectiveDate": "",\n  "sellOnGoogleQuantity": "",\n  "shipping": [\n    {\n      "country": "",\n      "locationGroupName": "",\n      "locationId": "",\n      "postalCode": "",\n      "price": {},\n      "region": "",\n      "service": ""\n    }\n  ],\n  "shippingHeight": {\n    "unit": "",\n    "value": ""\n  },\n  "shippingLabel": "",\n  "shippingLength": {},\n  "shippingWeight": {\n    "unit": "",\n    "value": ""\n  },\n  "shippingWidth": {},\n  "sizeSystem": "",\n  "sizeType": "",\n  "sizes": [],\n  "source": "",\n  "targetCountry": "",\n  "taxes": [\n    {\n      "country": "",\n      "locationId": "",\n      "postalCode": "",\n      "rate": "",\n      "region": "",\n      "taxShip": false\n    }\n  ],\n  "title": "",\n  "unitPricingBaseMeasure": {\n    "unit": "",\n    "value": ""\n  },\n  "unitPricingMeasure": {\n    "unit": "",\n    "value": ""\n  },\n  "validatedDestinations": [],\n  "warnings": [\n    {\n      "domain": "",\n      "message": "",\n      "reason": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/products")
  .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/:merchantId/products',
  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({
  additionalImageLinks: [],
  additionalProductTypes: [],
  adult: false,
  adwordsGrouping: '',
  adwordsLabels: [],
  adwordsRedirect: '',
  ageGroup: '',
  aspects: [{aspectName: '', destinationName: '', intention: ''}],
  availability: '',
  availabilityDate: '',
  brand: '',
  canonicalLink: '',
  channel: '',
  color: '',
  condition: '',
  contentLanguage: '',
  costOfGoodsSold: {currency: '', value: ''},
  customAttributes: [{name: '', type: '', unit: '', value: ''}],
  customGroups: [{attributes: [{}], name: ''}],
  customLabel0: '',
  customLabel1: '',
  customLabel2: '',
  customLabel3: '',
  customLabel4: '',
  description: '',
  destinations: [{destinationName: '', intention: ''}],
  displayAdsId: '',
  displayAdsLink: '',
  displayAdsSimilarIds: [],
  displayAdsTitle: '',
  displayAdsValue: '',
  energyEfficiencyClass: '',
  expirationDate: '',
  gender: '',
  googleProductCategory: '',
  gtin: '',
  id: '',
  identifierExists: false,
  imageLink: '',
  installment: {amount: {}, months: ''},
  isBundle: false,
  itemGroupId: '',
  kind: '',
  link: '',
  loyaltyPoints: {name: '', pointsValue: '', ratio: ''},
  material: '',
  maxEnergyEfficiencyClass: '',
  maxHandlingTime: '',
  minEnergyEfficiencyClass: '',
  minHandlingTime: '',
  mobileLink: '',
  mpn: '',
  multipack: '',
  offerId: '',
  onlineOnly: false,
  pattern: '',
  price: {},
  productType: '',
  promotionIds: [],
  salePrice: {},
  salePriceEffectiveDate: '',
  sellOnGoogleQuantity: '',
  shipping: [
    {
      country: '',
      locationGroupName: '',
      locationId: '',
      postalCode: '',
      price: {},
      region: '',
      service: ''
    }
  ],
  shippingHeight: {unit: '', value: ''},
  shippingLabel: '',
  shippingLength: {},
  shippingWeight: {unit: '', value: ''},
  shippingWidth: {},
  sizeSystem: '',
  sizeType: '',
  sizes: [],
  source: '',
  targetCountry: '',
  taxes: [
    {
      country: '',
      locationId: '',
      postalCode: '',
      rate: '',
      region: '',
      taxShip: false
    }
  ],
  title: '',
  unitPricingBaseMeasure: {unit: '', value: ''},
  unitPricingMeasure: {unit: '', value: ''},
  validatedDestinations: [],
  warnings: [{domain: '', message: '', reason: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/products',
  headers: {'content-type': 'application/json'},
  body: {
    additionalImageLinks: [],
    additionalProductTypes: [],
    adult: false,
    adwordsGrouping: '',
    adwordsLabels: [],
    adwordsRedirect: '',
    ageGroup: '',
    aspects: [{aspectName: '', destinationName: '', intention: ''}],
    availability: '',
    availabilityDate: '',
    brand: '',
    canonicalLink: '',
    channel: '',
    color: '',
    condition: '',
    contentLanguage: '',
    costOfGoodsSold: {currency: '', value: ''},
    customAttributes: [{name: '', type: '', unit: '', value: ''}],
    customGroups: [{attributes: [{}], name: ''}],
    customLabel0: '',
    customLabel1: '',
    customLabel2: '',
    customLabel3: '',
    customLabel4: '',
    description: '',
    destinations: [{destinationName: '', intention: ''}],
    displayAdsId: '',
    displayAdsLink: '',
    displayAdsSimilarIds: [],
    displayAdsTitle: '',
    displayAdsValue: '',
    energyEfficiencyClass: '',
    expirationDate: '',
    gender: '',
    googleProductCategory: '',
    gtin: '',
    id: '',
    identifierExists: false,
    imageLink: '',
    installment: {amount: {}, months: ''},
    isBundle: false,
    itemGroupId: '',
    kind: '',
    link: '',
    loyaltyPoints: {name: '', pointsValue: '', ratio: ''},
    material: '',
    maxEnergyEfficiencyClass: '',
    maxHandlingTime: '',
    minEnergyEfficiencyClass: '',
    minHandlingTime: '',
    mobileLink: '',
    mpn: '',
    multipack: '',
    offerId: '',
    onlineOnly: false,
    pattern: '',
    price: {},
    productType: '',
    promotionIds: [],
    salePrice: {},
    salePriceEffectiveDate: '',
    sellOnGoogleQuantity: '',
    shipping: [
      {
        country: '',
        locationGroupName: '',
        locationId: '',
        postalCode: '',
        price: {},
        region: '',
        service: ''
      }
    ],
    shippingHeight: {unit: '', value: ''},
    shippingLabel: '',
    shippingLength: {},
    shippingWeight: {unit: '', value: ''},
    shippingWidth: {},
    sizeSystem: '',
    sizeType: '',
    sizes: [],
    source: '',
    targetCountry: '',
    taxes: [
      {
        country: '',
        locationId: '',
        postalCode: '',
        rate: '',
        region: '',
        taxShip: false
      }
    ],
    title: '',
    unitPricingBaseMeasure: {unit: '', value: ''},
    unitPricingMeasure: {unit: '', value: ''},
    validatedDestinations: [],
    warnings: [{domain: '', message: '', reason: ''}]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:merchantId/products');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  additionalImageLinks: [],
  additionalProductTypes: [],
  adult: false,
  adwordsGrouping: '',
  adwordsLabels: [],
  adwordsRedirect: '',
  ageGroup: '',
  aspects: [
    {
      aspectName: '',
      destinationName: '',
      intention: ''
    }
  ],
  availability: '',
  availabilityDate: '',
  brand: '',
  canonicalLink: '',
  channel: '',
  color: '',
  condition: '',
  contentLanguage: '',
  costOfGoodsSold: {
    currency: '',
    value: ''
  },
  customAttributes: [
    {
      name: '',
      type: '',
      unit: '',
      value: ''
    }
  ],
  customGroups: [
    {
      attributes: [
        {}
      ],
      name: ''
    }
  ],
  customLabel0: '',
  customLabel1: '',
  customLabel2: '',
  customLabel3: '',
  customLabel4: '',
  description: '',
  destinations: [
    {
      destinationName: '',
      intention: ''
    }
  ],
  displayAdsId: '',
  displayAdsLink: '',
  displayAdsSimilarIds: [],
  displayAdsTitle: '',
  displayAdsValue: '',
  energyEfficiencyClass: '',
  expirationDate: '',
  gender: '',
  googleProductCategory: '',
  gtin: '',
  id: '',
  identifierExists: false,
  imageLink: '',
  installment: {
    amount: {},
    months: ''
  },
  isBundle: false,
  itemGroupId: '',
  kind: '',
  link: '',
  loyaltyPoints: {
    name: '',
    pointsValue: '',
    ratio: ''
  },
  material: '',
  maxEnergyEfficiencyClass: '',
  maxHandlingTime: '',
  minEnergyEfficiencyClass: '',
  minHandlingTime: '',
  mobileLink: '',
  mpn: '',
  multipack: '',
  offerId: '',
  onlineOnly: false,
  pattern: '',
  price: {},
  productType: '',
  promotionIds: [],
  salePrice: {},
  salePriceEffectiveDate: '',
  sellOnGoogleQuantity: '',
  shipping: [
    {
      country: '',
      locationGroupName: '',
      locationId: '',
      postalCode: '',
      price: {},
      region: '',
      service: ''
    }
  ],
  shippingHeight: {
    unit: '',
    value: ''
  },
  shippingLabel: '',
  shippingLength: {},
  shippingWeight: {
    unit: '',
    value: ''
  },
  shippingWidth: {},
  sizeSystem: '',
  sizeType: '',
  sizes: [],
  source: '',
  targetCountry: '',
  taxes: [
    {
      country: '',
      locationId: '',
      postalCode: '',
      rate: '',
      region: '',
      taxShip: false
    }
  ],
  title: '',
  unitPricingBaseMeasure: {
    unit: '',
    value: ''
  },
  unitPricingMeasure: {
    unit: '',
    value: ''
  },
  validatedDestinations: [],
  warnings: [
    {
      domain: '',
      message: '',
      reason: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:merchantId/products',
  headers: {'content-type': 'application/json'},
  data: {
    additionalImageLinks: [],
    additionalProductTypes: [],
    adult: false,
    adwordsGrouping: '',
    adwordsLabels: [],
    adwordsRedirect: '',
    ageGroup: '',
    aspects: [{aspectName: '', destinationName: '', intention: ''}],
    availability: '',
    availabilityDate: '',
    brand: '',
    canonicalLink: '',
    channel: '',
    color: '',
    condition: '',
    contentLanguage: '',
    costOfGoodsSold: {currency: '', value: ''},
    customAttributes: [{name: '', type: '', unit: '', value: ''}],
    customGroups: [{attributes: [{}], name: ''}],
    customLabel0: '',
    customLabel1: '',
    customLabel2: '',
    customLabel3: '',
    customLabel4: '',
    description: '',
    destinations: [{destinationName: '', intention: ''}],
    displayAdsId: '',
    displayAdsLink: '',
    displayAdsSimilarIds: [],
    displayAdsTitle: '',
    displayAdsValue: '',
    energyEfficiencyClass: '',
    expirationDate: '',
    gender: '',
    googleProductCategory: '',
    gtin: '',
    id: '',
    identifierExists: false,
    imageLink: '',
    installment: {amount: {}, months: ''},
    isBundle: false,
    itemGroupId: '',
    kind: '',
    link: '',
    loyaltyPoints: {name: '', pointsValue: '', ratio: ''},
    material: '',
    maxEnergyEfficiencyClass: '',
    maxHandlingTime: '',
    minEnergyEfficiencyClass: '',
    minHandlingTime: '',
    mobileLink: '',
    mpn: '',
    multipack: '',
    offerId: '',
    onlineOnly: false,
    pattern: '',
    price: {},
    productType: '',
    promotionIds: [],
    salePrice: {},
    salePriceEffectiveDate: '',
    sellOnGoogleQuantity: '',
    shipping: [
      {
        country: '',
        locationGroupName: '',
        locationId: '',
        postalCode: '',
        price: {},
        region: '',
        service: ''
      }
    ],
    shippingHeight: {unit: '', value: ''},
    shippingLabel: '',
    shippingLength: {},
    shippingWeight: {unit: '', value: ''},
    shippingWidth: {},
    sizeSystem: '',
    sizeType: '',
    sizes: [],
    source: '',
    targetCountry: '',
    taxes: [
      {
        country: '',
        locationId: '',
        postalCode: '',
        rate: '',
        region: '',
        taxShip: false
      }
    ],
    title: '',
    unitPricingBaseMeasure: {unit: '', value: ''},
    unitPricingMeasure: {unit: '', value: ''},
    validatedDestinations: [],
    warnings: [{domain: '', message: '', reason: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/products';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalImageLinks":[],"additionalProductTypes":[],"adult":false,"adwordsGrouping":"","adwordsLabels":[],"adwordsRedirect":"","ageGroup":"","aspects":[{"aspectName":"","destinationName":"","intention":""}],"availability":"","availabilityDate":"","brand":"","canonicalLink":"","channel":"","color":"","condition":"","contentLanguage":"","costOfGoodsSold":{"currency":"","value":""},"customAttributes":[{"name":"","type":"","unit":"","value":""}],"customGroups":[{"attributes":[{}],"name":""}],"customLabel0":"","customLabel1":"","customLabel2":"","customLabel3":"","customLabel4":"","description":"","destinations":[{"destinationName":"","intention":""}],"displayAdsId":"","displayAdsLink":"","displayAdsSimilarIds":[],"displayAdsTitle":"","displayAdsValue":"","energyEfficiencyClass":"","expirationDate":"","gender":"","googleProductCategory":"","gtin":"","id":"","identifierExists":false,"imageLink":"","installment":{"amount":{},"months":""},"isBundle":false,"itemGroupId":"","kind":"","link":"","loyaltyPoints":{"name":"","pointsValue":"","ratio":""},"material":"","maxEnergyEfficiencyClass":"","maxHandlingTime":"","minEnergyEfficiencyClass":"","minHandlingTime":"","mobileLink":"","mpn":"","multipack":"","offerId":"","onlineOnly":false,"pattern":"","price":{},"productType":"","promotionIds":[],"salePrice":{},"salePriceEffectiveDate":"","sellOnGoogleQuantity":"","shipping":[{"country":"","locationGroupName":"","locationId":"","postalCode":"","price":{},"region":"","service":""}],"shippingHeight":{"unit":"","value":""},"shippingLabel":"","shippingLength":{},"shippingWeight":{"unit":"","value":""},"shippingWidth":{},"sizeSystem":"","sizeType":"","sizes":[],"source":"","targetCountry":"","taxes":[{"country":"","locationId":"","postalCode":"","rate":"","region":"","taxShip":false}],"title":"","unitPricingBaseMeasure":{"unit":"","value":""},"unitPricingMeasure":{"unit":"","value":""},"validatedDestinations":[],"warnings":[{"domain":"","message":"","reason":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"additionalImageLinks": @[  ],
                              @"additionalProductTypes": @[  ],
                              @"adult": @NO,
                              @"adwordsGrouping": @"",
                              @"adwordsLabels": @[  ],
                              @"adwordsRedirect": @"",
                              @"ageGroup": @"",
                              @"aspects": @[ @{ @"aspectName": @"", @"destinationName": @"", @"intention": @"" } ],
                              @"availability": @"",
                              @"availabilityDate": @"",
                              @"brand": @"",
                              @"canonicalLink": @"",
                              @"channel": @"",
                              @"color": @"",
                              @"condition": @"",
                              @"contentLanguage": @"",
                              @"costOfGoodsSold": @{ @"currency": @"", @"value": @"" },
                              @"customAttributes": @[ @{ @"name": @"", @"type": @"", @"unit": @"", @"value": @"" } ],
                              @"customGroups": @[ @{ @"attributes": @[ @{  } ], @"name": @"" } ],
                              @"customLabel0": @"",
                              @"customLabel1": @"",
                              @"customLabel2": @"",
                              @"customLabel3": @"",
                              @"customLabel4": @"",
                              @"description": @"",
                              @"destinations": @[ @{ @"destinationName": @"", @"intention": @"" } ],
                              @"displayAdsId": @"",
                              @"displayAdsLink": @"",
                              @"displayAdsSimilarIds": @[  ],
                              @"displayAdsTitle": @"",
                              @"displayAdsValue": @"",
                              @"energyEfficiencyClass": @"",
                              @"expirationDate": @"",
                              @"gender": @"",
                              @"googleProductCategory": @"",
                              @"gtin": @"",
                              @"id": @"",
                              @"identifierExists": @NO,
                              @"imageLink": @"",
                              @"installment": @{ @"amount": @{  }, @"months": @"" },
                              @"isBundle": @NO,
                              @"itemGroupId": @"",
                              @"kind": @"",
                              @"link": @"",
                              @"loyaltyPoints": @{ @"name": @"", @"pointsValue": @"", @"ratio": @"" },
                              @"material": @"",
                              @"maxEnergyEfficiencyClass": @"",
                              @"maxHandlingTime": @"",
                              @"minEnergyEfficiencyClass": @"",
                              @"minHandlingTime": @"",
                              @"mobileLink": @"",
                              @"mpn": @"",
                              @"multipack": @"",
                              @"offerId": @"",
                              @"onlineOnly": @NO,
                              @"pattern": @"",
                              @"price": @{  },
                              @"productType": @"",
                              @"promotionIds": @[  ],
                              @"salePrice": @{  },
                              @"salePriceEffectiveDate": @"",
                              @"sellOnGoogleQuantity": @"",
                              @"shipping": @[ @{ @"country": @"", @"locationGroupName": @"", @"locationId": @"", @"postalCode": @"", @"price": @{  }, @"region": @"", @"service": @"" } ],
                              @"shippingHeight": @{ @"unit": @"", @"value": @"" },
                              @"shippingLabel": @"",
                              @"shippingLength": @{  },
                              @"shippingWeight": @{ @"unit": @"", @"value": @"" },
                              @"shippingWidth": @{  },
                              @"sizeSystem": @"",
                              @"sizeType": @"",
                              @"sizes": @[  ],
                              @"source": @"",
                              @"targetCountry": @"",
                              @"taxes": @[ @{ @"country": @"", @"locationId": @"", @"postalCode": @"", @"rate": @"", @"region": @"", @"taxShip": @NO } ],
                              @"title": @"",
                              @"unitPricingBaseMeasure": @{ @"unit": @"", @"value": @"" },
                              @"unitPricingMeasure": @{ @"unit": @"", @"value": @"" },
                              @"validatedDestinations": @[  ],
                              @"warnings": @[ @{ @"domain": @"", @"message": @"", @"reason": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/products"]
                                                       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}}/:merchantId/products" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/products",
  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([
    'additionalImageLinks' => [
        
    ],
    'additionalProductTypes' => [
        
    ],
    'adult' => null,
    'adwordsGrouping' => '',
    'adwordsLabels' => [
        
    ],
    'adwordsRedirect' => '',
    'ageGroup' => '',
    'aspects' => [
        [
                'aspectName' => '',
                'destinationName' => '',
                'intention' => ''
        ]
    ],
    'availability' => '',
    'availabilityDate' => '',
    'brand' => '',
    'canonicalLink' => '',
    'channel' => '',
    'color' => '',
    'condition' => '',
    'contentLanguage' => '',
    'costOfGoodsSold' => [
        'currency' => '',
        'value' => ''
    ],
    'customAttributes' => [
        [
                'name' => '',
                'type' => '',
                'unit' => '',
                'value' => ''
        ]
    ],
    'customGroups' => [
        [
                'attributes' => [
                                [
                                                                
                                ]
                ],
                'name' => ''
        ]
    ],
    'customLabel0' => '',
    'customLabel1' => '',
    'customLabel2' => '',
    'customLabel3' => '',
    'customLabel4' => '',
    'description' => '',
    'destinations' => [
        [
                'destinationName' => '',
                'intention' => ''
        ]
    ],
    'displayAdsId' => '',
    'displayAdsLink' => '',
    'displayAdsSimilarIds' => [
        
    ],
    'displayAdsTitle' => '',
    'displayAdsValue' => '',
    'energyEfficiencyClass' => '',
    'expirationDate' => '',
    'gender' => '',
    'googleProductCategory' => '',
    'gtin' => '',
    'id' => '',
    'identifierExists' => null,
    'imageLink' => '',
    'installment' => [
        'amount' => [
                
        ],
        'months' => ''
    ],
    'isBundle' => null,
    'itemGroupId' => '',
    'kind' => '',
    'link' => '',
    'loyaltyPoints' => [
        'name' => '',
        'pointsValue' => '',
        'ratio' => ''
    ],
    'material' => '',
    'maxEnergyEfficiencyClass' => '',
    'maxHandlingTime' => '',
    'minEnergyEfficiencyClass' => '',
    'minHandlingTime' => '',
    'mobileLink' => '',
    'mpn' => '',
    'multipack' => '',
    'offerId' => '',
    'onlineOnly' => null,
    'pattern' => '',
    'price' => [
        
    ],
    'productType' => '',
    'promotionIds' => [
        
    ],
    'salePrice' => [
        
    ],
    'salePriceEffectiveDate' => '',
    'sellOnGoogleQuantity' => '',
    'shipping' => [
        [
                'country' => '',
                'locationGroupName' => '',
                'locationId' => '',
                'postalCode' => '',
                'price' => [
                                
                ],
                'region' => '',
                'service' => ''
        ]
    ],
    'shippingHeight' => [
        'unit' => '',
        'value' => ''
    ],
    'shippingLabel' => '',
    'shippingLength' => [
        
    ],
    'shippingWeight' => [
        'unit' => '',
        'value' => ''
    ],
    'shippingWidth' => [
        
    ],
    'sizeSystem' => '',
    'sizeType' => '',
    'sizes' => [
        
    ],
    'source' => '',
    'targetCountry' => '',
    'taxes' => [
        [
                'country' => '',
                'locationId' => '',
                'postalCode' => '',
                'rate' => '',
                'region' => '',
                'taxShip' => null
        ]
    ],
    'title' => '',
    'unitPricingBaseMeasure' => [
        'unit' => '',
        'value' => ''
    ],
    'unitPricingMeasure' => [
        'unit' => '',
        'value' => ''
    ],
    'validatedDestinations' => [
        
    ],
    'warnings' => [
        [
                'domain' => '',
                'message' => '',
                'reason' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:merchantId/products', [
  'body' => '{
  "additionalImageLinks": [],
  "additionalProductTypes": [],
  "adult": false,
  "adwordsGrouping": "",
  "adwordsLabels": [],
  "adwordsRedirect": "",
  "ageGroup": "",
  "aspects": [
    {
      "aspectName": "",
      "destinationName": "",
      "intention": ""
    }
  ],
  "availability": "",
  "availabilityDate": "",
  "brand": "",
  "canonicalLink": "",
  "channel": "",
  "color": "",
  "condition": "",
  "contentLanguage": "",
  "costOfGoodsSold": {
    "currency": "",
    "value": ""
  },
  "customAttributes": [
    {
      "name": "",
      "type": "",
      "unit": "",
      "value": ""
    }
  ],
  "customGroups": [
    {
      "attributes": [
        {}
      ],
      "name": ""
    }
  ],
  "customLabel0": "",
  "customLabel1": "",
  "customLabel2": "",
  "customLabel3": "",
  "customLabel4": "",
  "description": "",
  "destinations": [
    {
      "destinationName": "",
      "intention": ""
    }
  ],
  "displayAdsId": "",
  "displayAdsLink": "",
  "displayAdsSimilarIds": [],
  "displayAdsTitle": "",
  "displayAdsValue": "",
  "energyEfficiencyClass": "",
  "expirationDate": "",
  "gender": "",
  "googleProductCategory": "",
  "gtin": "",
  "id": "",
  "identifierExists": false,
  "imageLink": "",
  "installment": {
    "amount": {},
    "months": ""
  },
  "isBundle": false,
  "itemGroupId": "",
  "kind": "",
  "link": "",
  "loyaltyPoints": {
    "name": "",
    "pointsValue": "",
    "ratio": ""
  },
  "material": "",
  "maxEnergyEfficiencyClass": "",
  "maxHandlingTime": "",
  "minEnergyEfficiencyClass": "",
  "minHandlingTime": "",
  "mobileLink": "",
  "mpn": "",
  "multipack": "",
  "offerId": "",
  "onlineOnly": false,
  "pattern": "",
  "price": {},
  "productType": "",
  "promotionIds": [],
  "salePrice": {},
  "salePriceEffectiveDate": "",
  "sellOnGoogleQuantity": "",
  "shipping": [
    {
      "country": "",
      "locationGroupName": "",
      "locationId": "",
      "postalCode": "",
      "price": {},
      "region": "",
      "service": ""
    }
  ],
  "shippingHeight": {
    "unit": "",
    "value": ""
  },
  "shippingLabel": "",
  "shippingLength": {},
  "shippingWeight": {
    "unit": "",
    "value": ""
  },
  "shippingWidth": {},
  "sizeSystem": "",
  "sizeType": "",
  "sizes": [],
  "source": "",
  "targetCountry": "",
  "taxes": [
    {
      "country": "",
      "locationId": "",
      "postalCode": "",
      "rate": "",
      "region": "",
      "taxShip": false
    }
  ],
  "title": "",
  "unitPricingBaseMeasure": {
    "unit": "",
    "value": ""
  },
  "unitPricingMeasure": {
    "unit": "",
    "value": ""
  },
  "validatedDestinations": [],
  "warnings": [
    {
      "domain": "",
      "message": "",
      "reason": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/products');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalImageLinks' => [
    
  ],
  'additionalProductTypes' => [
    
  ],
  'adult' => null,
  'adwordsGrouping' => '',
  'adwordsLabels' => [
    
  ],
  'adwordsRedirect' => '',
  'ageGroup' => '',
  'aspects' => [
    [
        'aspectName' => '',
        'destinationName' => '',
        'intention' => ''
    ]
  ],
  'availability' => '',
  'availabilityDate' => '',
  'brand' => '',
  'canonicalLink' => '',
  'channel' => '',
  'color' => '',
  'condition' => '',
  'contentLanguage' => '',
  'costOfGoodsSold' => [
    'currency' => '',
    'value' => ''
  ],
  'customAttributes' => [
    [
        'name' => '',
        'type' => '',
        'unit' => '',
        'value' => ''
    ]
  ],
  'customGroups' => [
    [
        'attributes' => [
                [
                                
                ]
        ],
        'name' => ''
    ]
  ],
  'customLabel0' => '',
  'customLabel1' => '',
  'customLabel2' => '',
  'customLabel3' => '',
  'customLabel4' => '',
  'description' => '',
  'destinations' => [
    [
        'destinationName' => '',
        'intention' => ''
    ]
  ],
  'displayAdsId' => '',
  'displayAdsLink' => '',
  'displayAdsSimilarIds' => [
    
  ],
  'displayAdsTitle' => '',
  'displayAdsValue' => '',
  'energyEfficiencyClass' => '',
  'expirationDate' => '',
  'gender' => '',
  'googleProductCategory' => '',
  'gtin' => '',
  'id' => '',
  'identifierExists' => null,
  'imageLink' => '',
  'installment' => [
    'amount' => [
        
    ],
    'months' => ''
  ],
  'isBundle' => null,
  'itemGroupId' => '',
  'kind' => '',
  'link' => '',
  'loyaltyPoints' => [
    'name' => '',
    'pointsValue' => '',
    'ratio' => ''
  ],
  'material' => '',
  'maxEnergyEfficiencyClass' => '',
  'maxHandlingTime' => '',
  'minEnergyEfficiencyClass' => '',
  'minHandlingTime' => '',
  'mobileLink' => '',
  'mpn' => '',
  'multipack' => '',
  'offerId' => '',
  'onlineOnly' => null,
  'pattern' => '',
  'price' => [
    
  ],
  'productType' => '',
  'promotionIds' => [
    
  ],
  'salePrice' => [
    
  ],
  'salePriceEffectiveDate' => '',
  'sellOnGoogleQuantity' => '',
  'shipping' => [
    [
        'country' => '',
        'locationGroupName' => '',
        'locationId' => '',
        'postalCode' => '',
        'price' => [
                
        ],
        'region' => '',
        'service' => ''
    ]
  ],
  'shippingHeight' => [
    'unit' => '',
    'value' => ''
  ],
  'shippingLabel' => '',
  'shippingLength' => [
    
  ],
  'shippingWeight' => [
    'unit' => '',
    'value' => ''
  ],
  'shippingWidth' => [
    
  ],
  'sizeSystem' => '',
  'sizeType' => '',
  'sizes' => [
    
  ],
  'source' => '',
  'targetCountry' => '',
  'taxes' => [
    [
        'country' => '',
        'locationId' => '',
        'postalCode' => '',
        'rate' => '',
        'region' => '',
        'taxShip' => null
    ]
  ],
  'title' => '',
  'unitPricingBaseMeasure' => [
    'unit' => '',
    'value' => ''
  ],
  'unitPricingMeasure' => [
    'unit' => '',
    'value' => ''
  ],
  'validatedDestinations' => [
    
  ],
  'warnings' => [
    [
        'domain' => '',
        'message' => '',
        'reason' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalImageLinks' => [
    
  ],
  'additionalProductTypes' => [
    
  ],
  'adult' => null,
  'adwordsGrouping' => '',
  'adwordsLabels' => [
    
  ],
  'adwordsRedirect' => '',
  'ageGroup' => '',
  'aspects' => [
    [
        'aspectName' => '',
        'destinationName' => '',
        'intention' => ''
    ]
  ],
  'availability' => '',
  'availabilityDate' => '',
  'brand' => '',
  'canonicalLink' => '',
  'channel' => '',
  'color' => '',
  'condition' => '',
  'contentLanguage' => '',
  'costOfGoodsSold' => [
    'currency' => '',
    'value' => ''
  ],
  'customAttributes' => [
    [
        'name' => '',
        'type' => '',
        'unit' => '',
        'value' => ''
    ]
  ],
  'customGroups' => [
    [
        'attributes' => [
                [
                                
                ]
        ],
        'name' => ''
    ]
  ],
  'customLabel0' => '',
  'customLabel1' => '',
  'customLabel2' => '',
  'customLabel3' => '',
  'customLabel4' => '',
  'description' => '',
  'destinations' => [
    [
        'destinationName' => '',
        'intention' => ''
    ]
  ],
  'displayAdsId' => '',
  'displayAdsLink' => '',
  'displayAdsSimilarIds' => [
    
  ],
  'displayAdsTitle' => '',
  'displayAdsValue' => '',
  'energyEfficiencyClass' => '',
  'expirationDate' => '',
  'gender' => '',
  'googleProductCategory' => '',
  'gtin' => '',
  'id' => '',
  'identifierExists' => null,
  'imageLink' => '',
  'installment' => [
    'amount' => [
        
    ],
    'months' => ''
  ],
  'isBundle' => null,
  'itemGroupId' => '',
  'kind' => '',
  'link' => '',
  'loyaltyPoints' => [
    'name' => '',
    'pointsValue' => '',
    'ratio' => ''
  ],
  'material' => '',
  'maxEnergyEfficiencyClass' => '',
  'maxHandlingTime' => '',
  'minEnergyEfficiencyClass' => '',
  'minHandlingTime' => '',
  'mobileLink' => '',
  'mpn' => '',
  'multipack' => '',
  'offerId' => '',
  'onlineOnly' => null,
  'pattern' => '',
  'price' => [
    
  ],
  'productType' => '',
  'promotionIds' => [
    
  ],
  'salePrice' => [
    
  ],
  'salePriceEffectiveDate' => '',
  'sellOnGoogleQuantity' => '',
  'shipping' => [
    [
        'country' => '',
        'locationGroupName' => '',
        'locationId' => '',
        'postalCode' => '',
        'price' => [
                
        ],
        'region' => '',
        'service' => ''
    ]
  ],
  'shippingHeight' => [
    'unit' => '',
    'value' => ''
  ],
  'shippingLabel' => '',
  'shippingLength' => [
    
  ],
  'shippingWeight' => [
    'unit' => '',
    'value' => ''
  ],
  'shippingWidth' => [
    
  ],
  'sizeSystem' => '',
  'sizeType' => '',
  'sizes' => [
    
  ],
  'source' => '',
  'targetCountry' => '',
  'taxes' => [
    [
        'country' => '',
        'locationId' => '',
        'postalCode' => '',
        'rate' => '',
        'region' => '',
        'taxShip' => null
    ]
  ],
  'title' => '',
  'unitPricingBaseMeasure' => [
    'unit' => '',
    'value' => ''
  ],
  'unitPricingMeasure' => [
    'unit' => '',
    'value' => ''
  ],
  'validatedDestinations' => [
    
  ],
  'warnings' => [
    [
        'domain' => '',
        'message' => '',
        'reason' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/products');
$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}}/:merchantId/products' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalImageLinks": [],
  "additionalProductTypes": [],
  "adult": false,
  "adwordsGrouping": "",
  "adwordsLabels": [],
  "adwordsRedirect": "",
  "ageGroup": "",
  "aspects": [
    {
      "aspectName": "",
      "destinationName": "",
      "intention": ""
    }
  ],
  "availability": "",
  "availabilityDate": "",
  "brand": "",
  "canonicalLink": "",
  "channel": "",
  "color": "",
  "condition": "",
  "contentLanguage": "",
  "costOfGoodsSold": {
    "currency": "",
    "value": ""
  },
  "customAttributes": [
    {
      "name": "",
      "type": "",
      "unit": "",
      "value": ""
    }
  ],
  "customGroups": [
    {
      "attributes": [
        {}
      ],
      "name": ""
    }
  ],
  "customLabel0": "",
  "customLabel1": "",
  "customLabel2": "",
  "customLabel3": "",
  "customLabel4": "",
  "description": "",
  "destinations": [
    {
      "destinationName": "",
      "intention": ""
    }
  ],
  "displayAdsId": "",
  "displayAdsLink": "",
  "displayAdsSimilarIds": [],
  "displayAdsTitle": "",
  "displayAdsValue": "",
  "energyEfficiencyClass": "",
  "expirationDate": "",
  "gender": "",
  "googleProductCategory": "",
  "gtin": "",
  "id": "",
  "identifierExists": false,
  "imageLink": "",
  "installment": {
    "amount": {},
    "months": ""
  },
  "isBundle": false,
  "itemGroupId": "",
  "kind": "",
  "link": "",
  "loyaltyPoints": {
    "name": "",
    "pointsValue": "",
    "ratio": ""
  },
  "material": "",
  "maxEnergyEfficiencyClass": "",
  "maxHandlingTime": "",
  "minEnergyEfficiencyClass": "",
  "minHandlingTime": "",
  "mobileLink": "",
  "mpn": "",
  "multipack": "",
  "offerId": "",
  "onlineOnly": false,
  "pattern": "",
  "price": {},
  "productType": "",
  "promotionIds": [],
  "salePrice": {},
  "salePriceEffectiveDate": "",
  "sellOnGoogleQuantity": "",
  "shipping": [
    {
      "country": "",
      "locationGroupName": "",
      "locationId": "",
      "postalCode": "",
      "price": {},
      "region": "",
      "service": ""
    }
  ],
  "shippingHeight": {
    "unit": "",
    "value": ""
  },
  "shippingLabel": "",
  "shippingLength": {},
  "shippingWeight": {
    "unit": "",
    "value": ""
  },
  "shippingWidth": {},
  "sizeSystem": "",
  "sizeType": "",
  "sizes": [],
  "source": "",
  "targetCountry": "",
  "taxes": [
    {
      "country": "",
      "locationId": "",
      "postalCode": "",
      "rate": "",
      "region": "",
      "taxShip": false
    }
  ],
  "title": "",
  "unitPricingBaseMeasure": {
    "unit": "",
    "value": ""
  },
  "unitPricingMeasure": {
    "unit": "",
    "value": ""
  },
  "validatedDestinations": [],
  "warnings": [
    {
      "domain": "",
      "message": "",
      "reason": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/products' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalImageLinks": [],
  "additionalProductTypes": [],
  "adult": false,
  "adwordsGrouping": "",
  "adwordsLabels": [],
  "adwordsRedirect": "",
  "ageGroup": "",
  "aspects": [
    {
      "aspectName": "",
      "destinationName": "",
      "intention": ""
    }
  ],
  "availability": "",
  "availabilityDate": "",
  "brand": "",
  "canonicalLink": "",
  "channel": "",
  "color": "",
  "condition": "",
  "contentLanguage": "",
  "costOfGoodsSold": {
    "currency": "",
    "value": ""
  },
  "customAttributes": [
    {
      "name": "",
      "type": "",
      "unit": "",
      "value": ""
    }
  ],
  "customGroups": [
    {
      "attributes": [
        {}
      ],
      "name": ""
    }
  ],
  "customLabel0": "",
  "customLabel1": "",
  "customLabel2": "",
  "customLabel3": "",
  "customLabel4": "",
  "description": "",
  "destinations": [
    {
      "destinationName": "",
      "intention": ""
    }
  ],
  "displayAdsId": "",
  "displayAdsLink": "",
  "displayAdsSimilarIds": [],
  "displayAdsTitle": "",
  "displayAdsValue": "",
  "energyEfficiencyClass": "",
  "expirationDate": "",
  "gender": "",
  "googleProductCategory": "",
  "gtin": "",
  "id": "",
  "identifierExists": false,
  "imageLink": "",
  "installment": {
    "amount": {},
    "months": ""
  },
  "isBundle": false,
  "itemGroupId": "",
  "kind": "",
  "link": "",
  "loyaltyPoints": {
    "name": "",
    "pointsValue": "",
    "ratio": ""
  },
  "material": "",
  "maxEnergyEfficiencyClass": "",
  "maxHandlingTime": "",
  "minEnergyEfficiencyClass": "",
  "minHandlingTime": "",
  "mobileLink": "",
  "mpn": "",
  "multipack": "",
  "offerId": "",
  "onlineOnly": false,
  "pattern": "",
  "price": {},
  "productType": "",
  "promotionIds": [],
  "salePrice": {},
  "salePriceEffectiveDate": "",
  "sellOnGoogleQuantity": "",
  "shipping": [
    {
      "country": "",
      "locationGroupName": "",
      "locationId": "",
      "postalCode": "",
      "price": {},
      "region": "",
      "service": ""
    }
  ],
  "shippingHeight": {
    "unit": "",
    "value": ""
  },
  "shippingLabel": "",
  "shippingLength": {},
  "shippingWeight": {
    "unit": "",
    "value": ""
  },
  "shippingWidth": {},
  "sizeSystem": "",
  "sizeType": "",
  "sizes": [],
  "source": "",
  "targetCountry": "",
  "taxes": [
    {
      "country": "",
      "locationId": "",
      "postalCode": "",
      "rate": "",
      "region": "",
      "taxShip": false
    }
  ],
  "title": "",
  "unitPricingBaseMeasure": {
    "unit": "",
    "value": ""
  },
  "unitPricingMeasure": {
    "unit": "",
    "value": ""
  },
  "validatedDestinations": [],
  "warnings": [
    {
      "domain": "",
      "message": "",
      "reason": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:merchantId/products", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/products"

payload = {
    "additionalImageLinks": [],
    "additionalProductTypes": [],
    "adult": False,
    "adwordsGrouping": "",
    "adwordsLabels": [],
    "adwordsRedirect": "",
    "ageGroup": "",
    "aspects": [
        {
            "aspectName": "",
            "destinationName": "",
            "intention": ""
        }
    ],
    "availability": "",
    "availabilityDate": "",
    "brand": "",
    "canonicalLink": "",
    "channel": "",
    "color": "",
    "condition": "",
    "contentLanguage": "",
    "costOfGoodsSold": {
        "currency": "",
        "value": ""
    },
    "customAttributes": [
        {
            "name": "",
            "type": "",
            "unit": "",
            "value": ""
        }
    ],
    "customGroups": [
        {
            "attributes": [{}],
            "name": ""
        }
    ],
    "customLabel0": "",
    "customLabel1": "",
    "customLabel2": "",
    "customLabel3": "",
    "customLabel4": "",
    "description": "",
    "destinations": [
        {
            "destinationName": "",
            "intention": ""
        }
    ],
    "displayAdsId": "",
    "displayAdsLink": "",
    "displayAdsSimilarIds": [],
    "displayAdsTitle": "",
    "displayAdsValue": "",
    "energyEfficiencyClass": "",
    "expirationDate": "",
    "gender": "",
    "googleProductCategory": "",
    "gtin": "",
    "id": "",
    "identifierExists": False,
    "imageLink": "",
    "installment": {
        "amount": {},
        "months": ""
    },
    "isBundle": False,
    "itemGroupId": "",
    "kind": "",
    "link": "",
    "loyaltyPoints": {
        "name": "",
        "pointsValue": "",
        "ratio": ""
    },
    "material": "",
    "maxEnergyEfficiencyClass": "",
    "maxHandlingTime": "",
    "minEnergyEfficiencyClass": "",
    "minHandlingTime": "",
    "mobileLink": "",
    "mpn": "",
    "multipack": "",
    "offerId": "",
    "onlineOnly": False,
    "pattern": "",
    "price": {},
    "productType": "",
    "promotionIds": [],
    "salePrice": {},
    "salePriceEffectiveDate": "",
    "sellOnGoogleQuantity": "",
    "shipping": [
        {
            "country": "",
            "locationGroupName": "",
            "locationId": "",
            "postalCode": "",
            "price": {},
            "region": "",
            "service": ""
        }
    ],
    "shippingHeight": {
        "unit": "",
        "value": ""
    },
    "shippingLabel": "",
    "shippingLength": {},
    "shippingWeight": {
        "unit": "",
        "value": ""
    },
    "shippingWidth": {},
    "sizeSystem": "",
    "sizeType": "",
    "sizes": [],
    "source": "",
    "targetCountry": "",
    "taxes": [
        {
            "country": "",
            "locationId": "",
            "postalCode": "",
            "rate": "",
            "region": "",
            "taxShip": False
        }
    ],
    "title": "",
    "unitPricingBaseMeasure": {
        "unit": "",
        "value": ""
    },
    "unitPricingMeasure": {
        "unit": "",
        "value": ""
    },
    "validatedDestinations": [],
    "warnings": [
        {
            "domain": "",
            "message": "",
            "reason": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/products"

payload <- "{\n  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/products")

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  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:merchantId/products') do |req|
  req.body = "{\n  \"additionalImageLinks\": [],\n  \"additionalProductTypes\": [],\n  \"adult\": false,\n  \"adwordsGrouping\": \"\",\n  \"adwordsLabels\": [],\n  \"adwordsRedirect\": \"\",\n  \"ageGroup\": \"\",\n  \"aspects\": [\n    {\n      \"aspectName\": \"\",\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"availability\": \"\",\n  \"availabilityDate\": \"\",\n  \"brand\": \"\",\n  \"canonicalLink\": \"\",\n  \"channel\": \"\",\n  \"color\": \"\",\n  \"condition\": \"\",\n  \"contentLanguage\": \"\",\n  \"costOfGoodsSold\": {\n    \"currency\": \"\",\n    \"value\": \"\"\n  },\n  \"customAttributes\": [\n    {\n      \"name\": \"\",\n      \"type\": \"\",\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"customGroups\": [\n    {\n      \"attributes\": [\n        {}\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"customLabel0\": \"\",\n  \"customLabel1\": \"\",\n  \"customLabel2\": \"\",\n  \"customLabel3\": \"\",\n  \"customLabel4\": \"\",\n  \"description\": \"\",\n  \"destinations\": [\n    {\n      \"destinationName\": \"\",\n      \"intention\": \"\"\n    }\n  ],\n  \"displayAdsId\": \"\",\n  \"displayAdsLink\": \"\",\n  \"displayAdsSimilarIds\": [],\n  \"displayAdsTitle\": \"\",\n  \"displayAdsValue\": \"\",\n  \"energyEfficiencyClass\": \"\",\n  \"expirationDate\": \"\",\n  \"gender\": \"\",\n  \"googleProductCategory\": \"\",\n  \"gtin\": \"\",\n  \"id\": \"\",\n  \"identifierExists\": false,\n  \"imageLink\": \"\",\n  \"installment\": {\n    \"amount\": {},\n    \"months\": \"\"\n  },\n  \"isBundle\": false,\n  \"itemGroupId\": \"\",\n  \"kind\": \"\",\n  \"link\": \"\",\n  \"loyaltyPoints\": {\n    \"name\": \"\",\n    \"pointsValue\": \"\",\n    \"ratio\": \"\"\n  },\n  \"material\": \"\",\n  \"maxEnergyEfficiencyClass\": \"\",\n  \"maxHandlingTime\": \"\",\n  \"minEnergyEfficiencyClass\": \"\",\n  \"minHandlingTime\": \"\",\n  \"mobileLink\": \"\",\n  \"mpn\": \"\",\n  \"multipack\": \"\",\n  \"offerId\": \"\",\n  \"onlineOnly\": false,\n  \"pattern\": \"\",\n  \"price\": {},\n  \"productType\": \"\",\n  \"promotionIds\": [],\n  \"salePrice\": {},\n  \"salePriceEffectiveDate\": \"\",\n  \"sellOnGoogleQuantity\": \"\",\n  \"shipping\": [\n    {\n      \"country\": \"\",\n      \"locationGroupName\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"price\": {},\n      \"region\": \"\",\n      \"service\": \"\"\n    }\n  ],\n  \"shippingHeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingLabel\": \"\",\n  \"shippingLength\": {},\n  \"shippingWeight\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"shippingWidth\": {},\n  \"sizeSystem\": \"\",\n  \"sizeType\": \"\",\n  \"sizes\": [],\n  \"source\": \"\",\n  \"targetCountry\": \"\",\n  \"taxes\": [\n    {\n      \"country\": \"\",\n      \"locationId\": \"\",\n      \"postalCode\": \"\",\n      \"rate\": \"\",\n      \"region\": \"\",\n      \"taxShip\": false\n    }\n  ],\n  \"title\": \"\",\n  \"unitPricingBaseMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"unitPricingMeasure\": {\n    \"unit\": \"\",\n    \"value\": \"\"\n  },\n  \"validatedDestinations\": [],\n  \"warnings\": [\n    {\n      \"domain\": \"\",\n      \"message\": \"\",\n      \"reason\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/products";

    let payload = json!({
        "additionalImageLinks": (),
        "additionalProductTypes": (),
        "adult": false,
        "adwordsGrouping": "",
        "adwordsLabels": (),
        "adwordsRedirect": "",
        "ageGroup": "",
        "aspects": (
            json!({
                "aspectName": "",
                "destinationName": "",
                "intention": ""
            })
        ),
        "availability": "",
        "availabilityDate": "",
        "brand": "",
        "canonicalLink": "",
        "channel": "",
        "color": "",
        "condition": "",
        "contentLanguage": "",
        "costOfGoodsSold": json!({
            "currency": "",
            "value": ""
        }),
        "customAttributes": (
            json!({
                "name": "",
                "type": "",
                "unit": "",
                "value": ""
            })
        ),
        "customGroups": (
            json!({
                "attributes": (json!({})),
                "name": ""
            })
        ),
        "customLabel0": "",
        "customLabel1": "",
        "customLabel2": "",
        "customLabel3": "",
        "customLabel4": "",
        "description": "",
        "destinations": (
            json!({
                "destinationName": "",
                "intention": ""
            })
        ),
        "displayAdsId": "",
        "displayAdsLink": "",
        "displayAdsSimilarIds": (),
        "displayAdsTitle": "",
        "displayAdsValue": "",
        "energyEfficiencyClass": "",
        "expirationDate": "",
        "gender": "",
        "googleProductCategory": "",
        "gtin": "",
        "id": "",
        "identifierExists": false,
        "imageLink": "",
        "installment": json!({
            "amount": json!({}),
            "months": ""
        }),
        "isBundle": false,
        "itemGroupId": "",
        "kind": "",
        "link": "",
        "loyaltyPoints": json!({
            "name": "",
            "pointsValue": "",
            "ratio": ""
        }),
        "material": "",
        "maxEnergyEfficiencyClass": "",
        "maxHandlingTime": "",
        "minEnergyEfficiencyClass": "",
        "minHandlingTime": "",
        "mobileLink": "",
        "mpn": "",
        "multipack": "",
        "offerId": "",
        "onlineOnly": false,
        "pattern": "",
        "price": json!({}),
        "productType": "",
        "promotionIds": (),
        "salePrice": json!({}),
        "salePriceEffectiveDate": "",
        "sellOnGoogleQuantity": "",
        "shipping": (
            json!({
                "country": "",
                "locationGroupName": "",
                "locationId": "",
                "postalCode": "",
                "price": json!({}),
                "region": "",
                "service": ""
            })
        ),
        "shippingHeight": json!({
            "unit": "",
            "value": ""
        }),
        "shippingLabel": "",
        "shippingLength": json!({}),
        "shippingWeight": json!({
            "unit": "",
            "value": ""
        }),
        "shippingWidth": json!({}),
        "sizeSystem": "",
        "sizeType": "",
        "sizes": (),
        "source": "",
        "targetCountry": "",
        "taxes": (
            json!({
                "country": "",
                "locationId": "",
                "postalCode": "",
                "rate": "",
                "region": "",
                "taxShip": false
            })
        ),
        "title": "",
        "unitPricingBaseMeasure": json!({
            "unit": "",
            "value": ""
        }),
        "unitPricingMeasure": json!({
            "unit": "",
            "value": ""
        }),
        "validatedDestinations": (),
        "warnings": (
            json!({
                "domain": "",
                "message": "",
                "reason": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:merchantId/products \
  --header 'content-type: application/json' \
  --data '{
  "additionalImageLinks": [],
  "additionalProductTypes": [],
  "adult": false,
  "adwordsGrouping": "",
  "adwordsLabels": [],
  "adwordsRedirect": "",
  "ageGroup": "",
  "aspects": [
    {
      "aspectName": "",
      "destinationName": "",
      "intention": ""
    }
  ],
  "availability": "",
  "availabilityDate": "",
  "brand": "",
  "canonicalLink": "",
  "channel": "",
  "color": "",
  "condition": "",
  "contentLanguage": "",
  "costOfGoodsSold": {
    "currency": "",
    "value": ""
  },
  "customAttributes": [
    {
      "name": "",
      "type": "",
      "unit": "",
      "value": ""
    }
  ],
  "customGroups": [
    {
      "attributes": [
        {}
      ],
      "name": ""
    }
  ],
  "customLabel0": "",
  "customLabel1": "",
  "customLabel2": "",
  "customLabel3": "",
  "customLabel4": "",
  "description": "",
  "destinations": [
    {
      "destinationName": "",
      "intention": ""
    }
  ],
  "displayAdsId": "",
  "displayAdsLink": "",
  "displayAdsSimilarIds": [],
  "displayAdsTitle": "",
  "displayAdsValue": "",
  "energyEfficiencyClass": "",
  "expirationDate": "",
  "gender": "",
  "googleProductCategory": "",
  "gtin": "",
  "id": "",
  "identifierExists": false,
  "imageLink": "",
  "installment": {
    "amount": {},
    "months": ""
  },
  "isBundle": false,
  "itemGroupId": "",
  "kind": "",
  "link": "",
  "loyaltyPoints": {
    "name": "",
    "pointsValue": "",
    "ratio": ""
  },
  "material": "",
  "maxEnergyEfficiencyClass": "",
  "maxHandlingTime": "",
  "minEnergyEfficiencyClass": "",
  "minHandlingTime": "",
  "mobileLink": "",
  "mpn": "",
  "multipack": "",
  "offerId": "",
  "onlineOnly": false,
  "pattern": "",
  "price": {},
  "productType": "",
  "promotionIds": [],
  "salePrice": {},
  "salePriceEffectiveDate": "",
  "sellOnGoogleQuantity": "",
  "shipping": [
    {
      "country": "",
      "locationGroupName": "",
      "locationId": "",
      "postalCode": "",
      "price": {},
      "region": "",
      "service": ""
    }
  ],
  "shippingHeight": {
    "unit": "",
    "value": ""
  },
  "shippingLabel": "",
  "shippingLength": {},
  "shippingWeight": {
    "unit": "",
    "value": ""
  },
  "shippingWidth": {},
  "sizeSystem": "",
  "sizeType": "",
  "sizes": [],
  "source": "",
  "targetCountry": "",
  "taxes": [
    {
      "country": "",
      "locationId": "",
      "postalCode": "",
      "rate": "",
      "region": "",
      "taxShip": false
    }
  ],
  "title": "",
  "unitPricingBaseMeasure": {
    "unit": "",
    "value": ""
  },
  "unitPricingMeasure": {
    "unit": "",
    "value": ""
  },
  "validatedDestinations": [],
  "warnings": [
    {
      "domain": "",
      "message": "",
      "reason": ""
    }
  ]
}'
echo '{
  "additionalImageLinks": [],
  "additionalProductTypes": [],
  "adult": false,
  "adwordsGrouping": "",
  "adwordsLabels": [],
  "adwordsRedirect": "",
  "ageGroup": "",
  "aspects": [
    {
      "aspectName": "",
      "destinationName": "",
      "intention": ""
    }
  ],
  "availability": "",
  "availabilityDate": "",
  "brand": "",
  "canonicalLink": "",
  "channel": "",
  "color": "",
  "condition": "",
  "contentLanguage": "",
  "costOfGoodsSold": {
    "currency": "",
    "value": ""
  },
  "customAttributes": [
    {
      "name": "",
      "type": "",
      "unit": "",
      "value": ""
    }
  ],
  "customGroups": [
    {
      "attributes": [
        {}
      ],
      "name": ""
    }
  ],
  "customLabel0": "",
  "customLabel1": "",
  "customLabel2": "",
  "customLabel3": "",
  "customLabel4": "",
  "description": "",
  "destinations": [
    {
      "destinationName": "",
      "intention": ""
    }
  ],
  "displayAdsId": "",
  "displayAdsLink": "",
  "displayAdsSimilarIds": [],
  "displayAdsTitle": "",
  "displayAdsValue": "",
  "energyEfficiencyClass": "",
  "expirationDate": "",
  "gender": "",
  "googleProductCategory": "",
  "gtin": "",
  "id": "",
  "identifierExists": false,
  "imageLink": "",
  "installment": {
    "amount": {},
    "months": ""
  },
  "isBundle": false,
  "itemGroupId": "",
  "kind": "",
  "link": "",
  "loyaltyPoints": {
    "name": "",
    "pointsValue": "",
    "ratio": ""
  },
  "material": "",
  "maxEnergyEfficiencyClass": "",
  "maxHandlingTime": "",
  "minEnergyEfficiencyClass": "",
  "minHandlingTime": "",
  "mobileLink": "",
  "mpn": "",
  "multipack": "",
  "offerId": "",
  "onlineOnly": false,
  "pattern": "",
  "price": {},
  "productType": "",
  "promotionIds": [],
  "salePrice": {},
  "salePriceEffectiveDate": "",
  "sellOnGoogleQuantity": "",
  "shipping": [
    {
      "country": "",
      "locationGroupName": "",
      "locationId": "",
      "postalCode": "",
      "price": {},
      "region": "",
      "service": ""
    }
  ],
  "shippingHeight": {
    "unit": "",
    "value": ""
  },
  "shippingLabel": "",
  "shippingLength": {},
  "shippingWeight": {
    "unit": "",
    "value": ""
  },
  "shippingWidth": {},
  "sizeSystem": "",
  "sizeType": "",
  "sizes": [],
  "source": "",
  "targetCountry": "",
  "taxes": [
    {
      "country": "",
      "locationId": "",
      "postalCode": "",
      "rate": "",
      "region": "",
      "taxShip": false
    }
  ],
  "title": "",
  "unitPricingBaseMeasure": {
    "unit": "",
    "value": ""
  },
  "unitPricingMeasure": {
    "unit": "",
    "value": ""
  },
  "validatedDestinations": [],
  "warnings": [
    {
      "domain": "",
      "message": "",
      "reason": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/:merchantId/products \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalImageLinks": [],\n  "additionalProductTypes": [],\n  "adult": false,\n  "adwordsGrouping": "",\n  "adwordsLabels": [],\n  "adwordsRedirect": "",\n  "ageGroup": "",\n  "aspects": [\n    {\n      "aspectName": "",\n      "destinationName": "",\n      "intention": ""\n    }\n  ],\n  "availability": "",\n  "availabilityDate": "",\n  "brand": "",\n  "canonicalLink": "",\n  "channel": "",\n  "color": "",\n  "condition": "",\n  "contentLanguage": "",\n  "costOfGoodsSold": {\n    "currency": "",\n    "value": ""\n  },\n  "customAttributes": [\n    {\n      "name": "",\n      "type": "",\n      "unit": "",\n      "value": ""\n    }\n  ],\n  "customGroups": [\n    {\n      "attributes": [\n        {}\n      ],\n      "name": ""\n    }\n  ],\n  "customLabel0": "",\n  "customLabel1": "",\n  "customLabel2": "",\n  "customLabel3": "",\n  "customLabel4": "",\n  "description": "",\n  "destinations": [\n    {\n      "destinationName": "",\n      "intention": ""\n    }\n  ],\n  "displayAdsId": "",\n  "displayAdsLink": "",\n  "displayAdsSimilarIds": [],\n  "displayAdsTitle": "",\n  "displayAdsValue": "",\n  "energyEfficiencyClass": "",\n  "expirationDate": "",\n  "gender": "",\n  "googleProductCategory": "",\n  "gtin": "",\n  "id": "",\n  "identifierExists": false,\n  "imageLink": "",\n  "installment": {\n    "amount": {},\n    "months": ""\n  },\n  "isBundle": false,\n  "itemGroupId": "",\n  "kind": "",\n  "link": "",\n  "loyaltyPoints": {\n    "name": "",\n    "pointsValue": "",\n    "ratio": ""\n  },\n  "material": "",\n  "maxEnergyEfficiencyClass": "",\n  "maxHandlingTime": "",\n  "minEnergyEfficiencyClass": "",\n  "minHandlingTime": "",\n  "mobileLink": "",\n  "mpn": "",\n  "multipack": "",\n  "offerId": "",\n  "onlineOnly": false,\n  "pattern": "",\n  "price": {},\n  "productType": "",\n  "promotionIds": [],\n  "salePrice": {},\n  "salePriceEffectiveDate": "",\n  "sellOnGoogleQuantity": "",\n  "shipping": [\n    {\n      "country": "",\n      "locationGroupName": "",\n      "locationId": "",\n      "postalCode": "",\n      "price": {},\n      "region": "",\n      "service": ""\n    }\n  ],\n  "shippingHeight": {\n    "unit": "",\n    "value": ""\n  },\n  "shippingLabel": "",\n  "shippingLength": {},\n  "shippingWeight": {\n    "unit": "",\n    "value": ""\n  },\n  "shippingWidth": {},\n  "sizeSystem": "",\n  "sizeType": "",\n  "sizes": [],\n  "source": "",\n  "targetCountry": "",\n  "taxes": [\n    {\n      "country": "",\n      "locationId": "",\n      "postalCode": "",\n      "rate": "",\n      "region": "",\n      "taxShip": false\n    }\n  ],\n  "title": "",\n  "unitPricingBaseMeasure": {\n    "unit": "",\n    "value": ""\n  },\n  "unitPricingMeasure": {\n    "unit": "",\n    "value": ""\n  },\n  "validatedDestinations": [],\n  "warnings": [\n    {\n      "domain": "",\n      "message": "",\n      "reason": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/products
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalImageLinks": [],
  "additionalProductTypes": [],
  "adult": false,
  "adwordsGrouping": "",
  "adwordsLabels": [],
  "adwordsRedirect": "",
  "ageGroup": "",
  "aspects": [
    [
      "aspectName": "",
      "destinationName": "",
      "intention": ""
    ]
  ],
  "availability": "",
  "availabilityDate": "",
  "brand": "",
  "canonicalLink": "",
  "channel": "",
  "color": "",
  "condition": "",
  "contentLanguage": "",
  "costOfGoodsSold": [
    "currency": "",
    "value": ""
  ],
  "customAttributes": [
    [
      "name": "",
      "type": "",
      "unit": "",
      "value": ""
    ]
  ],
  "customGroups": [
    [
      "attributes": [[]],
      "name": ""
    ]
  ],
  "customLabel0": "",
  "customLabel1": "",
  "customLabel2": "",
  "customLabel3": "",
  "customLabel4": "",
  "description": "",
  "destinations": [
    [
      "destinationName": "",
      "intention": ""
    ]
  ],
  "displayAdsId": "",
  "displayAdsLink": "",
  "displayAdsSimilarIds": [],
  "displayAdsTitle": "",
  "displayAdsValue": "",
  "energyEfficiencyClass": "",
  "expirationDate": "",
  "gender": "",
  "googleProductCategory": "",
  "gtin": "",
  "id": "",
  "identifierExists": false,
  "imageLink": "",
  "installment": [
    "amount": [],
    "months": ""
  ],
  "isBundle": false,
  "itemGroupId": "",
  "kind": "",
  "link": "",
  "loyaltyPoints": [
    "name": "",
    "pointsValue": "",
    "ratio": ""
  ],
  "material": "",
  "maxEnergyEfficiencyClass": "",
  "maxHandlingTime": "",
  "minEnergyEfficiencyClass": "",
  "minHandlingTime": "",
  "mobileLink": "",
  "mpn": "",
  "multipack": "",
  "offerId": "",
  "onlineOnly": false,
  "pattern": "",
  "price": [],
  "productType": "",
  "promotionIds": [],
  "salePrice": [],
  "salePriceEffectiveDate": "",
  "sellOnGoogleQuantity": "",
  "shipping": [
    [
      "country": "",
      "locationGroupName": "",
      "locationId": "",
      "postalCode": "",
      "price": [],
      "region": "",
      "service": ""
    ]
  ],
  "shippingHeight": [
    "unit": "",
    "value": ""
  ],
  "shippingLabel": "",
  "shippingLength": [],
  "shippingWeight": [
    "unit": "",
    "value": ""
  ],
  "shippingWidth": [],
  "sizeSystem": "",
  "sizeType": "",
  "sizes": [],
  "source": "",
  "targetCountry": "",
  "taxes": [
    [
      "country": "",
      "locationId": "",
      "postalCode": "",
      "rate": "",
      "region": "",
      "taxShip": false
    ]
  ],
  "title": "",
  "unitPricingBaseMeasure": [
    "unit": "",
    "value": ""
  ],
  "unitPricingMeasure": [
    "unit": "",
    "value": ""
  ],
  "validatedDestinations": [],
  "warnings": [
    [
      "domain": "",
      "message": "",
      "reason": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/products")! 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()
GET content.products.list
{{baseUrl}}/:merchantId/products
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/products");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/products")
require "http/client"

url = "{{baseUrl}}/:merchantId/products"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/products"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/products");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/products"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/products HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/products")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/products"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/products")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/products")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/products');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/products'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/products';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/products',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/products")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/products',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/products'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/products');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/products'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/products';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/products"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/products" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/products",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/products');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/products');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/products');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/products' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/products' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/products")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/products"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/products"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/products")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/products') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/products";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/products
http GET {{baseUrl}}/:merchantId/products
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/products
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/products")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.productstatuses.custombatch
{{baseUrl}}/productstatuses/batch
BODY json

{
  "entries": [
    {
      "batchId": 0,
      "destinations": [],
      "includeAttributes": false,
      "merchantId": "",
      "method": "",
      "productId": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/productstatuses/batch");

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  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/productstatuses/batch" {:content-type :json
                                                                  :form-params {:entries [{:batchId 0
                                                                                           :destinations []
                                                                                           :includeAttributes false
                                                                                           :merchantId ""
                                                                                           :method ""
                                                                                           :productId ""}]}})
require "http/client"

url = "{{baseUrl}}/productstatuses/batch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/productstatuses/batch"),
    Content = new StringContent("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/productstatuses/batch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/productstatuses/batch"

	payload := strings.NewReader("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/productstatuses/batch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 180

{
  "entries": [
    {
      "batchId": 0,
      "destinations": [],
      "includeAttributes": false,
      "merchantId": "",
      "method": "",
      "productId": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/productstatuses/batch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/productstatuses/batch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/productstatuses/batch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/productstatuses/batch")
  .header("content-type", "application/json")
  .body("{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  entries: [
    {
      batchId: 0,
      destinations: [],
      includeAttributes: false,
      merchantId: '',
      method: '',
      productId: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/productstatuses/batch');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/productstatuses/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        batchId: 0,
        destinations: [],
        includeAttributes: false,
        merchantId: '',
        method: '',
        productId: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/productstatuses/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"batchId":0,"destinations":[],"includeAttributes":false,"merchantId":"","method":"","productId":""}]}'
};

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}}/productstatuses/batch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entries": [\n    {\n      "batchId": 0,\n      "destinations": [],\n      "includeAttributes": false,\n      "merchantId": "",\n      "method": "",\n      "productId": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/productstatuses/batch")
  .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/productstatuses/batch',
  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({
  entries: [
    {
      batchId: 0,
      destinations: [],
      includeAttributes: false,
      merchantId: '',
      method: '',
      productId: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/productstatuses/batch',
  headers: {'content-type': 'application/json'},
  body: {
    entries: [
      {
        batchId: 0,
        destinations: [],
        includeAttributes: false,
        merchantId: '',
        method: '',
        productId: ''
      }
    ]
  },
  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}}/productstatuses/batch');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  entries: [
    {
      batchId: 0,
      destinations: [],
      includeAttributes: false,
      merchantId: '',
      method: '',
      productId: ''
    }
  ]
});

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}}/productstatuses/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        batchId: 0,
        destinations: [],
        includeAttributes: false,
        merchantId: '',
        method: '',
        productId: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/productstatuses/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"batchId":0,"destinations":[],"includeAttributes":false,"merchantId":"","method":"","productId":""}]}'
};

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 = @{ @"entries": @[ @{ @"batchId": @0, @"destinations": @[  ], @"includeAttributes": @NO, @"merchantId": @"", @"method": @"", @"productId": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/productstatuses/batch"]
                                                       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}}/productstatuses/batch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/productstatuses/batch",
  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([
    'entries' => [
        [
                'batchId' => 0,
                'destinations' => [
                                
                ],
                'includeAttributes' => null,
                'merchantId' => '',
                'method' => '',
                'productId' => ''
        ]
    ]
  ]),
  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}}/productstatuses/batch', [
  'body' => '{
  "entries": [
    {
      "batchId": 0,
      "destinations": [],
      "includeAttributes": false,
      "merchantId": "",
      "method": "",
      "productId": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/productstatuses/batch');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entries' => [
    [
        'batchId' => 0,
        'destinations' => [
                
        ],
        'includeAttributes' => null,
        'merchantId' => '',
        'method' => '',
        'productId' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'entries' => [
    [
        'batchId' => 0,
        'destinations' => [
                
        ],
        'includeAttributes' => null,
        'merchantId' => '',
        'method' => '',
        'productId' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/productstatuses/batch');
$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}}/productstatuses/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "batchId": 0,
      "destinations": [],
      "includeAttributes": false,
      "merchantId": "",
      "method": "",
      "productId": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/productstatuses/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "batchId": 0,
      "destinations": [],
      "includeAttributes": false,
      "merchantId": "",
      "method": "",
      "productId": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/productstatuses/batch", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/productstatuses/batch"

payload = { "entries": [
        {
            "batchId": 0,
            "destinations": [],
            "includeAttributes": False,
            "merchantId": "",
            "method": "",
            "productId": ""
        }
    ] }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/productstatuses/batch"

payload <- "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/productstatuses/batch")

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  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/productstatuses/batch') do |req|
  req.body = "{\n  \"entries\": [\n    {\n      \"batchId\": 0,\n      \"destinations\": [],\n      \"includeAttributes\": false,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"productId\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/productstatuses/batch";

    let payload = json!({"entries": (
            json!({
                "batchId": 0,
                "destinations": (),
                "includeAttributes": false,
                "merchantId": "",
                "method": "",
                "productId": ""
            })
        )});

    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}}/productstatuses/batch \
  --header 'content-type: application/json' \
  --data '{
  "entries": [
    {
      "batchId": 0,
      "destinations": [],
      "includeAttributes": false,
      "merchantId": "",
      "method": "",
      "productId": ""
    }
  ]
}'
echo '{
  "entries": [
    {
      "batchId": 0,
      "destinations": [],
      "includeAttributes": false,
      "merchantId": "",
      "method": "",
      "productId": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/productstatuses/batch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entries": [\n    {\n      "batchId": 0,\n      "destinations": [],\n      "includeAttributes": false,\n      "merchantId": "",\n      "method": "",\n      "productId": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/productstatuses/batch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["entries": [
    [
      "batchId": 0,
      "destinations": [],
      "includeAttributes": false,
      "merchantId": "",
      "method": "",
      "productId": ""
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/productstatuses/batch")! 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()
GET content.productstatuses.get
{{baseUrl}}/:merchantId/productstatuses/:productId
QUERY PARAMS

merchantId
productId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/productstatuses/:productId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/productstatuses/:productId")
require "http/client"

url = "{{baseUrl}}/:merchantId/productstatuses/:productId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/productstatuses/:productId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/productstatuses/:productId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/productstatuses/:productId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/productstatuses/:productId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/productstatuses/:productId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/productstatuses/:productId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/productstatuses/:productId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/productstatuses/:productId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/productstatuses/:productId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/productstatuses/:productId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/productstatuses/:productId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/productstatuses/:productId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/productstatuses/:productId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/productstatuses/:productId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/productstatuses/:productId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/productstatuses/:productId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/productstatuses/:productId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/productstatuses/:productId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/productstatuses/:productId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/productstatuses/:productId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/productstatuses/:productId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/productstatuses/:productId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/productstatuses/:productId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/productstatuses/:productId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/productstatuses/:productId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/productstatuses/:productId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/productstatuses/:productId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/productstatuses/:productId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/productstatuses/:productId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/productstatuses/:productId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/productstatuses/:productId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/productstatuses/:productId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/productstatuses/:productId
http GET {{baseUrl}}/:merchantId/productstatuses/:productId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/productstatuses/:productId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/productstatuses/:productId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.productstatuses.list
{{baseUrl}}/:merchantId/productstatuses
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/productstatuses");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/productstatuses")
require "http/client"

url = "{{baseUrl}}/:merchantId/productstatuses"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/productstatuses"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/productstatuses");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/productstatuses"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/productstatuses HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/productstatuses")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/productstatuses"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/productstatuses")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/productstatuses")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/productstatuses');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/productstatuses'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/productstatuses';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/productstatuses',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/productstatuses")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/productstatuses',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/productstatuses'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/productstatuses');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/productstatuses'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/productstatuses';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/productstatuses"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/productstatuses" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/productstatuses",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/productstatuses');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/productstatuses');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/productstatuses');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/productstatuses' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/productstatuses' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/productstatuses")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/productstatuses"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/productstatuses"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/productstatuses")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/productstatuses') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/productstatuses";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/productstatuses
http GET {{baseUrl}}/:merchantId/productstatuses
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/productstatuses
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/productstatuses")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST content.shippingsettings.custombatch
{{baseUrl}}/shippingsettings/batch
BODY json

{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "shippingSettings": {
        "accountId": "",
        "postalCodeGroups": [
          {
            "country": "",
            "name": "",
            "postalCodeRanges": [
              {
                "postalCodeRangeBegin": "",
                "postalCodeRangeEnd": ""
              }
            ]
          }
        ],
        "services": [
          {
            "active": false,
            "currency": "",
            "deliveryCountry": "",
            "deliveryTime": {
              "cutoffTime": {
                "hour": 0,
                "minute": 0,
                "timezone": ""
              },
              "handlingBusinessDayConfig": {
                "businessDays": []
              },
              "holidayCutoffs": [
                {
                  "deadlineDate": "",
                  "deadlineHour": 0,
                  "deadlineTimezone": "",
                  "holidayId": "",
                  "visibleFromDate": ""
                }
              ],
              "maxHandlingTimeInDays": 0,
              "maxTransitTimeInDays": 0,
              "minHandlingTimeInDays": 0,
              "minTransitTimeInDays": 0,
              "transitBusinessDayConfig": {},
              "transitTimeTable": {
                "postalCodeGroupNames": [],
                "rows": [
                  {
                    "values": [
                      {
                        "maxTransitTimeInDays": 0,
                        "minTransitTimeInDays": 0
                      }
                    ]
                  }
                ],
                "transitTimeLabels": []
              },
              "warehouseBasedDeliveryTimes": [
                {
                  "carrier": "",
                  "carrierService": "",
                  "originAdministrativeArea": "",
                  "originCity": "",
                  "originCountry": "",
                  "originPostalCode": "",
                  "originStreetAddress": "",
                  "warehouseName": ""
                }
              ]
            },
            "eligibility": "",
            "minimumOrderValue": {
              "currency": "",
              "value": ""
            },
            "minimumOrderValueTable": {
              "storeCodeSetWithMovs": [
                {
                  "storeCodes": [],
                  "value": {}
                }
              ]
            },
            "name": "",
            "pickupService": {
              "carrierName": "",
              "serviceName": ""
            },
            "rateGroups": [
              {
                "applicableShippingLabels": [],
                "carrierRates": [
                  {
                    "carrierName": "",
                    "carrierService": "",
                    "flatAdjustment": {},
                    "name": "",
                    "originPostalCode": "",
                    "percentageAdjustment": ""
                  }
                ],
                "mainTable": {
                  "columnHeaders": {
                    "locations": [
                      {
                        "locationIds": []
                      }
                    ],
                    "numberOfItems": [],
                    "postalCodeGroupNames": [],
                    "prices": [
                      {}
                    ],
                    "weights": [
                      {
                        "unit": "",
                        "value": ""
                      }
                    ]
                  },
                  "name": "",
                  "rowHeaders": {},
                  "rows": [
                    {
                      "cells": [
                        {
                          "carrierRateName": "",
                          "flatRate": {},
                          "noShipping": false,
                          "pricePercentage": "",
                          "subtableName": ""
                        }
                      ]
                    }
                  ]
                },
                "name": "",
                "singleValue": {},
                "subtables": [
                  {}
                ]
              }
            ],
            "shipmentType": ""
          }
        ],
        "warehouses": [
          {
            "businessDayConfig": {},
            "cutoffTime": {
              "hour": 0,
              "minute": 0
            },
            "handlingDays": "",
            "name": "",
            "shippingAddress": {
              "administrativeArea": "",
              "city": "",
              "country": "",
              "postalCode": "",
              "streetAddress": ""
            }
          }
        ]
      }
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/shippingsettings/batch");

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  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/shippingsettings/batch" {:content-type :json
                                                                   :form-params {:entries [{:accountId ""
                                                                                            :batchId 0
                                                                                            :merchantId ""
                                                                                            :method ""
                                                                                            :shippingSettings {:accountId ""
                                                                                                               :postalCodeGroups [{:country ""
                                                                                                                                   :name ""
                                                                                                                                   :postalCodeRanges [{:postalCodeRangeBegin ""
                                                                                                                                                       :postalCodeRangeEnd ""}]}]
                                                                                                               :services [{:active false
                                                                                                                           :currency ""
                                                                                                                           :deliveryCountry ""
                                                                                                                           :deliveryTime {:cutoffTime {:hour 0
                                                                                                                                                       :minute 0
                                                                                                                                                       :timezone ""}
                                                                                                                                          :handlingBusinessDayConfig {:businessDays []}
                                                                                                                                          :holidayCutoffs [{:deadlineDate ""
                                                                                                                                                            :deadlineHour 0
                                                                                                                                                            :deadlineTimezone ""
                                                                                                                                                            :holidayId ""
                                                                                                                                                            :visibleFromDate ""}]
                                                                                                                                          :maxHandlingTimeInDays 0
                                                                                                                                          :maxTransitTimeInDays 0
                                                                                                                                          :minHandlingTimeInDays 0
                                                                                                                                          :minTransitTimeInDays 0
                                                                                                                                          :transitBusinessDayConfig {}
                                                                                                                                          :transitTimeTable {:postalCodeGroupNames []
                                                                                                                                                             :rows [{:values [{:maxTransitTimeInDays 0
                                                                                                                                                                               :minTransitTimeInDays 0}]}]
                                                                                                                                                             :transitTimeLabels []}
                                                                                                                                          :warehouseBasedDeliveryTimes [{:carrier ""
                                                                                                                                                                         :carrierService ""
                                                                                                                                                                         :originAdministrativeArea ""
                                                                                                                                                                         :originCity ""
                                                                                                                                                                         :originCountry ""
                                                                                                                                                                         :originPostalCode ""
                                                                                                                                                                         :originStreetAddress ""
                                                                                                                                                                         :warehouseName ""}]}
                                                                                                                           :eligibility ""
                                                                                                                           :minimumOrderValue {:currency ""
                                                                                                                                               :value ""}
                                                                                                                           :minimumOrderValueTable {:storeCodeSetWithMovs [{:storeCodes []
                                                                                                                                                                            :value {}}]}
                                                                                                                           :name ""
                                                                                                                           :pickupService {:carrierName ""
                                                                                                                                           :serviceName ""}
                                                                                                                           :rateGroups [{:applicableShippingLabels []
                                                                                                                                         :carrierRates [{:carrierName ""
                                                                                                                                                         :carrierService ""
                                                                                                                                                         :flatAdjustment {}
                                                                                                                                                         :name ""
                                                                                                                                                         :originPostalCode ""
                                                                                                                                                         :percentageAdjustment ""}]
                                                                                                                                         :mainTable {:columnHeaders {:locations [{:locationIds []}]
                                                                                                                                                                     :numberOfItems []
                                                                                                                                                                     :postalCodeGroupNames []
                                                                                                                                                                     :prices [{}]
                                                                                                                                                                     :weights [{:unit ""
                                                                                                                                                                                :value ""}]}
                                                                                                                                                     :name ""
                                                                                                                                                     :rowHeaders {}
                                                                                                                                                     :rows [{:cells [{:carrierRateName ""
                                                                                                                                                                      :flatRate {}
                                                                                                                                                                      :noShipping false
                                                                                                                                                                      :pricePercentage ""
                                                                                                                                                                      :subtableName ""}]}]}
                                                                                                                                         :name ""
                                                                                                                                         :singleValue {}
                                                                                                                                         :subtables [{}]}]
                                                                                                                           :shipmentType ""}]
                                                                                                               :warehouses [{:businessDayConfig {}
                                                                                                                             :cutoffTime {:hour 0
                                                                                                                                          :minute 0}
                                                                                                                             :handlingDays ""
                                                                                                                             :name ""
                                                                                                                             :shippingAddress {:administrativeArea ""
                                                                                                                                               :city ""
                                                                                                                                               :country ""
                                                                                                                                               :postalCode ""
                                                                                                                                               :streetAddress ""}}]}}]}})
require "http/client"

url = "{{baseUrl}}/shippingsettings/batch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/shippingsettings/batch"),
    Content = new StringContent("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/shippingsettings/batch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/shippingsettings/batch"

	payload := strings.NewReader("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/shippingsettings/batch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4889

{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "shippingSettings": {
        "accountId": "",
        "postalCodeGroups": [
          {
            "country": "",
            "name": "",
            "postalCodeRanges": [
              {
                "postalCodeRangeBegin": "",
                "postalCodeRangeEnd": ""
              }
            ]
          }
        ],
        "services": [
          {
            "active": false,
            "currency": "",
            "deliveryCountry": "",
            "deliveryTime": {
              "cutoffTime": {
                "hour": 0,
                "minute": 0,
                "timezone": ""
              },
              "handlingBusinessDayConfig": {
                "businessDays": []
              },
              "holidayCutoffs": [
                {
                  "deadlineDate": "",
                  "deadlineHour": 0,
                  "deadlineTimezone": "",
                  "holidayId": "",
                  "visibleFromDate": ""
                }
              ],
              "maxHandlingTimeInDays": 0,
              "maxTransitTimeInDays": 0,
              "minHandlingTimeInDays": 0,
              "minTransitTimeInDays": 0,
              "transitBusinessDayConfig": {},
              "transitTimeTable": {
                "postalCodeGroupNames": [],
                "rows": [
                  {
                    "values": [
                      {
                        "maxTransitTimeInDays": 0,
                        "minTransitTimeInDays": 0
                      }
                    ]
                  }
                ],
                "transitTimeLabels": []
              },
              "warehouseBasedDeliveryTimes": [
                {
                  "carrier": "",
                  "carrierService": "",
                  "originAdministrativeArea": "",
                  "originCity": "",
                  "originCountry": "",
                  "originPostalCode": "",
                  "originStreetAddress": "",
                  "warehouseName": ""
                }
              ]
            },
            "eligibility": "",
            "minimumOrderValue": {
              "currency": "",
              "value": ""
            },
            "minimumOrderValueTable": {
              "storeCodeSetWithMovs": [
                {
                  "storeCodes": [],
                  "value": {}
                }
              ]
            },
            "name": "",
            "pickupService": {
              "carrierName": "",
              "serviceName": ""
            },
            "rateGroups": [
              {
                "applicableShippingLabels": [],
                "carrierRates": [
                  {
                    "carrierName": "",
                    "carrierService": "",
                    "flatAdjustment": {},
                    "name": "",
                    "originPostalCode": "",
                    "percentageAdjustment": ""
                  }
                ],
                "mainTable": {
                  "columnHeaders": {
                    "locations": [
                      {
                        "locationIds": []
                      }
                    ],
                    "numberOfItems": [],
                    "postalCodeGroupNames": [],
                    "prices": [
                      {}
                    ],
                    "weights": [
                      {
                        "unit": "",
                        "value": ""
                      }
                    ]
                  },
                  "name": "",
                  "rowHeaders": {},
                  "rows": [
                    {
                      "cells": [
                        {
                          "carrierRateName": "",
                          "flatRate": {},
                          "noShipping": false,
                          "pricePercentage": "",
                          "subtableName": ""
                        }
                      ]
                    }
                  ]
                },
                "name": "",
                "singleValue": {},
                "subtables": [
                  {}
                ]
              }
            ],
            "shipmentType": ""
          }
        ],
        "warehouses": [
          {
            "businessDayConfig": {},
            "cutoffTime": {
              "hour": 0,
              "minute": 0
            },
            "handlingDays": "",
            "name": "",
            "shippingAddress": {
              "administrativeArea": "",
              "city": "",
              "country": "",
              "postalCode": "",
              "streetAddress": ""
            }
          }
        ]
      }
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/shippingsettings/batch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/shippingsettings/batch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/shippingsettings/batch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/shippingsettings/batch")
  .header("content-type", "application/json")
  .body("{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  entries: [
    {
      accountId: '',
      batchId: 0,
      merchantId: '',
      method: '',
      shippingSettings: {
        accountId: '',
        postalCodeGroups: [
          {
            country: '',
            name: '',
            postalCodeRanges: [
              {
                postalCodeRangeBegin: '',
                postalCodeRangeEnd: ''
              }
            ]
          }
        ],
        services: [
          {
            active: false,
            currency: '',
            deliveryCountry: '',
            deliveryTime: {
              cutoffTime: {
                hour: 0,
                minute: 0,
                timezone: ''
              },
              handlingBusinessDayConfig: {
                businessDays: []
              },
              holidayCutoffs: [
                {
                  deadlineDate: '',
                  deadlineHour: 0,
                  deadlineTimezone: '',
                  holidayId: '',
                  visibleFromDate: ''
                }
              ],
              maxHandlingTimeInDays: 0,
              maxTransitTimeInDays: 0,
              minHandlingTimeInDays: 0,
              minTransitTimeInDays: 0,
              transitBusinessDayConfig: {},
              transitTimeTable: {
                postalCodeGroupNames: [],
                rows: [
                  {
                    values: [
                      {
                        maxTransitTimeInDays: 0,
                        minTransitTimeInDays: 0
                      }
                    ]
                  }
                ],
                transitTimeLabels: []
              },
              warehouseBasedDeliveryTimes: [
                {
                  carrier: '',
                  carrierService: '',
                  originAdministrativeArea: '',
                  originCity: '',
                  originCountry: '',
                  originPostalCode: '',
                  originStreetAddress: '',
                  warehouseName: ''
                }
              ]
            },
            eligibility: '',
            minimumOrderValue: {
              currency: '',
              value: ''
            },
            minimumOrderValueTable: {
              storeCodeSetWithMovs: [
                {
                  storeCodes: [],
                  value: {}
                }
              ]
            },
            name: '',
            pickupService: {
              carrierName: '',
              serviceName: ''
            },
            rateGroups: [
              {
                applicableShippingLabels: [],
                carrierRates: [
                  {
                    carrierName: '',
                    carrierService: '',
                    flatAdjustment: {},
                    name: '',
                    originPostalCode: '',
                    percentageAdjustment: ''
                  }
                ],
                mainTable: {
                  columnHeaders: {
                    locations: [
                      {
                        locationIds: []
                      }
                    ],
                    numberOfItems: [],
                    postalCodeGroupNames: [],
                    prices: [
                      {}
                    ],
                    weights: [
                      {
                        unit: '',
                        value: ''
                      }
                    ]
                  },
                  name: '',
                  rowHeaders: {},
                  rows: [
                    {
                      cells: [
                        {
                          carrierRateName: '',
                          flatRate: {},
                          noShipping: false,
                          pricePercentage: '',
                          subtableName: ''
                        }
                      ]
                    }
                  ]
                },
                name: '',
                singleValue: {},
                subtables: [
                  {}
                ]
              }
            ],
            shipmentType: ''
          }
        ],
        warehouses: [
          {
            businessDayConfig: {},
            cutoffTime: {
              hour: 0,
              minute: 0
            },
            handlingDays: '',
            name: '',
            shippingAddress: {
              administrativeArea: '',
              city: '',
              country: '',
              postalCode: '',
              streetAddress: ''
            }
          }
        ]
      }
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/shippingsettings/batch');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/shippingsettings/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        accountId: '',
        batchId: 0,
        merchantId: '',
        method: '',
        shippingSettings: {
          accountId: '',
          postalCodeGroups: [
            {
              country: '',
              name: '',
              postalCodeRanges: [{postalCodeRangeBegin: '', postalCodeRangeEnd: ''}]
            }
          ],
          services: [
            {
              active: false,
              currency: '',
              deliveryCountry: '',
              deliveryTime: {
                cutoffTime: {hour: 0, minute: 0, timezone: ''},
                handlingBusinessDayConfig: {businessDays: []},
                holidayCutoffs: [
                  {
                    deadlineDate: '',
                    deadlineHour: 0,
                    deadlineTimezone: '',
                    holidayId: '',
                    visibleFromDate: ''
                  }
                ],
                maxHandlingTimeInDays: 0,
                maxTransitTimeInDays: 0,
                minHandlingTimeInDays: 0,
                minTransitTimeInDays: 0,
                transitBusinessDayConfig: {},
                transitTimeTable: {
                  postalCodeGroupNames: [],
                  rows: [{values: [{maxTransitTimeInDays: 0, minTransitTimeInDays: 0}]}],
                  transitTimeLabels: []
                },
                warehouseBasedDeliveryTimes: [
                  {
                    carrier: '',
                    carrierService: '',
                    originAdministrativeArea: '',
                    originCity: '',
                    originCountry: '',
                    originPostalCode: '',
                    originStreetAddress: '',
                    warehouseName: ''
                  }
                ]
              },
              eligibility: '',
              minimumOrderValue: {currency: '', value: ''},
              minimumOrderValueTable: {storeCodeSetWithMovs: [{storeCodes: [], value: {}}]},
              name: '',
              pickupService: {carrierName: '', serviceName: ''},
              rateGroups: [
                {
                  applicableShippingLabels: [],
                  carrierRates: [
                    {
                      carrierName: '',
                      carrierService: '',
                      flatAdjustment: {},
                      name: '',
                      originPostalCode: '',
                      percentageAdjustment: ''
                    }
                  ],
                  mainTable: {
                    columnHeaders: {
                      locations: [{locationIds: []}],
                      numberOfItems: [],
                      postalCodeGroupNames: [],
                      prices: [{}],
                      weights: [{unit: '', value: ''}]
                    },
                    name: '',
                    rowHeaders: {},
                    rows: [
                      {
                        cells: [
                          {
                            carrierRateName: '',
                            flatRate: {},
                            noShipping: false,
                            pricePercentage: '',
                            subtableName: ''
                          }
                        ]
                      }
                    ]
                  },
                  name: '',
                  singleValue: {},
                  subtables: [{}]
                }
              ],
              shipmentType: ''
            }
          ],
          warehouses: [
            {
              businessDayConfig: {},
              cutoffTime: {hour: 0, minute: 0},
              handlingDays: '',
              name: '',
              shippingAddress: {
                administrativeArea: '',
                city: '',
                country: '',
                postalCode: '',
                streetAddress: ''
              }
            }
          ]
        }
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/shippingsettings/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"accountId":"","batchId":0,"merchantId":"","method":"","shippingSettings":{"accountId":"","postalCodeGroups":[{"country":"","name":"","postalCodeRanges":[{"postalCodeRangeBegin":"","postalCodeRangeEnd":""}]}],"services":[{"active":false,"currency":"","deliveryCountry":"","deliveryTime":{"cutoffTime":{"hour":0,"minute":0,"timezone":""},"handlingBusinessDayConfig":{"businessDays":[]},"holidayCutoffs":[{"deadlineDate":"","deadlineHour":0,"deadlineTimezone":"","holidayId":"","visibleFromDate":""}],"maxHandlingTimeInDays":0,"maxTransitTimeInDays":0,"minHandlingTimeInDays":0,"minTransitTimeInDays":0,"transitBusinessDayConfig":{},"transitTimeTable":{"postalCodeGroupNames":[],"rows":[{"values":[{"maxTransitTimeInDays":0,"minTransitTimeInDays":0}]}],"transitTimeLabels":[]},"warehouseBasedDeliveryTimes":[{"carrier":"","carrierService":"","originAdministrativeArea":"","originCity":"","originCountry":"","originPostalCode":"","originStreetAddress":"","warehouseName":""}]},"eligibility":"","minimumOrderValue":{"currency":"","value":""},"minimumOrderValueTable":{"storeCodeSetWithMovs":[{"storeCodes":[],"value":{}}]},"name":"","pickupService":{"carrierName":"","serviceName":""},"rateGroups":[{"applicableShippingLabels":[],"carrierRates":[{"carrierName":"","carrierService":"","flatAdjustment":{},"name":"","originPostalCode":"","percentageAdjustment":""}],"mainTable":{"columnHeaders":{"locations":[{"locationIds":[]}],"numberOfItems":[],"postalCodeGroupNames":[],"prices":[{}],"weights":[{"unit":"","value":""}]},"name":"","rowHeaders":{},"rows":[{"cells":[{"carrierRateName":"","flatRate":{},"noShipping":false,"pricePercentage":"","subtableName":""}]}]},"name":"","singleValue":{},"subtables":[{}]}],"shipmentType":""}],"warehouses":[{"businessDayConfig":{},"cutoffTime":{"hour":0,"minute":0},"handlingDays":"","name":"","shippingAddress":{"administrativeArea":"","city":"","country":"","postalCode":"","streetAddress":""}}]}}]}'
};

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}}/shippingsettings/batch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "entries": [\n    {\n      "accountId": "",\n      "batchId": 0,\n      "merchantId": "",\n      "method": "",\n      "shippingSettings": {\n        "accountId": "",\n        "postalCodeGroups": [\n          {\n            "country": "",\n            "name": "",\n            "postalCodeRanges": [\n              {\n                "postalCodeRangeBegin": "",\n                "postalCodeRangeEnd": ""\n              }\n            ]\n          }\n        ],\n        "services": [\n          {\n            "active": false,\n            "currency": "",\n            "deliveryCountry": "",\n            "deliveryTime": {\n              "cutoffTime": {\n                "hour": 0,\n                "minute": 0,\n                "timezone": ""\n              },\n              "handlingBusinessDayConfig": {\n                "businessDays": []\n              },\n              "holidayCutoffs": [\n                {\n                  "deadlineDate": "",\n                  "deadlineHour": 0,\n                  "deadlineTimezone": "",\n                  "holidayId": "",\n                  "visibleFromDate": ""\n                }\n              ],\n              "maxHandlingTimeInDays": 0,\n              "maxTransitTimeInDays": 0,\n              "minHandlingTimeInDays": 0,\n              "minTransitTimeInDays": 0,\n              "transitBusinessDayConfig": {},\n              "transitTimeTable": {\n                "postalCodeGroupNames": [],\n                "rows": [\n                  {\n                    "values": [\n                      {\n                        "maxTransitTimeInDays": 0,\n                        "minTransitTimeInDays": 0\n                      }\n                    ]\n                  }\n                ],\n                "transitTimeLabels": []\n              },\n              "warehouseBasedDeliveryTimes": [\n                {\n                  "carrier": "",\n                  "carrierService": "",\n                  "originAdministrativeArea": "",\n                  "originCity": "",\n                  "originCountry": "",\n                  "originPostalCode": "",\n                  "originStreetAddress": "",\n                  "warehouseName": ""\n                }\n              ]\n            },\n            "eligibility": "",\n            "minimumOrderValue": {\n              "currency": "",\n              "value": ""\n            },\n            "minimumOrderValueTable": {\n              "storeCodeSetWithMovs": [\n                {\n                  "storeCodes": [],\n                  "value": {}\n                }\n              ]\n            },\n            "name": "",\n            "pickupService": {\n              "carrierName": "",\n              "serviceName": ""\n            },\n            "rateGroups": [\n              {\n                "applicableShippingLabels": [],\n                "carrierRates": [\n                  {\n                    "carrierName": "",\n                    "carrierService": "",\n                    "flatAdjustment": {},\n                    "name": "",\n                    "originPostalCode": "",\n                    "percentageAdjustment": ""\n                  }\n                ],\n                "mainTable": {\n                  "columnHeaders": {\n                    "locations": [\n                      {\n                        "locationIds": []\n                      }\n                    ],\n                    "numberOfItems": [],\n                    "postalCodeGroupNames": [],\n                    "prices": [\n                      {}\n                    ],\n                    "weights": [\n                      {\n                        "unit": "",\n                        "value": ""\n                      }\n                    ]\n                  },\n                  "name": "",\n                  "rowHeaders": {},\n                  "rows": [\n                    {\n                      "cells": [\n                        {\n                          "carrierRateName": "",\n                          "flatRate": {},\n                          "noShipping": false,\n                          "pricePercentage": "",\n                          "subtableName": ""\n                        }\n                      ]\n                    }\n                  ]\n                },\n                "name": "",\n                "singleValue": {},\n                "subtables": [\n                  {}\n                ]\n              }\n            ],\n            "shipmentType": ""\n          }\n        ],\n        "warehouses": [\n          {\n            "businessDayConfig": {},\n            "cutoffTime": {\n              "hour": 0,\n              "minute": 0\n            },\n            "handlingDays": "",\n            "name": "",\n            "shippingAddress": {\n              "administrativeArea": "",\n              "city": "",\n              "country": "",\n              "postalCode": "",\n              "streetAddress": ""\n            }\n          }\n        ]\n      }\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/shippingsettings/batch")
  .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/shippingsettings/batch',
  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({
  entries: [
    {
      accountId: '',
      batchId: 0,
      merchantId: '',
      method: '',
      shippingSettings: {
        accountId: '',
        postalCodeGroups: [
          {
            country: '',
            name: '',
            postalCodeRanges: [{postalCodeRangeBegin: '', postalCodeRangeEnd: ''}]
          }
        ],
        services: [
          {
            active: false,
            currency: '',
            deliveryCountry: '',
            deliveryTime: {
              cutoffTime: {hour: 0, minute: 0, timezone: ''},
              handlingBusinessDayConfig: {businessDays: []},
              holidayCutoffs: [
                {
                  deadlineDate: '',
                  deadlineHour: 0,
                  deadlineTimezone: '',
                  holidayId: '',
                  visibleFromDate: ''
                }
              ],
              maxHandlingTimeInDays: 0,
              maxTransitTimeInDays: 0,
              minHandlingTimeInDays: 0,
              minTransitTimeInDays: 0,
              transitBusinessDayConfig: {},
              transitTimeTable: {
                postalCodeGroupNames: [],
                rows: [{values: [{maxTransitTimeInDays: 0, minTransitTimeInDays: 0}]}],
                transitTimeLabels: []
              },
              warehouseBasedDeliveryTimes: [
                {
                  carrier: '',
                  carrierService: '',
                  originAdministrativeArea: '',
                  originCity: '',
                  originCountry: '',
                  originPostalCode: '',
                  originStreetAddress: '',
                  warehouseName: ''
                }
              ]
            },
            eligibility: '',
            minimumOrderValue: {currency: '', value: ''},
            minimumOrderValueTable: {storeCodeSetWithMovs: [{storeCodes: [], value: {}}]},
            name: '',
            pickupService: {carrierName: '', serviceName: ''},
            rateGroups: [
              {
                applicableShippingLabels: [],
                carrierRates: [
                  {
                    carrierName: '',
                    carrierService: '',
                    flatAdjustment: {},
                    name: '',
                    originPostalCode: '',
                    percentageAdjustment: ''
                  }
                ],
                mainTable: {
                  columnHeaders: {
                    locations: [{locationIds: []}],
                    numberOfItems: [],
                    postalCodeGroupNames: [],
                    prices: [{}],
                    weights: [{unit: '', value: ''}]
                  },
                  name: '',
                  rowHeaders: {},
                  rows: [
                    {
                      cells: [
                        {
                          carrierRateName: '',
                          flatRate: {},
                          noShipping: false,
                          pricePercentage: '',
                          subtableName: ''
                        }
                      ]
                    }
                  ]
                },
                name: '',
                singleValue: {},
                subtables: [{}]
              }
            ],
            shipmentType: ''
          }
        ],
        warehouses: [
          {
            businessDayConfig: {},
            cutoffTime: {hour: 0, minute: 0},
            handlingDays: '',
            name: '',
            shippingAddress: {
              administrativeArea: '',
              city: '',
              country: '',
              postalCode: '',
              streetAddress: ''
            }
          }
        ]
      }
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/shippingsettings/batch',
  headers: {'content-type': 'application/json'},
  body: {
    entries: [
      {
        accountId: '',
        batchId: 0,
        merchantId: '',
        method: '',
        shippingSettings: {
          accountId: '',
          postalCodeGroups: [
            {
              country: '',
              name: '',
              postalCodeRanges: [{postalCodeRangeBegin: '', postalCodeRangeEnd: ''}]
            }
          ],
          services: [
            {
              active: false,
              currency: '',
              deliveryCountry: '',
              deliveryTime: {
                cutoffTime: {hour: 0, minute: 0, timezone: ''},
                handlingBusinessDayConfig: {businessDays: []},
                holidayCutoffs: [
                  {
                    deadlineDate: '',
                    deadlineHour: 0,
                    deadlineTimezone: '',
                    holidayId: '',
                    visibleFromDate: ''
                  }
                ],
                maxHandlingTimeInDays: 0,
                maxTransitTimeInDays: 0,
                minHandlingTimeInDays: 0,
                minTransitTimeInDays: 0,
                transitBusinessDayConfig: {},
                transitTimeTable: {
                  postalCodeGroupNames: [],
                  rows: [{values: [{maxTransitTimeInDays: 0, minTransitTimeInDays: 0}]}],
                  transitTimeLabels: []
                },
                warehouseBasedDeliveryTimes: [
                  {
                    carrier: '',
                    carrierService: '',
                    originAdministrativeArea: '',
                    originCity: '',
                    originCountry: '',
                    originPostalCode: '',
                    originStreetAddress: '',
                    warehouseName: ''
                  }
                ]
              },
              eligibility: '',
              minimumOrderValue: {currency: '', value: ''},
              minimumOrderValueTable: {storeCodeSetWithMovs: [{storeCodes: [], value: {}}]},
              name: '',
              pickupService: {carrierName: '', serviceName: ''},
              rateGroups: [
                {
                  applicableShippingLabels: [],
                  carrierRates: [
                    {
                      carrierName: '',
                      carrierService: '',
                      flatAdjustment: {},
                      name: '',
                      originPostalCode: '',
                      percentageAdjustment: ''
                    }
                  ],
                  mainTable: {
                    columnHeaders: {
                      locations: [{locationIds: []}],
                      numberOfItems: [],
                      postalCodeGroupNames: [],
                      prices: [{}],
                      weights: [{unit: '', value: ''}]
                    },
                    name: '',
                    rowHeaders: {},
                    rows: [
                      {
                        cells: [
                          {
                            carrierRateName: '',
                            flatRate: {},
                            noShipping: false,
                            pricePercentage: '',
                            subtableName: ''
                          }
                        ]
                      }
                    ]
                  },
                  name: '',
                  singleValue: {},
                  subtables: [{}]
                }
              ],
              shipmentType: ''
            }
          ],
          warehouses: [
            {
              businessDayConfig: {},
              cutoffTime: {hour: 0, minute: 0},
              handlingDays: '',
              name: '',
              shippingAddress: {
                administrativeArea: '',
                city: '',
                country: '',
                postalCode: '',
                streetAddress: ''
              }
            }
          ]
        }
      }
    ]
  },
  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}}/shippingsettings/batch');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  entries: [
    {
      accountId: '',
      batchId: 0,
      merchantId: '',
      method: '',
      shippingSettings: {
        accountId: '',
        postalCodeGroups: [
          {
            country: '',
            name: '',
            postalCodeRanges: [
              {
                postalCodeRangeBegin: '',
                postalCodeRangeEnd: ''
              }
            ]
          }
        ],
        services: [
          {
            active: false,
            currency: '',
            deliveryCountry: '',
            deliveryTime: {
              cutoffTime: {
                hour: 0,
                minute: 0,
                timezone: ''
              },
              handlingBusinessDayConfig: {
                businessDays: []
              },
              holidayCutoffs: [
                {
                  deadlineDate: '',
                  deadlineHour: 0,
                  deadlineTimezone: '',
                  holidayId: '',
                  visibleFromDate: ''
                }
              ],
              maxHandlingTimeInDays: 0,
              maxTransitTimeInDays: 0,
              minHandlingTimeInDays: 0,
              minTransitTimeInDays: 0,
              transitBusinessDayConfig: {},
              transitTimeTable: {
                postalCodeGroupNames: [],
                rows: [
                  {
                    values: [
                      {
                        maxTransitTimeInDays: 0,
                        minTransitTimeInDays: 0
                      }
                    ]
                  }
                ],
                transitTimeLabels: []
              },
              warehouseBasedDeliveryTimes: [
                {
                  carrier: '',
                  carrierService: '',
                  originAdministrativeArea: '',
                  originCity: '',
                  originCountry: '',
                  originPostalCode: '',
                  originStreetAddress: '',
                  warehouseName: ''
                }
              ]
            },
            eligibility: '',
            minimumOrderValue: {
              currency: '',
              value: ''
            },
            minimumOrderValueTable: {
              storeCodeSetWithMovs: [
                {
                  storeCodes: [],
                  value: {}
                }
              ]
            },
            name: '',
            pickupService: {
              carrierName: '',
              serviceName: ''
            },
            rateGroups: [
              {
                applicableShippingLabels: [],
                carrierRates: [
                  {
                    carrierName: '',
                    carrierService: '',
                    flatAdjustment: {},
                    name: '',
                    originPostalCode: '',
                    percentageAdjustment: ''
                  }
                ],
                mainTable: {
                  columnHeaders: {
                    locations: [
                      {
                        locationIds: []
                      }
                    ],
                    numberOfItems: [],
                    postalCodeGroupNames: [],
                    prices: [
                      {}
                    ],
                    weights: [
                      {
                        unit: '',
                        value: ''
                      }
                    ]
                  },
                  name: '',
                  rowHeaders: {},
                  rows: [
                    {
                      cells: [
                        {
                          carrierRateName: '',
                          flatRate: {},
                          noShipping: false,
                          pricePercentage: '',
                          subtableName: ''
                        }
                      ]
                    }
                  ]
                },
                name: '',
                singleValue: {},
                subtables: [
                  {}
                ]
              }
            ],
            shipmentType: ''
          }
        ],
        warehouses: [
          {
            businessDayConfig: {},
            cutoffTime: {
              hour: 0,
              minute: 0
            },
            handlingDays: '',
            name: '',
            shippingAddress: {
              administrativeArea: '',
              city: '',
              country: '',
              postalCode: '',
              streetAddress: ''
            }
          }
        ]
      }
    }
  ]
});

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}}/shippingsettings/batch',
  headers: {'content-type': 'application/json'},
  data: {
    entries: [
      {
        accountId: '',
        batchId: 0,
        merchantId: '',
        method: '',
        shippingSettings: {
          accountId: '',
          postalCodeGroups: [
            {
              country: '',
              name: '',
              postalCodeRanges: [{postalCodeRangeBegin: '', postalCodeRangeEnd: ''}]
            }
          ],
          services: [
            {
              active: false,
              currency: '',
              deliveryCountry: '',
              deliveryTime: {
                cutoffTime: {hour: 0, minute: 0, timezone: ''},
                handlingBusinessDayConfig: {businessDays: []},
                holidayCutoffs: [
                  {
                    deadlineDate: '',
                    deadlineHour: 0,
                    deadlineTimezone: '',
                    holidayId: '',
                    visibleFromDate: ''
                  }
                ],
                maxHandlingTimeInDays: 0,
                maxTransitTimeInDays: 0,
                minHandlingTimeInDays: 0,
                minTransitTimeInDays: 0,
                transitBusinessDayConfig: {},
                transitTimeTable: {
                  postalCodeGroupNames: [],
                  rows: [{values: [{maxTransitTimeInDays: 0, minTransitTimeInDays: 0}]}],
                  transitTimeLabels: []
                },
                warehouseBasedDeliveryTimes: [
                  {
                    carrier: '',
                    carrierService: '',
                    originAdministrativeArea: '',
                    originCity: '',
                    originCountry: '',
                    originPostalCode: '',
                    originStreetAddress: '',
                    warehouseName: ''
                  }
                ]
              },
              eligibility: '',
              minimumOrderValue: {currency: '', value: ''},
              minimumOrderValueTable: {storeCodeSetWithMovs: [{storeCodes: [], value: {}}]},
              name: '',
              pickupService: {carrierName: '', serviceName: ''},
              rateGroups: [
                {
                  applicableShippingLabels: [],
                  carrierRates: [
                    {
                      carrierName: '',
                      carrierService: '',
                      flatAdjustment: {},
                      name: '',
                      originPostalCode: '',
                      percentageAdjustment: ''
                    }
                  ],
                  mainTable: {
                    columnHeaders: {
                      locations: [{locationIds: []}],
                      numberOfItems: [],
                      postalCodeGroupNames: [],
                      prices: [{}],
                      weights: [{unit: '', value: ''}]
                    },
                    name: '',
                    rowHeaders: {},
                    rows: [
                      {
                        cells: [
                          {
                            carrierRateName: '',
                            flatRate: {},
                            noShipping: false,
                            pricePercentage: '',
                            subtableName: ''
                          }
                        ]
                      }
                    ]
                  },
                  name: '',
                  singleValue: {},
                  subtables: [{}]
                }
              ],
              shipmentType: ''
            }
          ],
          warehouses: [
            {
              businessDayConfig: {},
              cutoffTime: {hour: 0, minute: 0},
              handlingDays: '',
              name: '',
              shippingAddress: {
                administrativeArea: '',
                city: '',
                country: '',
                postalCode: '',
                streetAddress: ''
              }
            }
          ]
        }
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/shippingsettings/batch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"entries":[{"accountId":"","batchId":0,"merchantId":"","method":"","shippingSettings":{"accountId":"","postalCodeGroups":[{"country":"","name":"","postalCodeRanges":[{"postalCodeRangeBegin":"","postalCodeRangeEnd":""}]}],"services":[{"active":false,"currency":"","deliveryCountry":"","deliveryTime":{"cutoffTime":{"hour":0,"minute":0,"timezone":""},"handlingBusinessDayConfig":{"businessDays":[]},"holidayCutoffs":[{"deadlineDate":"","deadlineHour":0,"deadlineTimezone":"","holidayId":"","visibleFromDate":""}],"maxHandlingTimeInDays":0,"maxTransitTimeInDays":0,"minHandlingTimeInDays":0,"minTransitTimeInDays":0,"transitBusinessDayConfig":{},"transitTimeTable":{"postalCodeGroupNames":[],"rows":[{"values":[{"maxTransitTimeInDays":0,"minTransitTimeInDays":0}]}],"transitTimeLabels":[]},"warehouseBasedDeliveryTimes":[{"carrier":"","carrierService":"","originAdministrativeArea":"","originCity":"","originCountry":"","originPostalCode":"","originStreetAddress":"","warehouseName":""}]},"eligibility":"","minimumOrderValue":{"currency":"","value":""},"minimumOrderValueTable":{"storeCodeSetWithMovs":[{"storeCodes":[],"value":{}}]},"name":"","pickupService":{"carrierName":"","serviceName":""},"rateGroups":[{"applicableShippingLabels":[],"carrierRates":[{"carrierName":"","carrierService":"","flatAdjustment":{},"name":"","originPostalCode":"","percentageAdjustment":""}],"mainTable":{"columnHeaders":{"locations":[{"locationIds":[]}],"numberOfItems":[],"postalCodeGroupNames":[],"prices":[{}],"weights":[{"unit":"","value":""}]},"name":"","rowHeaders":{},"rows":[{"cells":[{"carrierRateName":"","flatRate":{},"noShipping":false,"pricePercentage":"","subtableName":""}]}]},"name":"","singleValue":{},"subtables":[{}]}],"shipmentType":""}],"warehouses":[{"businessDayConfig":{},"cutoffTime":{"hour":0,"minute":0},"handlingDays":"","name":"","shippingAddress":{"administrativeArea":"","city":"","country":"","postalCode":"","streetAddress":""}}]}}]}'
};

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 = @{ @"entries": @[ @{ @"accountId": @"", @"batchId": @0, @"merchantId": @"", @"method": @"", @"shippingSettings": @{ @"accountId": @"", @"postalCodeGroups": @[ @{ @"country": @"", @"name": @"", @"postalCodeRanges": @[ @{ @"postalCodeRangeBegin": @"", @"postalCodeRangeEnd": @"" } ] } ], @"services": @[ @{ @"active": @NO, @"currency": @"", @"deliveryCountry": @"", @"deliveryTime": @{ @"cutoffTime": @{ @"hour": @0, @"minute": @0, @"timezone": @"" }, @"handlingBusinessDayConfig": @{ @"businessDays": @[  ] }, @"holidayCutoffs": @[ @{ @"deadlineDate": @"", @"deadlineHour": @0, @"deadlineTimezone": @"", @"holidayId": @"", @"visibleFromDate": @"" } ], @"maxHandlingTimeInDays": @0, @"maxTransitTimeInDays": @0, @"minHandlingTimeInDays": @0, @"minTransitTimeInDays": @0, @"transitBusinessDayConfig": @{  }, @"transitTimeTable": @{ @"postalCodeGroupNames": @[  ], @"rows": @[ @{ @"values": @[ @{ @"maxTransitTimeInDays": @0, @"minTransitTimeInDays": @0 } ] } ], @"transitTimeLabels": @[  ] }, @"warehouseBasedDeliveryTimes": @[ @{ @"carrier": @"", @"carrierService": @"", @"originAdministrativeArea": @"", @"originCity": @"", @"originCountry": @"", @"originPostalCode": @"", @"originStreetAddress": @"", @"warehouseName": @"" } ] }, @"eligibility": @"", @"minimumOrderValue": @{ @"currency": @"", @"value": @"" }, @"minimumOrderValueTable": @{ @"storeCodeSetWithMovs": @[ @{ @"storeCodes": @[  ], @"value": @{  } } ] }, @"name": @"", @"pickupService": @{ @"carrierName": @"", @"serviceName": @"" }, @"rateGroups": @[ @{ @"applicableShippingLabels": @[  ], @"carrierRates": @[ @{ @"carrierName": @"", @"carrierService": @"", @"flatAdjustment": @{  }, @"name": @"", @"originPostalCode": @"", @"percentageAdjustment": @"" } ], @"mainTable": @{ @"columnHeaders": @{ @"locations": @[ @{ @"locationIds": @[  ] } ], @"numberOfItems": @[  ], @"postalCodeGroupNames": @[  ], @"prices": @[ @{  } ], @"weights": @[ @{ @"unit": @"", @"value": @"" } ] }, @"name": @"", @"rowHeaders": @{  }, @"rows": @[ @{ @"cells": @[ @{ @"carrierRateName": @"", @"flatRate": @{  }, @"noShipping": @NO, @"pricePercentage": @"", @"subtableName": @"" } ] } ] }, @"name": @"", @"singleValue": @{  }, @"subtables": @[ @{  } ] } ], @"shipmentType": @"" } ], @"warehouses": @[ @{ @"businessDayConfig": @{  }, @"cutoffTime": @{ @"hour": @0, @"minute": @0 }, @"handlingDays": @"", @"name": @"", @"shippingAddress": @{ @"administrativeArea": @"", @"city": @"", @"country": @"", @"postalCode": @"", @"streetAddress": @"" } } ] } } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/shippingsettings/batch"]
                                                       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}}/shippingsettings/batch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/shippingsettings/batch",
  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([
    'entries' => [
        [
                'accountId' => '',
                'batchId' => 0,
                'merchantId' => '',
                'method' => '',
                'shippingSettings' => [
                                'accountId' => '',
                                'postalCodeGroups' => [
                                                                [
                                                                                                                                'country' => '',
                                                                                                                                'name' => '',
                                                                                                                                'postalCodeRanges' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'postalCodeRangeBegin' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'postalCodeRangeEnd' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ],
                                'services' => [
                                                                [
                                                                                                                                'active' => null,
                                                                                                                                'currency' => '',
                                                                                                                                'deliveryCountry' => '',
                                                                                                                                'deliveryTime' => [
                                                                                                                                                                                                                                                                'cutoffTime' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'hour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'minute' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'timezone' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'handlingBusinessDayConfig' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'businessDays' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'holidayCutoffs' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'deadlineDate' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'deadlineHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'deadlineTimezone' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'holidayId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'visibleFromDate' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'maxHandlingTimeInDays' => 0,
                                                                                                                                                                                                                                                                'maxTransitTimeInDays' => 0,
                                                                                                                                                                                                                                                                'minHandlingTimeInDays' => 0,
                                                                                                                                                                                                                                                                'minTransitTimeInDays' => 0,
                                                                                                                                                                                                                                                                'transitBusinessDayConfig' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'transitTimeTable' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'postalCodeGroupNames' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'rows' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'maxTransitTimeInDays' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'minTransitTimeInDays' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'transitTimeLabels' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'warehouseBasedDeliveryTimes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrier' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierService' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originAdministrativeArea' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originCity' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originCountry' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originPostalCode' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originStreetAddress' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'warehouseName' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'eligibility' => '',
                                                                                                                                'minimumOrderValue' => [
                                                                                                                                                                                                                                                                'currency' => '',
                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                ],
                                                                                                                                'minimumOrderValueTable' => [
                                                                                                                                                                                                                                                                'storeCodeSetWithMovs' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'storeCodes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'name' => '',
                                                                                                                                'pickupService' => [
                                                                                                                                                                                                                                                                'carrierName' => '',
                                                                                                                                                                                                                                                                'serviceName' => ''
                                                                                                                                ],
                                                                                                                                'rateGroups' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'applicableShippingLabels' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierRates' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierService' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'flatAdjustment' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originPostalCode' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'percentageAdjustment' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'mainTable' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'columnHeaders' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'locations' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'locationIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'numberOfItems' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'postalCodeGroupNames' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'prices' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'weights' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'unit' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'rowHeaders' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'rows' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'cells' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierRateName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'flatRate' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'noShipping' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'pricePercentage' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'subtableName' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'singleValue' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'subtables' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'shipmentType' => ''
                                                                ]
                                ],
                                'warehouses' => [
                                                                [
                                                                                                                                'businessDayConfig' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'cutoffTime' => [
                                                                                                                                                                                                                                                                'hour' => 0,
                                                                                                                                                                                                                                                                'minute' => 0
                                                                                                                                ],
                                                                                                                                'handlingDays' => '',
                                                                                                                                'name' => '',
                                                                                                                                'shippingAddress' => [
                                                                                                                                                                                                                                                                'administrativeArea' => '',
                                                                                                                                                                                                                                                                'city' => '',
                                                                                                                                                                                                                                                                'country' => '',
                                                                                                                                                                                                                                                                'postalCode' => '',
                                                                                                                                                                                                                                                                'streetAddress' => ''
                                                                                                                                ]
                                                                ]
                                ]
                ]
        ]
    ]
  ]),
  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}}/shippingsettings/batch', [
  'body' => '{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "shippingSettings": {
        "accountId": "",
        "postalCodeGroups": [
          {
            "country": "",
            "name": "",
            "postalCodeRanges": [
              {
                "postalCodeRangeBegin": "",
                "postalCodeRangeEnd": ""
              }
            ]
          }
        ],
        "services": [
          {
            "active": false,
            "currency": "",
            "deliveryCountry": "",
            "deliveryTime": {
              "cutoffTime": {
                "hour": 0,
                "minute": 0,
                "timezone": ""
              },
              "handlingBusinessDayConfig": {
                "businessDays": []
              },
              "holidayCutoffs": [
                {
                  "deadlineDate": "",
                  "deadlineHour": 0,
                  "deadlineTimezone": "",
                  "holidayId": "",
                  "visibleFromDate": ""
                }
              ],
              "maxHandlingTimeInDays": 0,
              "maxTransitTimeInDays": 0,
              "minHandlingTimeInDays": 0,
              "minTransitTimeInDays": 0,
              "transitBusinessDayConfig": {},
              "transitTimeTable": {
                "postalCodeGroupNames": [],
                "rows": [
                  {
                    "values": [
                      {
                        "maxTransitTimeInDays": 0,
                        "minTransitTimeInDays": 0
                      }
                    ]
                  }
                ],
                "transitTimeLabels": []
              },
              "warehouseBasedDeliveryTimes": [
                {
                  "carrier": "",
                  "carrierService": "",
                  "originAdministrativeArea": "",
                  "originCity": "",
                  "originCountry": "",
                  "originPostalCode": "",
                  "originStreetAddress": "",
                  "warehouseName": ""
                }
              ]
            },
            "eligibility": "",
            "minimumOrderValue": {
              "currency": "",
              "value": ""
            },
            "minimumOrderValueTable": {
              "storeCodeSetWithMovs": [
                {
                  "storeCodes": [],
                  "value": {}
                }
              ]
            },
            "name": "",
            "pickupService": {
              "carrierName": "",
              "serviceName": ""
            },
            "rateGroups": [
              {
                "applicableShippingLabels": [],
                "carrierRates": [
                  {
                    "carrierName": "",
                    "carrierService": "",
                    "flatAdjustment": {},
                    "name": "",
                    "originPostalCode": "",
                    "percentageAdjustment": ""
                  }
                ],
                "mainTable": {
                  "columnHeaders": {
                    "locations": [
                      {
                        "locationIds": []
                      }
                    ],
                    "numberOfItems": [],
                    "postalCodeGroupNames": [],
                    "prices": [
                      {}
                    ],
                    "weights": [
                      {
                        "unit": "",
                        "value": ""
                      }
                    ]
                  },
                  "name": "",
                  "rowHeaders": {},
                  "rows": [
                    {
                      "cells": [
                        {
                          "carrierRateName": "",
                          "flatRate": {},
                          "noShipping": false,
                          "pricePercentage": "",
                          "subtableName": ""
                        }
                      ]
                    }
                  ]
                },
                "name": "",
                "singleValue": {},
                "subtables": [
                  {}
                ]
              }
            ],
            "shipmentType": ""
          }
        ],
        "warehouses": [
          {
            "businessDayConfig": {},
            "cutoffTime": {
              "hour": 0,
              "minute": 0
            },
            "handlingDays": "",
            "name": "",
            "shippingAddress": {
              "administrativeArea": "",
              "city": "",
              "country": "",
              "postalCode": "",
              "streetAddress": ""
            }
          }
        ]
      }
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/shippingsettings/batch');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'entries' => [
    [
        'accountId' => '',
        'batchId' => 0,
        'merchantId' => '',
        'method' => '',
        'shippingSettings' => [
                'accountId' => '',
                'postalCodeGroups' => [
                                [
                                                                'country' => '',
                                                                'name' => '',
                                                                'postalCodeRanges' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'postalCodeRangeBegin' => '',
                                                                                                                                                                                                                                                                'postalCodeRangeEnd' => ''
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'services' => [
                                [
                                                                'active' => null,
                                                                'currency' => '',
                                                                'deliveryCountry' => '',
                                                                'deliveryTime' => [
                                                                                                                                'cutoffTime' => [
                                                                                                                                                                                                                                                                'hour' => 0,
                                                                                                                                                                                                                                                                'minute' => 0,
                                                                                                                                                                                                                                                                'timezone' => ''
                                                                                                                                ],
                                                                                                                                'handlingBusinessDayConfig' => [
                                                                                                                                                                                                                                                                'businessDays' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'holidayCutoffs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'deadlineDate' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'deadlineHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'deadlineTimezone' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'holidayId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'visibleFromDate' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'maxHandlingTimeInDays' => 0,
                                                                                                                                'maxTransitTimeInDays' => 0,
                                                                                                                                'minHandlingTimeInDays' => 0,
                                                                                                                                'minTransitTimeInDays' => 0,
                                                                                                                                'transitBusinessDayConfig' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'transitTimeTable' => [
                                                                                                                                                                                                                                                                'postalCodeGroupNames' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'rows' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'maxTransitTimeInDays' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'minTransitTimeInDays' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'transitTimeLabels' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'warehouseBasedDeliveryTimes' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrier' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierService' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originAdministrativeArea' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originCity' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originCountry' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originPostalCode' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originStreetAddress' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'warehouseName' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'eligibility' => '',
                                                                'minimumOrderValue' => [
                                                                                                                                'currency' => '',
                                                                                                                                'value' => ''
                                                                ],
                                                                'minimumOrderValueTable' => [
                                                                                                                                'storeCodeSetWithMovs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'storeCodes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'name' => '',
                                                                'pickupService' => [
                                                                                                                                'carrierName' => '',
                                                                                                                                'serviceName' => ''
                                                                ],
                                                                'rateGroups' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'applicableShippingLabels' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'carrierRates' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierService' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'flatAdjustment' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originPostalCode' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'percentageAdjustment' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'mainTable' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'columnHeaders' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'locations' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'locationIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'numberOfItems' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'postalCodeGroupNames' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'prices' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'weights' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'unit' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'rowHeaders' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'rows' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'cells' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierRateName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'flatRate' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'noShipping' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'pricePercentage' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'subtableName' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'singleValue' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'subtables' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'shipmentType' => ''
                                ]
                ],
                'warehouses' => [
                                [
                                                                'businessDayConfig' => [
                                                                                                                                
                                                                ],
                                                                'cutoffTime' => [
                                                                                                                                'hour' => 0,
                                                                                                                                'minute' => 0
                                                                ],
                                                                'handlingDays' => '',
                                                                'name' => '',
                                                                'shippingAddress' => [
                                                                                                                                'administrativeArea' => '',
                                                                                                                                'city' => '',
                                                                                                                                'country' => '',
                                                                                                                                'postalCode' => '',
                                                                                                                                'streetAddress' => ''
                                                                ]
                                ]
                ]
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'entries' => [
    [
        'accountId' => '',
        'batchId' => 0,
        'merchantId' => '',
        'method' => '',
        'shippingSettings' => [
                'accountId' => '',
                'postalCodeGroups' => [
                                [
                                                                'country' => '',
                                                                'name' => '',
                                                                'postalCodeRanges' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'postalCodeRangeBegin' => '',
                                                                                                                                                                                                                                                                'postalCodeRangeEnd' => ''
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'services' => [
                                [
                                                                'active' => null,
                                                                'currency' => '',
                                                                'deliveryCountry' => '',
                                                                'deliveryTime' => [
                                                                                                                                'cutoffTime' => [
                                                                                                                                                                                                                                                                'hour' => 0,
                                                                                                                                                                                                                                                                'minute' => 0,
                                                                                                                                                                                                                                                                'timezone' => ''
                                                                                                                                ],
                                                                                                                                'handlingBusinessDayConfig' => [
                                                                                                                                                                                                                                                                'businessDays' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'holidayCutoffs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'deadlineDate' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'deadlineHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'deadlineTimezone' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'holidayId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'visibleFromDate' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'maxHandlingTimeInDays' => 0,
                                                                                                                                'maxTransitTimeInDays' => 0,
                                                                                                                                'minHandlingTimeInDays' => 0,
                                                                                                                                'minTransitTimeInDays' => 0,
                                                                                                                                'transitBusinessDayConfig' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'transitTimeTable' => [
                                                                                                                                                                                                                                                                'postalCodeGroupNames' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'rows' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'maxTransitTimeInDays' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'minTransitTimeInDays' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'transitTimeLabels' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'warehouseBasedDeliveryTimes' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrier' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierService' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originAdministrativeArea' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originCity' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originCountry' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originPostalCode' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originStreetAddress' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'warehouseName' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'eligibility' => '',
                                                                'minimumOrderValue' => [
                                                                                                                                'currency' => '',
                                                                                                                                'value' => ''
                                                                ],
                                                                'minimumOrderValueTable' => [
                                                                                                                                'storeCodeSetWithMovs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'storeCodes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'name' => '',
                                                                'pickupService' => [
                                                                                                                                'carrierName' => '',
                                                                                                                                'serviceName' => ''
                                                                ],
                                                                'rateGroups' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'applicableShippingLabels' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'carrierRates' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierService' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'flatAdjustment' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'originPostalCode' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'percentageAdjustment' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'mainTable' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'columnHeaders' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'locations' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'locationIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'numberOfItems' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'postalCodeGroupNames' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'prices' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'weights' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'unit' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'rowHeaders' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'rows' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'cells' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierRateName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'flatRate' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'noShipping' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'pricePercentage' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'subtableName' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'singleValue' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'subtables' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'shipmentType' => ''
                                ]
                ],
                'warehouses' => [
                                [
                                                                'businessDayConfig' => [
                                                                                                                                
                                                                ],
                                                                'cutoffTime' => [
                                                                                                                                'hour' => 0,
                                                                                                                                'minute' => 0
                                                                ],
                                                                'handlingDays' => '',
                                                                'name' => '',
                                                                'shippingAddress' => [
                                                                                                                                'administrativeArea' => '',
                                                                                                                                'city' => '',
                                                                                                                                'country' => '',
                                                                                                                                'postalCode' => '',
                                                                                                                                'streetAddress' => ''
                                                                ]
                                ]
                ]
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/shippingsettings/batch');
$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}}/shippingsettings/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "shippingSettings": {
        "accountId": "",
        "postalCodeGroups": [
          {
            "country": "",
            "name": "",
            "postalCodeRanges": [
              {
                "postalCodeRangeBegin": "",
                "postalCodeRangeEnd": ""
              }
            ]
          }
        ],
        "services": [
          {
            "active": false,
            "currency": "",
            "deliveryCountry": "",
            "deliveryTime": {
              "cutoffTime": {
                "hour": 0,
                "minute": 0,
                "timezone": ""
              },
              "handlingBusinessDayConfig": {
                "businessDays": []
              },
              "holidayCutoffs": [
                {
                  "deadlineDate": "",
                  "deadlineHour": 0,
                  "deadlineTimezone": "",
                  "holidayId": "",
                  "visibleFromDate": ""
                }
              ],
              "maxHandlingTimeInDays": 0,
              "maxTransitTimeInDays": 0,
              "minHandlingTimeInDays": 0,
              "minTransitTimeInDays": 0,
              "transitBusinessDayConfig": {},
              "transitTimeTable": {
                "postalCodeGroupNames": [],
                "rows": [
                  {
                    "values": [
                      {
                        "maxTransitTimeInDays": 0,
                        "minTransitTimeInDays": 0
                      }
                    ]
                  }
                ],
                "transitTimeLabels": []
              },
              "warehouseBasedDeliveryTimes": [
                {
                  "carrier": "",
                  "carrierService": "",
                  "originAdministrativeArea": "",
                  "originCity": "",
                  "originCountry": "",
                  "originPostalCode": "",
                  "originStreetAddress": "",
                  "warehouseName": ""
                }
              ]
            },
            "eligibility": "",
            "minimumOrderValue": {
              "currency": "",
              "value": ""
            },
            "minimumOrderValueTable": {
              "storeCodeSetWithMovs": [
                {
                  "storeCodes": [],
                  "value": {}
                }
              ]
            },
            "name": "",
            "pickupService": {
              "carrierName": "",
              "serviceName": ""
            },
            "rateGroups": [
              {
                "applicableShippingLabels": [],
                "carrierRates": [
                  {
                    "carrierName": "",
                    "carrierService": "",
                    "flatAdjustment": {},
                    "name": "",
                    "originPostalCode": "",
                    "percentageAdjustment": ""
                  }
                ],
                "mainTable": {
                  "columnHeaders": {
                    "locations": [
                      {
                        "locationIds": []
                      }
                    ],
                    "numberOfItems": [],
                    "postalCodeGroupNames": [],
                    "prices": [
                      {}
                    ],
                    "weights": [
                      {
                        "unit": "",
                        "value": ""
                      }
                    ]
                  },
                  "name": "",
                  "rowHeaders": {},
                  "rows": [
                    {
                      "cells": [
                        {
                          "carrierRateName": "",
                          "flatRate": {},
                          "noShipping": false,
                          "pricePercentage": "",
                          "subtableName": ""
                        }
                      ]
                    }
                  ]
                },
                "name": "",
                "singleValue": {},
                "subtables": [
                  {}
                ]
              }
            ],
            "shipmentType": ""
          }
        ],
        "warehouses": [
          {
            "businessDayConfig": {},
            "cutoffTime": {
              "hour": 0,
              "minute": 0
            },
            "handlingDays": "",
            "name": "",
            "shippingAddress": {
              "administrativeArea": "",
              "city": "",
              "country": "",
              "postalCode": "",
              "streetAddress": ""
            }
          }
        ]
      }
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/shippingsettings/batch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "shippingSettings": {
        "accountId": "",
        "postalCodeGroups": [
          {
            "country": "",
            "name": "",
            "postalCodeRanges": [
              {
                "postalCodeRangeBegin": "",
                "postalCodeRangeEnd": ""
              }
            ]
          }
        ],
        "services": [
          {
            "active": false,
            "currency": "",
            "deliveryCountry": "",
            "deliveryTime": {
              "cutoffTime": {
                "hour": 0,
                "minute": 0,
                "timezone": ""
              },
              "handlingBusinessDayConfig": {
                "businessDays": []
              },
              "holidayCutoffs": [
                {
                  "deadlineDate": "",
                  "deadlineHour": 0,
                  "deadlineTimezone": "",
                  "holidayId": "",
                  "visibleFromDate": ""
                }
              ],
              "maxHandlingTimeInDays": 0,
              "maxTransitTimeInDays": 0,
              "minHandlingTimeInDays": 0,
              "minTransitTimeInDays": 0,
              "transitBusinessDayConfig": {},
              "transitTimeTable": {
                "postalCodeGroupNames": [],
                "rows": [
                  {
                    "values": [
                      {
                        "maxTransitTimeInDays": 0,
                        "minTransitTimeInDays": 0
                      }
                    ]
                  }
                ],
                "transitTimeLabels": []
              },
              "warehouseBasedDeliveryTimes": [
                {
                  "carrier": "",
                  "carrierService": "",
                  "originAdministrativeArea": "",
                  "originCity": "",
                  "originCountry": "",
                  "originPostalCode": "",
                  "originStreetAddress": "",
                  "warehouseName": ""
                }
              ]
            },
            "eligibility": "",
            "minimumOrderValue": {
              "currency": "",
              "value": ""
            },
            "minimumOrderValueTable": {
              "storeCodeSetWithMovs": [
                {
                  "storeCodes": [],
                  "value": {}
                }
              ]
            },
            "name": "",
            "pickupService": {
              "carrierName": "",
              "serviceName": ""
            },
            "rateGroups": [
              {
                "applicableShippingLabels": [],
                "carrierRates": [
                  {
                    "carrierName": "",
                    "carrierService": "",
                    "flatAdjustment": {},
                    "name": "",
                    "originPostalCode": "",
                    "percentageAdjustment": ""
                  }
                ],
                "mainTable": {
                  "columnHeaders": {
                    "locations": [
                      {
                        "locationIds": []
                      }
                    ],
                    "numberOfItems": [],
                    "postalCodeGroupNames": [],
                    "prices": [
                      {}
                    ],
                    "weights": [
                      {
                        "unit": "",
                        "value": ""
                      }
                    ]
                  },
                  "name": "",
                  "rowHeaders": {},
                  "rows": [
                    {
                      "cells": [
                        {
                          "carrierRateName": "",
                          "flatRate": {},
                          "noShipping": false,
                          "pricePercentage": "",
                          "subtableName": ""
                        }
                      ]
                    }
                  ]
                },
                "name": "",
                "singleValue": {},
                "subtables": [
                  {}
                ]
              }
            ],
            "shipmentType": ""
          }
        ],
        "warehouses": [
          {
            "businessDayConfig": {},
            "cutoffTime": {
              "hour": 0,
              "minute": 0
            },
            "handlingDays": "",
            "name": "",
            "shippingAddress": {
              "administrativeArea": "",
              "city": "",
              "country": "",
              "postalCode": "",
              "streetAddress": ""
            }
          }
        ]
      }
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/shippingsettings/batch", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/shippingsettings/batch"

payload = { "entries": [
        {
            "accountId": "",
            "batchId": 0,
            "merchantId": "",
            "method": "",
            "shippingSettings": {
                "accountId": "",
                "postalCodeGroups": [
                    {
                        "country": "",
                        "name": "",
                        "postalCodeRanges": [
                            {
                                "postalCodeRangeBegin": "",
                                "postalCodeRangeEnd": ""
                            }
                        ]
                    }
                ],
                "services": [
                    {
                        "active": False,
                        "currency": "",
                        "deliveryCountry": "",
                        "deliveryTime": {
                            "cutoffTime": {
                                "hour": 0,
                                "minute": 0,
                                "timezone": ""
                            },
                            "handlingBusinessDayConfig": { "businessDays": [] },
                            "holidayCutoffs": [
                                {
                                    "deadlineDate": "",
                                    "deadlineHour": 0,
                                    "deadlineTimezone": "",
                                    "holidayId": "",
                                    "visibleFromDate": ""
                                }
                            ],
                            "maxHandlingTimeInDays": 0,
                            "maxTransitTimeInDays": 0,
                            "minHandlingTimeInDays": 0,
                            "minTransitTimeInDays": 0,
                            "transitBusinessDayConfig": {},
                            "transitTimeTable": {
                                "postalCodeGroupNames": [],
                                "rows": [{ "values": [
                                            {
                                                "maxTransitTimeInDays": 0,
                                                "minTransitTimeInDays": 0
                                            }
                                        ] }],
                                "transitTimeLabels": []
                            },
                            "warehouseBasedDeliveryTimes": [
                                {
                                    "carrier": "",
                                    "carrierService": "",
                                    "originAdministrativeArea": "",
                                    "originCity": "",
                                    "originCountry": "",
                                    "originPostalCode": "",
                                    "originStreetAddress": "",
                                    "warehouseName": ""
                                }
                            ]
                        },
                        "eligibility": "",
                        "minimumOrderValue": {
                            "currency": "",
                            "value": ""
                        },
                        "minimumOrderValueTable": { "storeCodeSetWithMovs": [
                                {
                                    "storeCodes": [],
                                    "value": {}
                                }
                            ] },
                        "name": "",
                        "pickupService": {
                            "carrierName": "",
                            "serviceName": ""
                        },
                        "rateGroups": [
                            {
                                "applicableShippingLabels": [],
                                "carrierRates": [
                                    {
                                        "carrierName": "",
                                        "carrierService": "",
                                        "flatAdjustment": {},
                                        "name": "",
                                        "originPostalCode": "",
                                        "percentageAdjustment": ""
                                    }
                                ],
                                "mainTable": {
                                    "columnHeaders": {
                                        "locations": [{ "locationIds": [] }],
                                        "numberOfItems": [],
                                        "postalCodeGroupNames": [],
                                        "prices": [{}],
                                        "weights": [
                                            {
                                                "unit": "",
                                                "value": ""
                                            }
                                        ]
                                    },
                                    "name": "",
                                    "rowHeaders": {},
                                    "rows": [{ "cells": [
                                                {
                                                    "carrierRateName": "",
                                                    "flatRate": {},
                                                    "noShipping": False,
                                                    "pricePercentage": "",
                                                    "subtableName": ""
                                                }
                                            ] }]
                                },
                                "name": "",
                                "singleValue": {},
                                "subtables": [{}]
                            }
                        ],
                        "shipmentType": ""
                    }
                ],
                "warehouses": [
                    {
                        "businessDayConfig": {},
                        "cutoffTime": {
                            "hour": 0,
                            "minute": 0
                        },
                        "handlingDays": "",
                        "name": "",
                        "shippingAddress": {
                            "administrativeArea": "",
                            "city": "",
                            "country": "",
                            "postalCode": "",
                            "streetAddress": ""
                        }
                    }
                ]
            }
        }
    ] }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/shippingsettings/batch"

payload <- "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/shippingsettings/batch")

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  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/shippingsettings/batch') do |req|
  req.body = "{\n  \"entries\": [\n    {\n      \"accountId\": \"\",\n      \"batchId\": 0,\n      \"merchantId\": \"\",\n      \"method\": \"\",\n      \"shippingSettings\": {\n        \"accountId\": \"\",\n        \"postalCodeGroups\": [\n          {\n            \"country\": \"\",\n            \"name\": \"\",\n            \"postalCodeRanges\": [\n              {\n                \"postalCodeRangeBegin\": \"\",\n                \"postalCodeRangeEnd\": \"\"\n              }\n            ]\n          }\n        ],\n        \"services\": [\n          {\n            \"active\": false,\n            \"currency\": \"\",\n            \"deliveryCountry\": \"\",\n            \"deliveryTime\": {\n              \"cutoffTime\": {\n                \"hour\": 0,\n                \"minute\": 0,\n                \"timezone\": \"\"\n              },\n              \"handlingBusinessDayConfig\": {\n                \"businessDays\": []\n              },\n              \"holidayCutoffs\": [\n                {\n                  \"deadlineDate\": \"\",\n                  \"deadlineHour\": 0,\n                  \"deadlineTimezone\": \"\",\n                  \"holidayId\": \"\",\n                  \"visibleFromDate\": \"\"\n                }\n              ],\n              \"maxHandlingTimeInDays\": 0,\n              \"maxTransitTimeInDays\": 0,\n              \"minHandlingTimeInDays\": 0,\n              \"minTransitTimeInDays\": 0,\n              \"transitBusinessDayConfig\": {},\n              \"transitTimeTable\": {\n                \"postalCodeGroupNames\": [],\n                \"rows\": [\n                  {\n                    \"values\": [\n                      {\n                        \"maxTransitTimeInDays\": 0,\n                        \"minTransitTimeInDays\": 0\n                      }\n                    ]\n                  }\n                ],\n                \"transitTimeLabels\": []\n              },\n              \"warehouseBasedDeliveryTimes\": [\n                {\n                  \"carrier\": \"\",\n                  \"carrierService\": \"\",\n                  \"originAdministrativeArea\": \"\",\n                  \"originCity\": \"\",\n                  \"originCountry\": \"\",\n                  \"originPostalCode\": \"\",\n                  \"originStreetAddress\": \"\",\n                  \"warehouseName\": \"\"\n                }\n              ]\n            },\n            \"eligibility\": \"\",\n            \"minimumOrderValue\": {\n              \"currency\": \"\",\n              \"value\": \"\"\n            },\n            \"minimumOrderValueTable\": {\n              \"storeCodeSetWithMovs\": [\n                {\n                  \"storeCodes\": [],\n                  \"value\": {}\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"pickupService\": {\n              \"carrierName\": \"\",\n              \"serviceName\": \"\"\n            },\n            \"rateGroups\": [\n              {\n                \"applicableShippingLabels\": [],\n                \"carrierRates\": [\n                  {\n                    \"carrierName\": \"\",\n                    \"carrierService\": \"\",\n                    \"flatAdjustment\": {},\n                    \"name\": \"\",\n                    \"originPostalCode\": \"\",\n                    \"percentageAdjustment\": \"\"\n                  }\n                ],\n                \"mainTable\": {\n                  \"columnHeaders\": {\n                    \"locations\": [\n                      {\n                        \"locationIds\": []\n                      }\n                    ],\n                    \"numberOfItems\": [],\n                    \"postalCodeGroupNames\": [],\n                    \"prices\": [\n                      {}\n                    ],\n                    \"weights\": [\n                      {\n                        \"unit\": \"\",\n                        \"value\": \"\"\n                      }\n                    ]\n                  },\n                  \"name\": \"\",\n                  \"rowHeaders\": {},\n                  \"rows\": [\n                    {\n                      \"cells\": [\n                        {\n                          \"carrierRateName\": \"\",\n                          \"flatRate\": {},\n                          \"noShipping\": false,\n                          \"pricePercentage\": \"\",\n                          \"subtableName\": \"\"\n                        }\n                      ]\n                    }\n                  ]\n                },\n                \"name\": \"\",\n                \"singleValue\": {},\n                \"subtables\": [\n                  {}\n                ]\n              }\n            ],\n            \"shipmentType\": \"\"\n          }\n        ],\n        \"warehouses\": [\n          {\n            \"businessDayConfig\": {},\n            \"cutoffTime\": {\n              \"hour\": 0,\n              \"minute\": 0\n            },\n            \"handlingDays\": \"\",\n            \"name\": \"\",\n            \"shippingAddress\": {\n              \"administrativeArea\": \"\",\n              \"city\": \"\",\n              \"country\": \"\",\n              \"postalCode\": \"\",\n              \"streetAddress\": \"\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/shippingsettings/batch";

    let payload = json!({"entries": (
            json!({
                "accountId": "",
                "batchId": 0,
                "merchantId": "",
                "method": "",
                "shippingSettings": json!({
                    "accountId": "",
                    "postalCodeGroups": (
                        json!({
                            "country": "",
                            "name": "",
                            "postalCodeRanges": (
                                json!({
                                    "postalCodeRangeBegin": "",
                                    "postalCodeRangeEnd": ""
                                })
                            )
                        })
                    ),
                    "services": (
                        json!({
                            "active": false,
                            "currency": "",
                            "deliveryCountry": "",
                            "deliveryTime": json!({
                                "cutoffTime": json!({
                                    "hour": 0,
                                    "minute": 0,
                                    "timezone": ""
                                }),
                                "handlingBusinessDayConfig": json!({"businessDays": ()}),
                                "holidayCutoffs": (
                                    json!({
                                        "deadlineDate": "",
                                        "deadlineHour": 0,
                                        "deadlineTimezone": "",
                                        "holidayId": "",
                                        "visibleFromDate": ""
                                    })
                                ),
                                "maxHandlingTimeInDays": 0,
                                "maxTransitTimeInDays": 0,
                                "minHandlingTimeInDays": 0,
                                "minTransitTimeInDays": 0,
                                "transitBusinessDayConfig": json!({}),
                                "transitTimeTable": json!({
                                    "postalCodeGroupNames": (),
                                    "rows": (json!({"values": (
                                                json!({
                                                    "maxTransitTimeInDays": 0,
                                                    "minTransitTimeInDays": 0
                                                })
                                            )})),
                                    "transitTimeLabels": ()
                                }),
                                "warehouseBasedDeliveryTimes": (
                                    json!({
                                        "carrier": "",
                                        "carrierService": "",
                                        "originAdministrativeArea": "",
                                        "originCity": "",
                                        "originCountry": "",
                                        "originPostalCode": "",
                                        "originStreetAddress": "",
                                        "warehouseName": ""
                                    })
                                )
                            }),
                            "eligibility": "",
                            "minimumOrderValue": json!({
                                "currency": "",
                                "value": ""
                            }),
                            "minimumOrderValueTable": json!({"storeCodeSetWithMovs": (
                                    json!({
                                        "storeCodes": (),
                                        "value": json!({})
                                    })
                                )}),
                            "name": "",
                            "pickupService": json!({
                                "carrierName": "",
                                "serviceName": ""
                            }),
                            "rateGroups": (
                                json!({
                                    "applicableShippingLabels": (),
                                    "carrierRates": (
                                        json!({
                                            "carrierName": "",
                                            "carrierService": "",
                                            "flatAdjustment": json!({}),
                                            "name": "",
                                            "originPostalCode": "",
                                            "percentageAdjustment": ""
                                        })
                                    ),
                                    "mainTable": json!({
                                        "columnHeaders": json!({
                                            "locations": (json!({"locationIds": ()})),
                                            "numberOfItems": (),
                                            "postalCodeGroupNames": (),
                                            "prices": (json!({})),
                                            "weights": (
                                                json!({
                                                    "unit": "",
                                                    "value": ""
                                                })
                                            )
                                        }),
                                        "name": "",
                                        "rowHeaders": json!({}),
                                        "rows": (json!({"cells": (
                                                    json!({
                                                        "carrierRateName": "",
                                                        "flatRate": json!({}),
                                                        "noShipping": false,
                                                        "pricePercentage": "",
                                                        "subtableName": ""
                                                    })
                                                )}))
                                    }),
                                    "name": "",
                                    "singleValue": json!({}),
                                    "subtables": (json!({}))
                                })
                            ),
                            "shipmentType": ""
                        })
                    ),
                    "warehouses": (
                        json!({
                            "businessDayConfig": json!({}),
                            "cutoffTime": json!({
                                "hour": 0,
                                "minute": 0
                            }),
                            "handlingDays": "",
                            "name": "",
                            "shippingAddress": json!({
                                "administrativeArea": "",
                                "city": "",
                                "country": "",
                                "postalCode": "",
                                "streetAddress": ""
                            })
                        })
                    )
                })
            })
        )});

    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}}/shippingsettings/batch \
  --header 'content-type: application/json' \
  --data '{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "shippingSettings": {
        "accountId": "",
        "postalCodeGroups": [
          {
            "country": "",
            "name": "",
            "postalCodeRanges": [
              {
                "postalCodeRangeBegin": "",
                "postalCodeRangeEnd": ""
              }
            ]
          }
        ],
        "services": [
          {
            "active": false,
            "currency": "",
            "deliveryCountry": "",
            "deliveryTime": {
              "cutoffTime": {
                "hour": 0,
                "minute": 0,
                "timezone": ""
              },
              "handlingBusinessDayConfig": {
                "businessDays": []
              },
              "holidayCutoffs": [
                {
                  "deadlineDate": "",
                  "deadlineHour": 0,
                  "deadlineTimezone": "",
                  "holidayId": "",
                  "visibleFromDate": ""
                }
              ],
              "maxHandlingTimeInDays": 0,
              "maxTransitTimeInDays": 0,
              "minHandlingTimeInDays": 0,
              "minTransitTimeInDays": 0,
              "transitBusinessDayConfig": {},
              "transitTimeTable": {
                "postalCodeGroupNames": [],
                "rows": [
                  {
                    "values": [
                      {
                        "maxTransitTimeInDays": 0,
                        "minTransitTimeInDays": 0
                      }
                    ]
                  }
                ],
                "transitTimeLabels": []
              },
              "warehouseBasedDeliveryTimes": [
                {
                  "carrier": "",
                  "carrierService": "",
                  "originAdministrativeArea": "",
                  "originCity": "",
                  "originCountry": "",
                  "originPostalCode": "",
                  "originStreetAddress": "",
                  "warehouseName": ""
                }
              ]
            },
            "eligibility": "",
            "minimumOrderValue": {
              "currency": "",
              "value": ""
            },
            "minimumOrderValueTable": {
              "storeCodeSetWithMovs": [
                {
                  "storeCodes": [],
                  "value": {}
                }
              ]
            },
            "name": "",
            "pickupService": {
              "carrierName": "",
              "serviceName": ""
            },
            "rateGroups": [
              {
                "applicableShippingLabels": [],
                "carrierRates": [
                  {
                    "carrierName": "",
                    "carrierService": "",
                    "flatAdjustment": {},
                    "name": "",
                    "originPostalCode": "",
                    "percentageAdjustment": ""
                  }
                ],
                "mainTable": {
                  "columnHeaders": {
                    "locations": [
                      {
                        "locationIds": []
                      }
                    ],
                    "numberOfItems": [],
                    "postalCodeGroupNames": [],
                    "prices": [
                      {}
                    ],
                    "weights": [
                      {
                        "unit": "",
                        "value": ""
                      }
                    ]
                  },
                  "name": "",
                  "rowHeaders": {},
                  "rows": [
                    {
                      "cells": [
                        {
                          "carrierRateName": "",
                          "flatRate": {},
                          "noShipping": false,
                          "pricePercentage": "",
                          "subtableName": ""
                        }
                      ]
                    }
                  ]
                },
                "name": "",
                "singleValue": {},
                "subtables": [
                  {}
                ]
              }
            ],
            "shipmentType": ""
          }
        ],
        "warehouses": [
          {
            "businessDayConfig": {},
            "cutoffTime": {
              "hour": 0,
              "minute": 0
            },
            "handlingDays": "",
            "name": "",
            "shippingAddress": {
              "administrativeArea": "",
              "city": "",
              "country": "",
              "postalCode": "",
              "streetAddress": ""
            }
          }
        ]
      }
    }
  ]
}'
echo '{
  "entries": [
    {
      "accountId": "",
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "shippingSettings": {
        "accountId": "",
        "postalCodeGroups": [
          {
            "country": "",
            "name": "",
            "postalCodeRanges": [
              {
                "postalCodeRangeBegin": "",
                "postalCodeRangeEnd": ""
              }
            ]
          }
        ],
        "services": [
          {
            "active": false,
            "currency": "",
            "deliveryCountry": "",
            "deliveryTime": {
              "cutoffTime": {
                "hour": 0,
                "minute": 0,
                "timezone": ""
              },
              "handlingBusinessDayConfig": {
                "businessDays": []
              },
              "holidayCutoffs": [
                {
                  "deadlineDate": "",
                  "deadlineHour": 0,
                  "deadlineTimezone": "",
                  "holidayId": "",
                  "visibleFromDate": ""
                }
              ],
              "maxHandlingTimeInDays": 0,
              "maxTransitTimeInDays": 0,
              "minHandlingTimeInDays": 0,
              "minTransitTimeInDays": 0,
              "transitBusinessDayConfig": {},
              "transitTimeTable": {
                "postalCodeGroupNames": [],
                "rows": [
                  {
                    "values": [
                      {
                        "maxTransitTimeInDays": 0,
                        "minTransitTimeInDays": 0
                      }
                    ]
                  }
                ],
                "transitTimeLabels": []
              },
              "warehouseBasedDeliveryTimes": [
                {
                  "carrier": "",
                  "carrierService": "",
                  "originAdministrativeArea": "",
                  "originCity": "",
                  "originCountry": "",
                  "originPostalCode": "",
                  "originStreetAddress": "",
                  "warehouseName": ""
                }
              ]
            },
            "eligibility": "",
            "minimumOrderValue": {
              "currency": "",
              "value": ""
            },
            "minimumOrderValueTable": {
              "storeCodeSetWithMovs": [
                {
                  "storeCodes": [],
                  "value": {}
                }
              ]
            },
            "name": "",
            "pickupService": {
              "carrierName": "",
              "serviceName": ""
            },
            "rateGroups": [
              {
                "applicableShippingLabels": [],
                "carrierRates": [
                  {
                    "carrierName": "",
                    "carrierService": "",
                    "flatAdjustment": {},
                    "name": "",
                    "originPostalCode": "",
                    "percentageAdjustment": ""
                  }
                ],
                "mainTable": {
                  "columnHeaders": {
                    "locations": [
                      {
                        "locationIds": []
                      }
                    ],
                    "numberOfItems": [],
                    "postalCodeGroupNames": [],
                    "prices": [
                      {}
                    ],
                    "weights": [
                      {
                        "unit": "",
                        "value": ""
                      }
                    ]
                  },
                  "name": "",
                  "rowHeaders": {},
                  "rows": [
                    {
                      "cells": [
                        {
                          "carrierRateName": "",
                          "flatRate": {},
                          "noShipping": false,
                          "pricePercentage": "",
                          "subtableName": ""
                        }
                      ]
                    }
                  ]
                },
                "name": "",
                "singleValue": {},
                "subtables": [
                  {}
                ]
              }
            ],
            "shipmentType": ""
          }
        ],
        "warehouses": [
          {
            "businessDayConfig": {},
            "cutoffTime": {
              "hour": 0,
              "minute": 0
            },
            "handlingDays": "",
            "name": "",
            "shippingAddress": {
              "administrativeArea": "",
              "city": "",
              "country": "",
              "postalCode": "",
              "streetAddress": ""
            }
          }
        ]
      }
    }
  ]
}' |  \
  http POST {{baseUrl}}/shippingsettings/batch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "entries": [\n    {\n      "accountId": "",\n      "batchId": 0,\n      "merchantId": "",\n      "method": "",\n      "shippingSettings": {\n        "accountId": "",\n        "postalCodeGroups": [\n          {\n            "country": "",\n            "name": "",\n            "postalCodeRanges": [\n              {\n                "postalCodeRangeBegin": "",\n                "postalCodeRangeEnd": ""\n              }\n            ]\n          }\n        ],\n        "services": [\n          {\n            "active": false,\n            "currency": "",\n            "deliveryCountry": "",\n            "deliveryTime": {\n              "cutoffTime": {\n                "hour": 0,\n                "minute": 0,\n                "timezone": ""\n              },\n              "handlingBusinessDayConfig": {\n                "businessDays": []\n              },\n              "holidayCutoffs": [\n                {\n                  "deadlineDate": "",\n                  "deadlineHour": 0,\n                  "deadlineTimezone": "",\n                  "holidayId": "",\n                  "visibleFromDate": ""\n                }\n              ],\n              "maxHandlingTimeInDays": 0,\n              "maxTransitTimeInDays": 0,\n              "minHandlingTimeInDays": 0,\n              "minTransitTimeInDays": 0,\n              "transitBusinessDayConfig": {},\n              "transitTimeTable": {\n                "postalCodeGroupNames": [],\n                "rows": [\n                  {\n                    "values": [\n                      {\n                        "maxTransitTimeInDays": 0,\n                        "minTransitTimeInDays": 0\n                      }\n                    ]\n                  }\n                ],\n                "transitTimeLabels": []\n              },\n              "warehouseBasedDeliveryTimes": [\n                {\n                  "carrier": "",\n                  "carrierService": "",\n                  "originAdministrativeArea": "",\n                  "originCity": "",\n                  "originCountry": "",\n                  "originPostalCode": "",\n                  "originStreetAddress": "",\n                  "warehouseName": ""\n                }\n              ]\n            },\n            "eligibility": "",\n            "minimumOrderValue": {\n              "currency": "",\n              "value": ""\n            },\n            "minimumOrderValueTable": {\n              "storeCodeSetWithMovs": [\n                {\n                  "storeCodes": [],\n                  "value": {}\n                }\n              ]\n            },\n            "name": "",\n            "pickupService": {\n              "carrierName": "",\n              "serviceName": ""\n            },\n            "rateGroups": [\n              {\n                "applicableShippingLabels": [],\n                "carrierRates": [\n                  {\n                    "carrierName": "",\n                    "carrierService": "",\n                    "flatAdjustment": {},\n                    "name": "",\n                    "originPostalCode": "",\n                    "percentageAdjustment": ""\n                  }\n                ],\n                "mainTable": {\n                  "columnHeaders": {\n                    "locations": [\n                      {\n                        "locationIds": []\n                      }\n                    ],\n                    "numberOfItems": [],\n                    "postalCodeGroupNames": [],\n                    "prices": [\n                      {}\n                    ],\n                    "weights": [\n                      {\n                        "unit": "",\n                        "value": ""\n                      }\n                    ]\n                  },\n                  "name": "",\n                  "rowHeaders": {},\n                  "rows": [\n                    {\n                      "cells": [\n                        {\n                          "carrierRateName": "",\n                          "flatRate": {},\n                          "noShipping": false,\n                          "pricePercentage": "",\n                          "subtableName": ""\n                        }\n                      ]\n                    }\n                  ]\n                },\n                "name": "",\n                "singleValue": {},\n                "subtables": [\n                  {}\n                ]\n              }\n            ],\n            "shipmentType": ""\n          }\n        ],\n        "warehouses": [\n          {\n            "businessDayConfig": {},\n            "cutoffTime": {\n              "hour": 0,\n              "minute": 0\n            },\n            "handlingDays": "",\n            "name": "",\n            "shippingAddress": {\n              "administrativeArea": "",\n              "city": "",\n              "country": "",\n              "postalCode": "",\n              "streetAddress": ""\n            }\n          }\n        ]\n      }\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/shippingsettings/batch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["entries": [
    [
      "accountId": "",
      "batchId": 0,
      "merchantId": "",
      "method": "",
      "shippingSettings": [
        "accountId": "",
        "postalCodeGroups": [
          [
            "country": "",
            "name": "",
            "postalCodeRanges": [
              [
                "postalCodeRangeBegin": "",
                "postalCodeRangeEnd": ""
              ]
            ]
          ]
        ],
        "services": [
          [
            "active": false,
            "currency": "",
            "deliveryCountry": "",
            "deliveryTime": [
              "cutoffTime": [
                "hour": 0,
                "minute": 0,
                "timezone": ""
              ],
              "handlingBusinessDayConfig": ["businessDays": []],
              "holidayCutoffs": [
                [
                  "deadlineDate": "",
                  "deadlineHour": 0,
                  "deadlineTimezone": "",
                  "holidayId": "",
                  "visibleFromDate": ""
                ]
              ],
              "maxHandlingTimeInDays": 0,
              "maxTransitTimeInDays": 0,
              "minHandlingTimeInDays": 0,
              "minTransitTimeInDays": 0,
              "transitBusinessDayConfig": [],
              "transitTimeTable": [
                "postalCodeGroupNames": [],
                "rows": [["values": [
                      [
                        "maxTransitTimeInDays": 0,
                        "minTransitTimeInDays": 0
                      ]
                    ]]],
                "transitTimeLabels": []
              ],
              "warehouseBasedDeliveryTimes": [
                [
                  "carrier": "",
                  "carrierService": "",
                  "originAdministrativeArea": "",
                  "originCity": "",
                  "originCountry": "",
                  "originPostalCode": "",
                  "originStreetAddress": "",
                  "warehouseName": ""
                ]
              ]
            ],
            "eligibility": "",
            "minimumOrderValue": [
              "currency": "",
              "value": ""
            ],
            "minimumOrderValueTable": ["storeCodeSetWithMovs": [
                [
                  "storeCodes": [],
                  "value": []
                ]
              ]],
            "name": "",
            "pickupService": [
              "carrierName": "",
              "serviceName": ""
            ],
            "rateGroups": [
              [
                "applicableShippingLabels": [],
                "carrierRates": [
                  [
                    "carrierName": "",
                    "carrierService": "",
                    "flatAdjustment": [],
                    "name": "",
                    "originPostalCode": "",
                    "percentageAdjustment": ""
                  ]
                ],
                "mainTable": [
                  "columnHeaders": [
                    "locations": [["locationIds": []]],
                    "numberOfItems": [],
                    "postalCodeGroupNames": [],
                    "prices": [[]],
                    "weights": [
                      [
                        "unit": "",
                        "value": ""
                      ]
                    ]
                  ],
                  "name": "",
                  "rowHeaders": [],
                  "rows": [["cells": [
                        [
                          "carrierRateName": "",
                          "flatRate": [],
                          "noShipping": false,
                          "pricePercentage": "",
                          "subtableName": ""
                        ]
                      ]]]
                ],
                "name": "",
                "singleValue": [],
                "subtables": [[]]
              ]
            ],
            "shipmentType": ""
          ]
        ],
        "warehouses": [
          [
            "businessDayConfig": [],
            "cutoffTime": [
              "hour": 0,
              "minute": 0
            ],
            "handlingDays": "",
            "name": "",
            "shippingAddress": [
              "administrativeArea": "",
              "city": "",
              "country": "",
              "postalCode": "",
              "streetAddress": ""
            ]
          ]
        ]
      ]
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/shippingsettings/batch")! 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()
GET content.shippingsettings.get
{{baseUrl}}/:merchantId/shippingsettings/:accountId
QUERY PARAMS

merchantId
accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/shippingsettings/:accountId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/shippingsettings/:accountId")
require "http/client"

url = "{{baseUrl}}/:merchantId/shippingsettings/:accountId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/shippingsettings/:accountId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/shippingsettings/:accountId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/shippingsettings/:accountId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/shippingsettings/:accountId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/shippingsettings/:accountId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/shippingsettings/:accountId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/shippingsettings/:accountId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/shippingsettings/:accountId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/shippingsettings/:accountId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/shippingsettings/:accountId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/shippingsettings/:accountId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/shippingsettings/:accountId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/shippingsettings/:accountId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/shippingsettings/:accountId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/shippingsettings/:accountId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/shippingsettings/:accountId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/shippingsettings/:accountId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/shippingsettings/:accountId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/shippingsettings/:accountId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/shippingsettings/:accountId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/shippingsettings/:accountId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/shippingsettings/:accountId');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/shippingsettings/:accountId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/shippingsettings/:accountId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/shippingsettings/:accountId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/shippingsettings/:accountId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/shippingsettings/:accountId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/shippingsettings/:accountId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/shippingsettings/:accountId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/shippingsettings/:accountId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/shippingsettings/:accountId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/shippingsettings/:accountId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/shippingsettings/:accountId
http GET {{baseUrl}}/:merchantId/shippingsettings/:accountId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/shippingsettings/:accountId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/shippingsettings/:accountId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.shippingsettings.getsupportedcarriers
{{baseUrl}}/:merchantId/supportedCarriers
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/supportedCarriers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/supportedCarriers")
require "http/client"

url = "{{baseUrl}}/:merchantId/supportedCarriers"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/supportedCarriers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/supportedCarriers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/supportedCarriers"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/supportedCarriers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/supportedCarriers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/supportedCarriers"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/supportedCarriers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/supportedCarriers")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/supportedCarriers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/supportedCarriers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/supportedCarriers';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/supportedCarriers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/supportedCarriers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/supportedCarriers',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/supportedCarriers'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/supportedCarriers');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/supportedCarriers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/supportedCarriers';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/supportedCarriers"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/supportedCarriers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/supportedCarriers",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/supportedCarriers');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/supportedCarriers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/supportedCarriers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/supportedCarriers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/supportedCarriers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/supportedCarriers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/supportedCarriers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/supportedCarriers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/supportedCarriers")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/supportedCarriers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/supportedCarriers";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/supportedCarriers
http GET {{baseUrl}}/:merchantId/supportedCarriers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/supportedCarriers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/supportedCarriers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.shippingsettings.getsupportedholidays
{{baseUrl}}/:merchantId/supportedHolidays
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/supportedHolidays");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/supportedHolidays")
require "http/client"

url = "{{baseUrl}}/:merchantId/supportedHolidays"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/supportedHolidays"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/supportedHolidays");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/supportedHolidays"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/supportedHolidays HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/supportedHolidays")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/supportedHolidays"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/supportedHolidays")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/supportedHolidays")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/supportedHolidays');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/supportedHolidays'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/supportedHolidays';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/supportedHolidays',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/supportedHolidays")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/supportedHolidays',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/supportedHolidays'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/supportedHolidays');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/supportedHolidays'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/supportedHolidays';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/supportedHolidays"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/supportedHolidays" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/supportedHolidays",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/supportedHolidays');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/supportedHolidays');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/supportedHolidays');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/supportedHolidays' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/supportedHolidays' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/supportedHolidays")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/supportedHolidays"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/supportedHolidays"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/supportedHolidays")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/supportedHolidays') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/supportedHolidays";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/supportedHolidays
http GET {{baseUrl}}/:merchantId/supportedHolidays
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/supportedHolidays
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/supportedHolidays")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.shippingsettings.getsupportedpickupservices
{{baseUrl}}/:merchantId/supportedPickupServices
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/supportedPickupServices");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/supportedPickupServices")
require "http/client"

url = "{{baseUrl}}/:merchantId/supportedPickupServices"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/supportedPickupServices"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/supportedPickupServices");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/supportedPickupServices"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/supportedPickupServices HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/supportedPickupServices")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/supportedPickupServices"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/supportedPickupServices")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/supportedPickupServices")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/supportedPickupServices');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/supportedPickupServices'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/supportedPickupServices';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/supportedPickupServices',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/supportedPickupServices")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/supportedPickupServices',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/supportedPickupServices'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/supportedPickupServices');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:merchantId/supportedPickupServices'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/supportedPickupServices';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/supportedPickupServices"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/supportedPickupServices" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/supportedPickupServices",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/supportedPickupServices');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/supportedPickupServices');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/supportedPickupServices');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/supportedPickupServices' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/supportedPickupServices' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/supportedPickupServices")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/supportedPickupServices"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/supportedPickupServices"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/supportedPickupServices")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/supportedPickupServices') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/supportedPickupServices";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/supportedPickupServices
http GET {{baseUrl}}/:merchantId/supportedPickupServices
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/supportedPickupServices
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/supportedPickupServices")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET content.shippingsettings.list
{{baseUrl}}/:merchantId/shippingsettings
QUERY PARAMS

merchantId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/shippingsettings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:merchantId/shippingsettings")
require "http/client"

url = "{{baseUrl}}/:merchantId/shippingsettings"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/shippingsettings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/shippingsettings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/shippingsettings"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:merchantId/shippingsettings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:merchantId/shippingsettings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/shippingsettings"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/shippingsettings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:merchantId/shippingsettings")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:merchantId/shippingsettings');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/shippingsettings'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/shippingsettings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:merchantId/shippingsettings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/shippingsettings")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/shippingsettings',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/shippingsettings'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:merchantId/shippingsettings');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/:merchantId/shippingsettings'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/shippingsettings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/shippingsettings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/shippingsettings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/shippingsettings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:merchantId/shippingsettings');

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/shippingsettings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:merchantId/shippingsettings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/shippingsettings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/shippingsettings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:merchantId/shippingsettings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/shippingsettings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/shippingsettings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/shippingsettings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:merchantId/shippingsettings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/shippingsettings";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/:merchantId/shippingsettings
http GET {{baseUrl}}/:merchantId/shippingsettings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:merchantId/shippingsettings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/shippingsettings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT content.shippingsettings.update
{{baseUrl}}/:merchantId/shippingsettings/:accountId
QUERY PARAMS

merchantId
accountId
BODY json

{
  "accountId": "",
  "postalCodeGroups": [
    {
      "country": "",
      "name": "",
      "postalCodeRanges": [
        {
          "postalCodeRangeBegin": "",
          "postalCodeRangeEnd": ""
        }
      ]
    }
  ],
  "services": [
    {
      "active": false,
      "currency": "",
      "deliveryCountry": "",
      "deliveryTime": {
        "cutoffTime": {
          "hour": 0,
          "minute": 0,
          "timezone": ""
        },
        "handlingBusinessDayConfig": {
          "businessDays": []
        },
        "holidayCutoffs": [
          {
            "deadlineDate": "",
            "deadlineHour": 0,
            "deadlineTimezone": "",
            "holidayId": "",
            "visibleFromDate": ""
          }
        ],
        "maxHandlingTimeInDays": 0,
        "maxTransitTimeInDays": 0,
        "minHandlingTimeInDays": 0,
        "minTransitTimeInDays": 0,
        "transitBusinessDayConfig": {},
        "transitTimeTable": {
          "postalCodeGroupNames": [],
          "rows": [
            {
              "values": [
                {
                  "maxTransitTimeInDays": 0,
                  "minTransitTimeInDays": 0
                }
              ]
            }
          ],
          "transitTimeLabels": []
        },
        "warehouseBasedDeliveryTimes": [
          {
            "carrier": "",
            "carrierService": "",
            "originAdministrativeArea": "",
            "originCity": "",
            "originCountry": "",
            "originPostalCode": "",
            "originStreetAddress": "",
            "warehouseName": ""
          }
        ]
      },
      "eligibility": "",
      "minimumOrderValue": {
        "currency": "",
        "value": ""
      },
      "minimumOrderValueTable": {
        "storeCodeSetWithMovs": [
          {
            "storeCodes": [],
            "value": {}
          }
        ]
      },
      "name": "",
      "pickupService": {
        "carrierName": "",
        "serviceName": ""
      },
      "rateGroups": [
        {
          "applicableShippingLabels": [],
          "carrierRates": [
            {
              "carrierName": "",
              "carrierService": "",
              "flatAdjustment": {},
              "name": "",
              "originPostalCode": "",
              "percentageAdjustment": ""
            }
          ],
          "mainTable": {
            "columnHeaders": {
              "locations": [
                {
                  "locationIds": []
                }
              ],
              "numberOfItems": [],
              "postalCodeGroupNames": [],
              "prices": [
                {}
              ],
              "weights": [
                {
                  "unit": "",
                  "value": ""
                }
              ]
            },
            "name": "",
            "rowHeaders": {},
            "rows": [
              {
                "cells": [
                  {
                    "carrierRateName": "",
                    "flatRate": {},
                    "noShipping": false,
                    "pricePercentage": "",
                    "subtableName": ""
                  }
                ]
              }
            ]
          },
          "name": "",
          "singleValue": {},
          "subtables": [
            {}
          ]
        }
      ],
      "shipmentType": ""
    }
  ],
  "warehouses": [
    {
      "businessDayConfig": {},
      "cutoffTime": {
        "hour": 0,
        "minute": 0
      },
      "handlingDays": "",
      "name": "",
      "shippingAddress": {
        "administrativeArea": "",
        "city": "",
        "country": "",
        "postalCode": "",
        "streetAddress": ""
      }
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:merchantId/shippingsettings/:accountId");

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  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:merchantId/shippingsettings/:accountId" {:content-type :json
                                                                                   :form-params {:accountId ""
                                                                                                 :postalCodeGroups [{:country ""
                                                                                                                     :name ""
                                                                                                                     :postalCodeRanges [{:postalCodeRangeBegin ""
                                                                                                                                         :postalCodeRangeEnd ""}]}]
                                                                                                 :services [{:active false
                                                                                                             :currency ""
                                                                                                             :deliveryCountry ""
                                                                                                             :deliveryTime {:cutoffTime {:hour 0
                                                                                                                                         :minute 0
                                                                                                                                         :timezone ""}
                                                                                                                            :handlingBusinessDayConfig {:businessDays []}
                                                                                                                            :holidayCutoffs [{:deadlineDate ""
                                                                                                                                              :deadlineHour 0
                                                                                                                                              :deadlineTimezone ""
                                                                                                                                              :holidayId ""
                                                                                                                                              :visibleFromDate ""}]
                                                                                                                            :maxHandlingTimeInDays 0
                                                                                                                            :maxTransitTimeInDays 0
                                                                                                                            :minHandlingTimeInDays 0
                                                                                                                            :minTransitTimeInDays 0
                                                                                                                            :transitBusinessDayConfig {}
                                                                                                                            :transitTimeTable {:postalCodeGroupNames []
                                                                                                                                               :rows [{:values [{:maxTransitTimeInDays 0
                                                                                                                                                                 :minTransitTimeInDays 0}]}]
                                                                                                                                               :transitTimeLabels []}
                                                                                                                            :warehouseBasedDeliveryTimes [{:carrier ""
                                                                                                                                                           :carrierService ""
                                                                                                                                                           :originAdministrativeArea ""
                                                                                                                                                           :originCity ""
                                                                                                                                                           :originCountry ""
                                                                                                                                                           :originPostalCode ""
                                                                                                                                                           :originStreetAddress ""
                                                                                                                                                           :warehouseName ""}]}
                                                                                                             :eligibility ""
                                                                                                             :minimumOrderValue {:currency ""
                                                                                                                                 :value ""}
                                                                                                             :minimumOrderValueTable {:storeCodeSetWithMovs [{:storeCodes []
                                                                                                                                                              :value {}}]}
                                                                                                             :name ""
                                                                                                             :pickupService {:carrierName ""
                                                                                                                             :serviceName ""}
                                                                                                             :rateGroups [{:applicableShippingLabels []
                                                                                                                           :carrierRates [{:carrierName ""
                                                                                                                                           :carrierService ""
                                                                                                                                           :flatAdjustment {}
                                                                                                                                           :name ""
                                                                                                                                           :originPostalCode ""
                                                                                                                                           :percentageAdjustment ""}]
                                                                                                                           :mainTable {:columnHeaders {:locations [{:locationIds []}]
                                                                                                                                                       :numberOfItems []
                                                                                                                                                       :postalCodeGroupNames []
                                                                                                                                                       :prices [{}]
                                                                                                                                                       :weights [{:unit ""
                                                                                                                                                                  :value ""}]}
                                                                                                                                       :name ""
                                                                                                                                       :rowHeaders {}
                                                                                                                                       :rows [{:cells [{:carrierRateName ""
                                                                                                                                                        :flatRate {}
                                                                                                                                                        :noShipping false
                                                                                                                                                        :pricePercentage ""
                                                                                                                                                        :subtableName ""}]}]}
                                                                                                                           :name ""
                                                                                                                           :singleValue {}
                                                                                                                           :subtables [{}]}]
                                                                                                             :shipmentType ""}]
                                                                                                 :warehouses [{:businessDayConfig {}
                                                                                                               :cutoffTime {:hour 0
                                                                                                                            :minute 0}
                                                                                                               :handlingDays ""
                                                                                                               :name ""
                                                                                                               :shippingAddress {:administrativeArea ""
                                                                                                                                 :city ""
                                                                                                                                 :country ""
                                                                                                                                 :postalCode ""
                                                                                                                                 :streetAddress ""}}]}})
require "http/client"

url = "{{baseUrl}}/:merchantId/shippingsettings/:accountId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:merchantId/shippingsettings/:accountId"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:merchantId/shippingsettings/:accountId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:merchantId/shippingsettings/:accountId"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:merchantId/shippingsettings/:accountId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 3763

{
  "accountId": "",
  "postalCodeGroups": [
    {
      "country": "",
      "name": "",
      "postalCodeRanges": [
        {
          "postalCodeRangeBegin": "",
          "postalCodeRangeEnd": ""
        }
      ]
    }
  ],
  "services": [
    {
      "active": false,
      "currency": "",
      "deliveryCountry": "",
      "deliveryTime": {
        "cutoffTime": {
          "hour": 0,
          "minute": 0,
          "timezone": ""
        },
        "handlingBusinessDayConfig": {
          "businessDays": []
        },
        "holidayCutoffs": [
          {
            "deadlineDate": "",
            "deadlineHour": 0,
            "deadlineTimezone": "",
            "holidayId": "",
            "visibleFromDate": ""
          }
        ],
        "maxHandlingTimeInDays": 0,
        "maxTransitTimeInDays": 0,
        "minHandlingTimeInDays": 0,
        "minTransitTimeInDays": 0,
        "transitBusinessDayConfig": {},
        "transitTimeTable": {
          "postalCodeGroupNames": [],
          "rows": [
            {
              "values": [
                {
                  "maxTransitTimeInDays": 0,
                  "minTransitTimeInDays": 0
                }
              ]
            }
          ],
          "transitTimeLabels": []
        },
        "warehouseBasedDeliveryTimes": [
          {
            "carrier": "",
            "carrierService": "",
            "originAdministrativeArea": "",
            "originCity": "",
            "originCountry": "",
            "originPostalCode": "",
            "originStreetAddress": "",
            "warehouseName": ""
          }
        ]
      },
      "eligibility": "",
      "minimumOrderValue": {
        "currency": "",
        "value": ""
      },
      "minimumOrderValueTable": {
        "storeCodeSetWithMovs": [
          {
            "storeCodes": [],
            "value": {}
          }
        ]
      },
      "name": "",
      "pickupService": {
        "carrierName": "",
        "serviceName": ""
      },
      "rateGroups": [
        {
          "applicableShippingLabels": [],
          "carrierRates": [
            {
              "carrierName": "",
              "carrierService": "",
              "flatAdjustment": {},
              "name": "",
              "originPostalCode": "",
              "percentageAdjustment": ""
            }
          ],
          "mainTable": {
            "columnHeaders": {
              "locations": [
                {
                  "locationIds": []
                }
              ],
              "numberOfItems": [],
              "postalCodeGroupNames": [],
              "prices": [
                {}
              ],
              "weights": [
                {
                  "unit": "",
                  "value": ""
                }
              ]
            },
            "name": "",
            "rowHeaders": {},
            "rows": [
              {
                "cells": [
                  {
                    "carrierRateName": "",
                    "flatRate": {},
                    "noShipping": false,
                    "pricePercentage": "",
                    "subtableName": ""
                  }
                ]
              }
            ]
          },
          "name": "",
          "singleValue": {},
          "subtables": [
            {}
          ]
        }
      ],
      "shipmentType": ""
    }
  ],
  "warehouses": [
    {
      "businessDayConfig": {},
      "cutoffTime": {
        "hour": 0,
        "minute": 0
      },
      "handlingDays": "",
      "name": "",
      "shippingAddress": {
        "administrativeArea": "",
        "city": "",
        "country": "",
        "postalCode": "",
        "streetAddress": ""
      }
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:merchantId/shippingsettings/:accountId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:merchantId/shippingsettings/:accountId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:merchantId/shippingsettings/:accountId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:merchantId/shippingsettings/:accountId")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  postalCodeGroups: [
    {
      country: '',
      name: '',
      postalCodeRanges: [
        {
          postalCodeRangeBegin: '',
          postalCodeRangeEnd: ''
        }
      ]
    }
  ],
  services: [
    {
      active: false,
      currency: '',
      deliveryCountry: '',
      deliveryTime: {
        cutoffTime: {
          hour: 0,
          minute: 0,
          timezone: ''
        },
        handlingBusinessDayConfig: {
          businessDays: []
        },
        holidayCutoffs: [
          {
            deadlineDate: '',
            deadlineHour: 0,
            deadlineTimezone: '',
            holidayId: '',
            visibleFromDate: ''
          }
        ],
        maxHandlingTimeInDays: 0,
        maxTransitTimeInDays: 0,
        minHandlingTimeInDays: 0,
        minTransitTimeInDays: 0,
        transitBusinessDayConfig: {},
        transitTimeTable: {
          postalCodeGroupNames: [],
          rows: [
            {
              values: [
                {
                  maxTransitTimeInDays: 0,
                  minTransitTimeInDays: 0
                }
              ]
            }
          ],
          transitTimeLabels: []
        },
        warehouseBasedDeliveryTimes: [
          {
            carrier: '',
            carrierService: '',
            originAdministrativeArea: '',
            originCity: '',
            originCountry: '',
            originPostalCode: '',
            originStreetAddress: '',
            warehouseName: ''
          }
        ]
      },
      eligibility: '',
      minimumOrderValue: {
        currency: '',
        value: ''
      },
      minimumOrderValueTable: {
        storeCodeSetWithMovs: [
          {
            storeCodes: [],
            value: {}
          }
        ]
      },
      name: '',
      pickupService: {
        carrierName: '',
        serviceName: ''
      },
      rateGroups: [
        {
          applicableShippingLabels: [],
          carrierRates: [
            {
              carrierName: '',
              carrierService: '',
              flatAdjustment: {},
              name: '',
              originPostalCode: '',
              percentageAdjustment: ''
            }
          ],
          mainTable: {
            columnHeaders: {
              locations: [
                {
                  locationIds: []
                }
              ],
              numberOfItems: [],
              postalCodeGroupNames: [],
              prices: [
                {}
              ],
              weights: [
                {
                  unit: '',
                  value: ''
                }
              ]
            },
            name: '',
            rowHeaders: {},
            rows: [
              {
                cells: [
                  {
                    carrierRateName: '',
                    flatRate: {},
                    noShipping: false,
                    pricePercentage: '',
                    subtableName: ''
                  }
                ]
              }
            ]
          },
          name: '',
          singleValue: {},
          subtables: [
            {}
          ]
        }
      ],
      shipmentType: ''
    }
  ],
  warehouses: [
    {
      businessDayConfig: {},
      cutoffTime: {
        hour: 0,
        minute: 0
      },
      handlingDays: '',
      name: '',
      shippingAddress: {
        administrativeArea: '',
        city: '',
        country: '',
        postalCode: '',
        streetAddress: ''
      }
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:merchantId/shippingsettings/:accountId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/shippingsettings/:accountId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    postalCodeGroups: [
      {
        country: '',
        name: '',
        postalCodeRanges: [{postalCodeRangeBegin: '', postalCodeRangeEnd: ''}]
      }
    ],
    services: [
      {
        active: false,
        currency: '',
        deliveryCountry: '',
        deliveryTime: {
          cutoffTime: {hour: 0, minute: 0, timezone: ''},
          handlingBusinessDayConfig: {businessDays: []},
          holidayCutoffs: [
            {
              deadlineDate: '',
              deadlineHour: 0,
              deadlineTimezone: '',
              holidayId: '',
              visibleFromDate: ''
            }
          ],
          maxHandlingTimeInDays: 0,
          maxTransitTimeInDays: 0,
          minHandlingTimeInDays: 0,
          minTransitTimeInDays: 0,
          transitBusinessDayConfig: {},
          transitTimeTable: {
            postalCodeGroupNames: [],
            rows: [{values: [{maxTransitTimeInDays: 0, minTransitTimeInDays: 0}]}],
            transitTimeLabels: []
          },
          warehouseBasedDeliveryTimes: [
            {
              carrier: '',
              carrierService: '',
              originAdministrativeArea: '',
              originCity: '',
              originCountry: '',
              originPostalCode: '',
              originStreetAddress: '',
              warehouseName: ''
            }
          ]
        },
        eligibility: '',
        minimumOrderValue: {currency: '', value: ''},
        minimumOrderValueTable: {storeCodeSetWithMovs: [{storeCodes: [], value: {}}]},
        name: '',
        pickupService: {carrierName: '', serviceName: ''},
        rateGroups: [
          {
            applicableShippingLabels: [],
            carrierRates: [
              {
                carrierName: '',
                carrierService: '',
                flatAdjustment: {},
                name: '',
                originPostalCode: '',
                percentageAdjustment: ''
              }
            ],
            mainTable: {
              columnHeaders: {
                locations: [{locationIds: []}],
                numberOfItems: [],
                postalCodeGroupNames: [],
                prices: [{}],
                weights: [{unit: '', value: ''}]
              },
              name: '',
              rowHeaders: {},
              rows: [
                {
                  cells: [
                    {
                      carrierRateName: '',
                      flatRate: {},
                      noShipping: false,
                      pricePercentage: '',
                      subtableName: ''
                    }
                  ]
                }
              ]
            },
            name: '',
            singleValue: {},
            subtables: [{}]
          }
        ],
        shipmentType: ''
      }
    ],
    warehouses: [
      {
        businessDayConfig: {},
        cutoffTime: {hour: 0, minute: 0},
        handlingDays: '',
        name: '',
        shippingAddress: {
          administrativeArea: '',
          city: '',
          country: '',
          postalCode: '',
          streetAddress: ''
        }
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:merchantId/shippingsettings/:accountId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","postalCodeGroups":[{"country":"","name":"","postalCodeRanges":[{"postalCodeRangeBegin":"","postalCodeRangeEnd":""}]}],"services":[{"active":false,"currency":"","deliveryCountry":"","deliveryTime":{"cutoffTime":{"hour":0,"minute":0,"timezone":""},"handlingBusinessDayConfig":{"businessDays":[]},"holidayCutoffs":[{"deadlineDate":"","deadlineHour":0,"deadlineTimezone":"","holidayId":"","visibleFromDate":""}],"maxHandlingTimeInDays":0,"maxTransitTimeInDays":0,"minHandlingTimeInDays":0,"minTransitTimeInDays":0,"transitBusinessDayConfig":{},"transitTimeTable":{"postalCodeGroupNames":[],"rows":[{"values":[{"maxTransitTimeInDays":0,"minTransitTimeInDays":0}]}],"transitTimeLabels":[]},"warehouseBasedDeliveryTimes":[{"carrier":"","carrierService":"","originAdministrativeArea":"","originCity":"","originCountry":"","originPostalCode":"","originStreetAddress":"","warehouseName":""}]},"eligibility":"","minimumOrderValue":{"currency":"","value":""},"minimumOrderValueTable":{"storeCodeSetWithMovs":[{"storeCodes":[],"value":{}}]},"name":"","pickupService":{"carrierName":"","serviceName":""},"rateGroups":[{"applicableShippingLabels":[],"carrierRates":[{"carrierName":"","carrierService":"","flatAdjustment":{},"name":"","originPostalCode":"","percentageAdjustment":""}],"mainTable":{"columnHeaders":{"locations":[{"locationIds":[]}],"numberOfItems":[],"postalCodeGroupNames":[],"prices":[{}],"weights":[{"unit":"","value":""}]},"name":"","rowHeaders":{},"rows":[{"cells":[{"carrierRateName":"","flatRate":{},"noShipping":false,"pricePercentage":"","subtableName":""}]}]},"name":"","singleValue":{},"subtables":[{}]}],"shipmentType":""}],"warehouses":[{"businessDayConfig":{},"cutoffTime":{"hour":0,"minute":0},"handlingDays":"","name":"","shippingAddress":{"administrativeArea":"","city":"","country":"","postalCode":"","streetAddress":""}}]}'
};

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}}/:merchantId/shippingsettings/:accountId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "postalCodeGroups": [\n    {\n      "country": "",\n      "name": "",\n      "postalCodeRanges": [\n        {\n          "postalCodeRangeBegin": "",\n          "postalCodeRangeEnd": ""\n        }\n      ]\n    }\n  ],\n  "services": [\n    {\n      "active": false,\n      "currency": "",\n      "deliveryCountry": "",\n      "deliveryTime": {\n        "cutoffTime": {\n          "hour": 0,\n          "minute": 0,\n          "timezone": ""\n        },\n        "handlingBusinessDayConfig": {\n          "businessDays": []\n        },\n        "holidayCutoffs": [\n          {\n            "deadlineDate": "",\n            "deadlineHour": 0,\n            "deadlineTimezone": "",\n            "holidayId": "",\n            "visibleFromDate": ""\n          }\n        ],\n        "maxHandlingTimeInDays": 0,\n        "maxTransitTimeInDays": 0,\n        "minHandlingTimeInDays": 0,\n        "minTransitTimeInDays": 0,\n        "transitBusinessDayConfig": {},\n        "transitTimeTable": {\n          "postalCodeGroupNames": [],\n          "rows": [\n            {\n              "values": [\n                {\n                  "maxTransitTimeInDays": 0,\n                  "minTransitTimeInDays": 0\n                }\n              ]\n            }\n          ],\n          "transitTimeLabels": []\n        },\n        "warehouseBasedDeliveryTimes": [\n          {\n            "carrier": "",\n            "carrierService": "",\n            "originAdministrativeArea": "",\n            "originCity": "",\n            "originCountry": "",\n            "originPostalCode": "",\n            "originStreetAddress": "",\n            "warehouseName": ""\n          }\n        ]\n      },\n      "eligibility": "",\n      "minimumOrderValue": {\n        "currency": "",\n        "value": ""\n      },\n      "minimumOrderValueTable": {\n        "storeCodeSetWithMovs": [\n          {\n            "storeCodes": [],\n            "value": {}\n          }\n        ]\n      },\n      "name": "",\n      "pickupService": {\n        "carrierName": "",\n        "serviceName": ""\n      },\n      "rateGroups": [\n        {\n          "applicableShippingLabels": [],\n          "carrierRates": [\n            {\n              "carrierName": "",\n              "carrierService": "",\n              "flatAdjustment": {},\n              "name": "",\n              "originPostalCode": "",\n              "percentageAdjustment": ""\n            }\n          ],\n          "mainTable": {\n            "columnHeaders": {\n              "locations": [\n                {\n                  "locationIds": []\n                }\n              ],\n              "numberOfItems": [],\n              "postalCodeGroupNames": [],\n              "prices": [\n                {}\n              ],\n              "weights": [\n                {\n                  "unit": "",\n                  "value": ""\n                }\n              ]\n            },\n            "name": "",\n            "rowHeaders": {},\n            "rows": [\n              {\n                "cells": [\n                  {\n                    "carrierRateName": "",\n                    "flatRate": {},\n                    "noShipping": false,\n                    "pricePercentage": "",\n                    "subtableName": ""\n                  }\n                ]\n              }\n            ]\n          },\n          "name": "",\n          "singleValue": {},\n          "subtables": [\n            {}\n          ]\n        }\n      ],\n      "shipmentType": ""\n    }\n  ],\n  "warehouses": [\n    {\n      "businessDayConfig": {},\n      "cutoffTime": {\n        "hour": 0,\n        "minute": 0\n      },\n      "handlingDays": "",\n      "name": "",\n      "shippingAddress": {\n        "administrativeArea": "",\n        "city": "",\n        "country": "",\n        "postalCode": "",\n        "streetAddress": ""\n      }\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:merchantId/shippingsettings/:accountId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:merchantId/shippingsettings/:accountId',
  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({
  accountId: '',
  postalCodeGroups: [
    {
      country: '',
      name: '',
      postalCodeRanges: [{postalCodeRangeBegin: '', postalCodeRangeEnd: ''}]
    }
  ],
  services: [
    {
      active: false,
      currency: '',
      deliveryCountry: '',
      deliveryTime: {
        cutoffTime: {hour: 0, minute: 0, timezone: ''},
        handlingBusinessDayConfig: {businessDays: []},
        holidayCutoffs: [
          {
            deadlineDate: '',
            deadlineHour: 0,
            deadlineTimezone: '',
            holidayId: '',
            visibleFromDate: ''
          }
        ],
        maxHandlingTimeInDays: 0,
        maxTransitTimeInDays: 0,
        minHandlingTimeInDays: 0,
        minTransitTimeInDays: 0,
        transitBusinessDayConfig: {},
        transitTimeTable: {
          postalCodeGroupNames: [],
          rows: [{values: [{maxTransitTimeInDays: 0, minTransitTimeInDays: 0}]}],
          transitTimeLabels: []
        },
        warehouseBasedDeliveryTimes: [
          {
            carrier: '',
            carrierService: '',
            originAdministrativeArea: '',
            originCity: '',
            originCountry: '',
            originPostalCode: '',
            originStreetAddress: '',
            warehouseName: ''
          }
        ]
      },
      eligibility: '',
      minimumOrderValue: {currency: '', value: ''},
      minimumOrderValueTable: {storeCodeSetWithMovs: [{storeCodes: [], value: {}}]},
      name: '',
      pickupService: {carrierName: '', serviceName: ''},
      rateGroups: [
        {
          applicableShippingLabels: [],
          carrierRates: [
            {
              carrierName: '',
              carrierService: '',
              flatAdjustment: {},
              name: '',
              originPostalCode: '',
              percentageAdjustment: ''
            }
          ],
          mainTable: {
            columnHeaders: {
              locations: [{locationIds: []}],
              numberOfItems: [],
              postalCodeGroupNames: [],
              prices: [{}],
              weights: [{unit: '', value: ''}]
            },
            name: '',
            rowHeaders: {},
            rows: [
              {
                cells: [
                  {
                    carrierRateName: '',
                    flatRate: {},
                    noShipping: false,
                    pricePercentage: '',
                    subtableName: ''
                  }
                ]
              }
            ]
          },
          name: '',
          singleValue: {},
          subtables: [{}]
        }
      ],
      shipmentType: ''
    }
  ],
  warehouses: [
    {
      businessDayConfig: {},
      cutoffTime: {hour: 0, minute: 0},
      handlingDays: '',
      name: '',
      shippingAddress: {
        administrativeArea: '',
        city: '',
        country: '',
        postalCode: '',
        streetAddress: ''
      }
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/shippingsettings/:accountId',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    postalCodeGroups: [
      {
        country: '',
        name: '',
        postalCodeRanges: [{postalCodeRangeBegin: '', postalCodeRangeEnd: ''}]
      }
    ],
    services: [
      {
        active: false,
        currency: '',
        deliveryCountry: '',
        deliveryTime: {
          cutoffTime: {hour: 0, minute: 0, timezone: ''},
          handlingBusinessDayConfig: {businessDays: []},
          holidayCutoffs: [
            {
              deadlineDate: '',
              deadlineHour: 0,
              deadlineTimezone: '',
              holidayId: '',
              visibleFromDate: ''
            }
          ],
          maxHandlingTimeInDays: 0,
          maxTransitTimeInDays: 0,
          minHandlingTimeInDays: 0,
          minTransitTimeInDays: 0,
          transitBusinessDayConfig: {},
          transitTimeTable: {
            postalCodeGroupNames: [],
            rows: [{values: [{maxTransitTimeInDays: 0, minTransitTimeInDays: 0}]}],
            transitTimeLabels: []
          },
          warehouseBasedDeliveryTimes: [
            {
              carrier: '',
              carrierService: '',
              originAdministrativeArea: '',
              originCity: '',
              originCountry: '',
              originPostalCode: '',
              originStreetAddress: '',
              warehouseName: ''
            }
          ]
        },
        eligibility: '',
        minimumOrderValue: {currency: '', value: ''},
        minimumOrderValueTable: {storeCodeSetWithMovs: [{storeCodes: [], value: {}}]},
        name: '',
        pickupService: {carrierName: '', serviceName: ''},
        rateGroups: [
          {
            applicableShippingLabels: [],
            carrierRates: [
              {
                carrierName: '',
                carrierService: '',
                flatAdjustment: {},
                name: '',
                originPostalCode: '',
                percentageAdjustment: ''
              }
            ],
            mainTable: {
              columnHeaders: {
                locations: [{locationIds: []}],
                numberOfItems: [],
                postalCodeGroupNames: [],
                prices: [{}],
                weights: [{unit: '', value: ''}]
              },
              name: '',
              rowHeaders: {},
              rows: [
                {
                  cells: [
                    {
                      carrierRateName: '',
                      flatRate: {},
                      noShipping: false,
                      pricePercentage: '',
                      subtableName: ''
                    }
                  ]
                }
              ]
            },
            name: '',
            singleValue: {},
            subtables: [{}]
          }
        ],
        shipmentType: ''
      }
    ],
    warehouses: [
      {
        businessDayConfig: {},
        cutoffTime: {hour: 0, minute: 0},
        handlingDays: '',
        name: '',
        shippingAddress: {
          administrativeArea: '',
          city: '',
          country: '',
          postalCode: '',
          streetAddress: ''
        }
      }
    ]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:merchantId/shippingsettings/:accountId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  postalCodeGroups: [
    {
      country: '',
      name: '',
      postalCodeRanges: [
        {
          postalCodeRangeBegin: '',
          postalCodeRangeEnd: ''
        }
      ]
    }
  ],
  services: [
    {
      active: false,
      currency: '',
      deliveryCountry: '',
      deliveryTime: {
        cutoffTime: {
          hour: 0,
          minute: 0,
          timezone: ''
        },
        handlingBusinessDayConfig: {
          businessDays: []
        },
        holidayCutoffs: [
          {
            deadlineDate: '',
            deadlineHour: 0,
            deadlineTimezone: '',
            holidayId: '',
            visibleFromDate: ''
          }
        ],
        maxHandlingTimeInDays: 0,
        maxTransitTimeInDays: 0,
        minHandlingTimeInDays: 0,
        minTransitTimeInDays: 0,
        transitBusinessDayConfig: {},
        transitTimeTable: {
          postalCodeGroupNames: [],
          rows: [
            {
              values: [
                {
                  maxTransitTimeInDays: 0,
                  minTransitTimeInDays: 0
                }
              ]
            }
          ],
          transitTimeLabels: []
        },
        warehouseBasedDeliveryTimes: [
          {
            carrier: '',
            carrierService: '',
            originAdministrativeArea: '',
            originCity: '',
            originCountry: '',
            originPostalCode: '',
            originStreetAddress: '',
            warehouseName: ''
          }
        ]
      },
      eligibility: '',
      minimumOrderValue: {
        currency: '',
        value: ''
      },
      minimumOrderValueTable: {
        storeCodeSetWithMovs: [
          {
            storeCodes: [],
            value: {}
          }
        ]
      },
      name: '',
      pickupService: {
        carrierName: '',
        serviceName: ''
      },
      rateGroups: [
        {
          applicableShippingLabels: [],
          carrierRates: [
            {
              carrierName: '',
              carrierService: '',
              flatAdjustment: {},
              name: '',
              originPostalCode: '',
              percentageAdjustment: ''
            }
          ],
          mainTable: {
            columnHeaders: {
              locations: [
                {
                  locationIds: []
                }
              ],
              numberOfItems: [],
              postalCodeGroupNames: [],
              prices: [
                {}
              ],
              weights: [
                {
                  unit: '',
                  value: ''
                }
              ]
            },
            name: '',
            rowHeaders: {},
            rows: [
              {
                cells: [
                  {
                    carrierRateName: '',
                    flatRate: {},
                    noShipping: false,
                    pricePercentage: '',
                    subtableName: ''
                  }
                ]
              }
            ]
          },
          name: '',
          singleValue: {},
          subtables: [
            {}
          ]
        }
      ],
      shipmentType: ''
    }
  ],
  warehouses: [
    {
      businessDayConfig: {},
      cutoffTime: {
        hour: 0,
        minute: 0
      },
      handlingDays: '',
      name: '',
      shippingAddress: {
        administrativeArea: '',
        city: '',
        country: '',
        postalCode: '',
        streetAddress: ''
      }
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:merchantId/shippingsettings/:accountId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    postalCodeGroups: [
      {
        country: '',
        name: '',
        postalCodeRanges: [{postalCodeRangeBegin: '', postalCodeRangeEnd: ''}]
      }
    ],
    services: [
      {
        active: false,
        currency: '',
        deliveryCountry: '',
        deliveryTime: {
          cutoffTime: {hour: 0, minute: 0, timezone: ''},
          handlingBusinessDayConfig: {businessDays: []},
          holidayCutoffs: [
            {
              deadlineDate: '',
              deadlineHour: 0,
              deadlineTimezone: '',
              holidayId: '',
              visibleFromDate: ''
            }
          ],
          maxHandlingTimeInDays: 0,
          maxTransitTimeInDays: 0,
          minHandlingTimeInDays: 0,
          minTransitTimeInDays: 0,
          transitBusinessDayConfig: {},
          transitTimeTable: {
            postalCodeGroupNames: [],
            rows: [{values: [{maxTransitTimeInDays: 0, minTransitTimeInDays: 0}]}],
            transitTimeLabels: []
          },
          warehouseBasedDeliveryTimes: [
            {
              carrier: '',
              carrierService: '',
              originAdministrativeArea: '',
              originCity: '',
              originCountry: '',
              originPostalCode: '',
              originStreetAddress: '',
              warehouseName: ''
            }
          ]
        },
        eligibility: '',
        minimumOrderValue: {currency: '', value: ''},
        minimumOrderValueTable: {storeCodeSetWithMovs: [{storeCodes: [], value: {}}]},
        name: '',
        pickupService: {carrierName: '', serviceName: ''},
        rateGroups: [
          {
            applicableShippingLabels: [],
            carrierRates: [
              {
                carrierName: '',
                carrierService: '',
                flatAdjustment: {},
                name: '',
                originPostalCode: '',
                percentageAdjustment: ''
              }
            ],
            mainTable: {
              columnHeaders: {
                locations: [{locationIds: []}],
                numberOfItems: [],
                postalCodeGroupNames: [],
                prices: [{}],
                weights: [{unit: '', value: ''}]
              },
              name: '',
              rowHeaders: {},
              rows: [
                {
                  cells: [
                    {
                      carrierRateName: '',
                      flatRate: {},
                      noShipping: false,
                      pricePercentage: '',
                      subtableName: ''
                    }
                  ]
                }
              ]
            },
            name: '',
            singleValue: {},
            subtables: [{}]
          }
        ],
        shipmentType: ''
      }
    ],
    warehouses: [
      {
        businessDayConfig: {},
        cutoffTime: {hour: 0, minute: 0},
        handlingDays: '',
        name: '',
        shippingAddress: {
          administrativeArea: '',
          city: '',
          country: '',
          postalCode: '',
          streetAddress: ''
        }
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:merchantId/shippingsettings/:accountId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","postalCodeGroups":[{"country":"","name":"","postalCodeRanges":[{"postalCodeRangeBegin":"","postalCodeRangeEnd":""}]}],"services":[{"active":false,"currency":"","deliveryCountry":"","deliveryTime":{"cutoffTime":{"hour":0,"minute":0,"timezone":""},"handlingBusinessDayConfig":{"businessDays":[]},"holidayCutoffs":[{"deadlineDate":"","deadlineHour":0,"deadlineTimezone":"","holidayId":"","visibleFromDate":""}],"maxHandlingTimeInDays":0,"maxTransitTimeInDays":0,"minHandlingTimeInDays":0,"minTransitTimeInDays":0,"transitBusinessDayConfig":{},"transitTimeTable":{"postalCodeGroupNames":[],"rows":[{"values":[{"maxTransitTimeInDays":0,"minTransitTimeInDays":0}]}],"transitTimeLabels":[]},"warehouseBasedDeliveryTimes":[{"carrier":"","carrierService":"","originAdministrativeArea":"","originCity":"","originCountry":"","originPostalCode":"","originStreetAddress":"","warehouseName":""}]},"eligibility":"","minimumOrderValue":{"currency":"","value":""},"minimumOrderValueTable":{"storeCodeSetWithMovs":[{"storeCodes":[],"value":{}}]},"name":"","pickupService":{"carrierName":"","serviceName":""},"rateGroups":[{"applicableShippingLabels":[],"carrierRates":[{"carrierName":"","carrierService":"","flatAdjustment":{},"name":"","originPostalCode":"","percentageAdjustment":""}],"mainTable":{"columnHeaders":{"locations":[{"locationIds":[]}],"numberOfItems":[],"postalCodeGroupNames":[],"prices":[{}],"weights":[{"unit":"","value":""}]},"name":"","rowHeaders":{},"rows":[{"cells":[{"carrierRateName":"","flatRate":{},"noShipping":false,"pricePercentage":"","subtableName":""}]}]},"name":"","singleValue":{},"subtables":[{}]}],"shipmentType":""}],"warehouses":[{"businessDayConfig":{},"cutoffTime":{"hour":0,"minute":0},"handlingDays":"","name":"","shippingAddress":{"administrativeArea":"","city":"","country":"","postalCode":"","streetAddress":""}}]}'
};

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 = @{ @"accountId": @"",
                              @"postalCodeGroups": @[ @{ @"country": @"", @"name": @"", @"postalCodeRanges": @[ @{ @"postalCodeRangeBegin": @"", @"postalCodeRangeEnd": @"" } ] } ],
                              @"services": @[ @{ @"active": @NO, @"currency": @"", @"deliveryCountry": @"", @"deliveryTime": @{ @"cutoffTime": @{ @"hour": @0, @"minute": @0, @"timezone": @"" }, @"handlingBusinessDayConfig": @{ @"businessDays": @[  ] }, @"holidayCutoffs": @[ @{ @"deadlineDate": @"", @"deadlineHour": @0, @"deadlineTimezone": @"", @"holidayId": @"", @"visibleFromDate": @"" } ], @"maxHandlingTimeInDays": @0, @"maxTransitTimeInDays": @0, @"minHandlingTimeInDays": @0, @"minTransitTimeInDays": @0, @"transitBusinessDayConfig": @{  }, @"transitTimeTable": @{ @"postalCodeGroupNames": @[  ], @"rows": @[ @{ @"values": @[ @{ @"maxTransitTimeInDays": @0, @"minTransitTimeInDays": @0 } ] } ], @"transitTimeLabels": @[  ] }, @"warehouseBasedDeliveryTimes": @[ @{ @"carrier": @"", @"carrierService": @"", @"originAdministrativeArea": @"", @"originCity": @"", @"originCountry": @"", @"originPostalCode": @"", @"originStreetAddress": @"", @"warehouseName": @"" } ] }, @"eligibility": @"", @"minimumOrderValue": @{ @"currency": @"", @"value": @"" }, @"minimumOrderValueTable": @{ @"storeCodeSetWithMovs": @[ @{ @"storeCodes": @[  ], @"value": @{  } } ] }, @"name": @"", @"pickupService": @{ @"carrierName": @"", @"serviceName": @"" }, @"rateGroups": @[ @{ @"applicableShippingLabels": @[  ], @"carrierRates": @[ @{ @"carrierName": @"", @"carrierService": @"", @"flatAdjustment": @{  }, @"name": @"", @"originPostalCode": @"", @"percentageAdjustment": @"" } ], @"mainTable": @{ @"columnHeaders": @{ @"locations": @[ @{ @"locationIds": @[  ] } ], @"numberOfItems": @[  ], @"postalCodeGroupNames": @[  ], @"prices": @[ @{  } ], @"weights": @[ @{ @"unit": @"", @"value": @"" } ] }, @"name": @"", @"rowHeaders": @{  }, @"rows": @[ @{ @"cells": @[ @{ @"carrierRateName": @"", @"flatRate": @{  }, @"noShipping": @NO, @"pricePercentage": @"", @"subtableName": @"" } ] } ] }, @"name": @"", @"singleValue": @{  }, @"subtables": @[ @{  } ] } ], @"shipmentType": @"" } ],
                              @"warehouses": @[ @{ @"businessDayConfig": @{  }, @"cutoffTime": @{ @"hour": @0, @"minute": @0 }, @"handlingDays": @"", @"name": @"", @"shippingAddress": @{ @"administrativeArea": @"", @"city": @"", @"country": @"", @"postalCode": @"", @"streetAddress": @"" } } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:merchantId/shippingsettings/:accountId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:merchantId/shippingsettings/:accountId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:merchantId/shippingsettings/:accountId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'postalCodeGroups' => [
        [
                'country' => '',
                'name' => '',
                'postalCodeRanges' => [
                                [
                                                                'postalCodeRangeBegin' => '',
                                                                'postalCodeRangeEnd' => ''
                                ]
                ]
        ]
    ],
    'services' => [
        [
                'active' => null,
                'currency' => '',
                'deliveryCountry' => '',
                'deliveryTime' => [
                                'cutoffTime' => [
                                                                'hour' => 0,
                                                                'minute' => 0,
                                                                'timezone' => ''
                                ],
                                'handlingBusinessDayConfig' => [
                                                                'businessDays' => [
                                                                                                                                
                                                                ]
                                ],
                                'holidayCutoffs' => [
                                                                [
                                                                                                                                'deadlineDate' => '',
                                                                                                                                'deadlineHour' => 0,
                                                                                                                                'deadlineTimezone' => '',
                                                                                                                                'holidayId' => '',
                                                                                                                                'visibleFromDate' => ''
                                                                ]
                                ],
                                'maxHandlingTimeInDays' => 0,
                                'maxTransitTimeInDays' => 0,
                                'minHandlingTimeInDays' => 0,
                                'minTransitTimeInDays' => 0,
                                'transitBusinessDayConfig' => [
                                                                
                                ],
                                'transitTimeTable' => [
                                                                'postalCodeGroupNames' => [
                                                                                                                                
                                                                ],
                                                                'rows' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'maxTransitTimeInDays' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'minTransitTimeInDays' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'transitTimeLabels' => [
                                                                                                                                
                                                                ]
                                ],
                                'warehouseBasedDeliveryTimes' => [
                                                                [
                                                                                                                                'carrier' => '',
                                                                                                                                'carrierService' => '',
                                                                                                                                'originAdministrativeArea' => '',
                                                                                                                                'originCity' => '',
                                                                                                                                'originCountry' => '',
                                                                                                                                'originPostalCode' => '',
                                                                                                                                'originStreetAddress' => '',
                                                                                                                                'warehouseName' => ''
                                                                ]
                                ]
                ],
                'eligibility' => '',
                'minimumOrderValue' => [
                                'currency' => '',
                                'value' => ''
                ],
                'minimumOrderValueTable' => [
                                'storeCodeSetWithMovs' => [
                                                                [
                                                                                                                                'storeCodes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'name' => '',
                'pickupService' => [
                                'carrierName' => '',
                                'serviceName' => ''
                ],
                'rateGroups' => [
                                [
                                                                'applicableShippingLabels' => [
                                                                                                                                
                                                                ],
                                                                'carrierRates' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'carrierName' => '',
                                                                                                                                                                                                                                                                'carrierService' => '',
                                                                                                                                                                                                                                                                'flatAdjustment' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'originPostalCode' => '',
                                                                                                                                                                                                                                                                'percentageAdjustment' => ''
                                                                                                                                ]
                                                                ],
                                                                'mainTable' => [
                                                                                                                                'columnHeaders' => [
                                                                                                                                                                                                                                                                'locations' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'locationIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'numberOfItems' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'postalCodeGroupNames' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'prices' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'weights' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'unit' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'name' => '',
                                                                                                                                'rowHeaders' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'rows' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'cells' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierRateName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'flatRate' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'noShipping' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'pricePercentage' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'subtableName' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'name' => '',
                                                                'singleValue' => [
                                                                                                                                
                                                                ],
                                                                'subtables' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'shipmentType' => ''
        ]
    ],
    'warehouses' => [
        [
                'businessDayConfig' => [
                                
                ],
                'cutoffTime' => [
                                'hour' => 0,
                                'minute' => 0
                ],
                'handlingDays' => '',
                'name' => '',
                'shippingAddress' => [
                                'administrativeArea' => '',
                                'city' => '',
                                'country' => '',
                                'postalCode' => '',
                                'streetAddress' => ''
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:merchantId/shippingsettings/:accountId', [
  'body' => '{
  "accountId": "",
  "postalCodeGroups": [
    {
      "country": "",
      "name": "",
      "postalCodeRanges": [
        {
          "postalCodeRangeBegin": "",
          "postalCodeRangeEnd": ""
        }
      ]
    }
  ],
  "services": [
    {
      "active": false,
      "currency": "",
      "deliveryCountry": "",
      "deliveryTime": {
        "cutoffTime": {
          "hour": 0,
          "minute": 0,
          "timezone": ""
        },
        "handlingBusinessDayConfig": {
          "businessDays": []
        },
        "holidayCutoffs": [
          {
            "deadlineDate": "",
            "deadlineHour": 0,
            "deadlineTimezone": "",
            "holidayId": "",
            "visibleFromDate": ""
          }
        ],
        "maxHandlingTimeInDays": 0,
        "maxTransitTimeInDays": 0,
        "minHandlingTimeInDays": 0,
        "minTransitTimeInDays": 0,
        "transitBusinessDayConfig": {},
        "transitTimeTable": {
          "postalCodeGroupNames": [],
          "rows": [
            {
              "values": [
                {
                  "maxTransitTimeInDays": 0,
                  "minTransitTimeInDays": 0
                }
              ]
            }
          ],
          "transitTimeLabels": []
        },
        "warehouseBasedDeliveryTimes": [
          {
            "carrier": "",
            "carrierService": "",
            "originAdministrativeArea": "",
            "originCity": "",
            "originCountry": "",
            "originPostalCode": "",
            "originStreetAddress": "",
            "warehouseName": ""
          }
        ]
      },
      "eligibility": "",
      "minimumOrderValue": {
        "currency": "",
        "value": ""
      },
      "minimumOrderValueTable": {
        "storeCodeSetWithMovs": [
          {
            "storeCodes": [],
            "value": {}
          }
        ]
      },
      "name": "",
      "pickupService": {
        "carrierName": "",
        "serviceName": ""
      },
      "rateGroups": [
        {
          "applicableShippingLabels": [],
          "carrierRates": [
            {
              "carrierName": "",
              "carrierService": "",
              "flatAdjustment": {},
              "name": "",
              "originPostalCode": "",
              "percentageAdjustment": ""
            }
          ],
          "mainTable": {
            "columnHeaders": {
              "locations": [
                {
                  "locationIds": []
                }
              ],
              "numberOfItems": [],
              "postalCodeGroupNames": [],
              "prices": [
                {}
              ],
              "weights": [
                {
                  "unit": "",
                  "value": ""
                }
              ]
            },
            "name": "",
            "rowHeaders": {},
            "rows": [
              {
                "cells": [
                  {
                    "carrierRateName": "",
                    "flatRate": {},
                    "noShipping": false,
                    "pricePercentage": "",
                    "subtableName": ""
                  }
                ]
              }
            ]
          },
          "name": "",
          "singleValue": {},
          "subtables": [
            {}
          ]
        }
      ],
      "shipmentType": ""
    }
  ],
  "warehouses": [
    {
      "businessDayConfig": {},
      "cutoffTime": {
        "hour": 0,
        "minute": 0
      },
      "handlingDays": "",
      "name": "",
      "shippingAddress": {
        "administrativeArea": "",
        "city": "",
        "country": "",
        "postalCode": "",
        "streetAddress": ""
      }
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:merchantId/shippingsettings/:accountId');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'postalCodeGroups' => [
    [
        'country' => '',
        'name' => '',
        'postalCodeRanges' => [
                [
                                'postalCodeRangeBegin' => '',
                                'postalCodeRangeEnd' => ''
                ]
        ]
    ]
  ],
  'services' => [
    [
        'active' => null,
        'currency' => '',
        'deliveryCountry' => '',
        'deliveryTime' => [
                'cutoffTime' => [
                                'hour' => 0,
                                'minute' => 0,
                                'timezone' => ''
                ],
                'handlingBusinessDayConfig' => [
                                'businessDays' => [
                                                                
                                ]
                ],
                'holidayCutoffs' => [
                                [
                                                                'deadlineDate' => '',
                                                                'deadlineHour' => 0,
                                                                'deadlineTimezone' => '',
                                                                'holidayId' => '',
                                                                'visibleFromDate' => ''
                                ]
                ],
                'maxHandlingTimeInDays' => 0,
                'maxTransitTimeInDays' => 0,
                'minHandlingTimeInDays' => 0,
                'minTransitTimeInDays' => 0,
                'transitBusinessDayConfig' => [
                                
                ],
                'transitTimeTable' => [
                                'postalCodeGroupNames' => [
                                                                
                                ],
                                'rows' => [
                                                                [
                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'maxTransitTimeInDays' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'minTransitTimeInDays' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ],
                                'transitTimeLabels' => [
                                                                
                                ]
                ],
                'warehouseBasedDeliveryTimes' => [
                                [
                                                                'carrier' => '',
                                                                'carrierService' => '',
                                                                'originAdministrativeArea' => '',
                                                                'originCity' => '',
                                                                'originCountry' => '',
                                                                'originPostalCode' => '',
                                                                'originStreetAddress' => '',
                                                                'warehouseName' => ''
                                ]
                ]
        ],
        'eligibility' => '',
        'minimumOrderValue' => [
                'currency' => '',
                'value' => ''
        ],
        'minimumOrderValueTable' => [
                'storeCodeSetWithMovs' => [
                                [
                                                                'storeCodes' => [
                                                                                                                                
                                                                ],
                                                                'value' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'name' => '',
        'pickupService' => [
                'carrierName' => '',
                'serviceName' => ''
        ],
        'rateGroups' => [
                [
                                'applicableShippingLabels' => [
                                                                
                                ],
                                'carrierRates' => [
                                                                [
                                                                                                                                'carrierName' => '',
                                                                                                                                'carrierService' => '',
                                                                                                                                'flatAdjustment' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'name' => '',
                                                                                                                                'originPostalCode' => '',
                                                                                                                                'percentageAdjustment' => ''
                                                                ]
                                ],
                                'mainTable' => [
                                                                'columnHeaders' => [
                                                                                                                                'locations' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'locationIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'numberOfItems' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'postalCodeGroupNames' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'prices' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'weights' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'unit' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'name' => '',
                                                                'rowHeaders' => [
                                                                                                                                
                                                                ],
                                                                'rows' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'cells' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierRateName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'flatRate' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'noShipping' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'pricePercentage' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'subtableName' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ],
                                'name' => '',
                                'singleValue' => [
                                                                
                                ],
                                'subtables' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'shipmentType' => ''
    ]
  ],
  'warehouses' => [
    [
        'businessDayConfig' => [
                
        ],
        'cutoffTime' => [
                'hour' => 0,
                'minute' => 0
        ],
        'handlingDays' => '',
        'name' => '',
        'shippingAddress' => [
                'administrativeArea' => '',
                'city' => '',
                'country' => '',
                'postalCode' => '',
                'streetAddress' => ''
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'postalCodeGroups' => [
    [
        'country' => '',
        'name' => '',
        'postalCodeRanges' => [
                [
                                'postalCodeRangeBegin' => '',
                                'postalCodeRangeEnd' => ''
                ]
        ]
    ]
  ],
  'services' => [
    [
        'active' => null,
        'currency' => '',
        'deliveryCountry' => '',
        'deliveryTime' => [
                'cutoffTime' => [
                                'hour' => 0,
                                'minute' => 0,
                                'timezone' => ''
                ],
                'handlingBusinessDayConfig' => [
                                'businessDays' => [
                                                                
                                ]
                ],
                'holidayCutoffs' => [
                                [
                                                                'deadlineDate' => '',
                                                                'deadlineHour' => 0,
                                                                'deadlineTimezone' => '',
                                                                'holidayId' => '',
                                                                'visibleFromDate' => ''
                                ]
                ],
                'maxHandlingTimeInDays' => 0,
                'maxTransitTimeInDays' => 0,
                'minHandlingTimeInDays' => 0,
                'minTransitTimeInDays' => 0,
                'transitBusinessDayConfig' => [
                                
                ],
                'transitTimeTable' => [
                                'postalCodeGroupNames' => [
                                                                
                                ],
                                'rows' => [
                                                                [
                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'maxTransitTimeInDays' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'minTransitTimeInDays' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ],
                                'transitTimeLabels' => [
                                                                
                                ]
                ],
                'warehouseBasedDeliveryTimes' => [
                                [
                                                                'carrier' => '',
                                                                'carrierService' => '',
                                                                'originAdministrativeArea' => '',
                                                                'originCity' => '',
                                                                'originCountry' => '',
                                                                'originPostalCode' => '',
                                                                'originStreetAddress' => '',
                                                                'warehouseName' => ''
                                ]
                ]
        ],
        'eligibility' => '',
        'minimumOrderValue' => [
                'currency' => '',
                'value' => ''
        ],
        'minimumOrderValueTable' => [
                'storeCodeSetWithMovs' => [
                                [
                                                                'storeCodes' => [
                                                                                                                                
                                                                ],
                                                                'value' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'name' => '',
        'pickupService' => [
                'carrierName' => '',
                'serviceName' => ''
        ],
        'rateGroups' => [
                [
                                'applicableShippingLabels' => [
                                                                
                                ],
                                'carrierRates' => [
                                                                [
                                                                                                                                'carrierName' => '',
                                                                                                                                'carrierService' => '',
                                                                                                                                'flatAdjustment' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'name' => '',
                                                                                                                                'originPostalCode' => '',
                                                                                                                                'percentageAdjustment' => ''
                                                                ]
                                ],
                                'mainTable' => [
                                                                'columnHeaders' => [
                                                                                                                                'locations' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'locationIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'numberOfItems' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'postalCodeGroupNames' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'prices' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'weights' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'unit' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'name' => '',
                                                                'rowHeaders' => [
                                                                                                                                
                                                                ],
                                                                'rows' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'cells' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'carrierRateName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'flatRate' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'noShipping' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'pricePercentage' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'subtableName' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ],
                                'name' => '',
                                'singleValue' => [
                                                                
                                ],
                                'subtables' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'shipmentType' => ''
    ]
  ],
  'warehouses' => [
    [
        'businessDayConfig' => [
                
        ],
        'cutoffTime' => [
                'hour' => 0,
                'minute' => 0
        ],
        'handlingDays' => '',
        'name' => '',
        'shippingAddress' => [
                'administrativeArea' => '',
                'city' => '',
                'country' => '',
                'postalCode' => '',
                'streetAddress' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:merchantId/shippingsettings/:accountId');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:merchantId/shippingsettings/:accountId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "postalCodeGroups": [
    {
      "country": "",
      "name": "",
      "postalCodeRanges": [
        {
          "postalCodeRangeBegin": "",
          "postalCodeRangeEnd": ""
        }
      ]
    }
  ],
  "services": [
    {
      "active": false,
      "currency": "",
      "deliveryCountry": "",
      "deliveryTime": {
        "cutoffTime": {
          "hour": 0,
          "minute": 0,
          "timezone": ""
        },
        "handlingBusinessDayConfig": {
          "businessDays": []
        },
        "holidayCutoffs": [
          {
            "deadlineDate": "",
            "deadlineHour": 0,
            "deadlineTimezone": "",
            "holidayId": "",
            "visibleFromDate": ""
          }
        ],
        "maxHandlingTimeInDays": 0,
        "maxTransitTimeInDays": 0,
        "minHandlingTimeInDays": 0,
        "minTransitTimeInDays": 0,
        "transitBusinessDayConfig": {},
        "transitTimeTable": {
          "postalCodeGroupNames": [],
          "rows": [
            {
              "values": [
                {
                  "maxTransitTimeInDays": 0,
                  "minTransitTimeInDays": 0
                }
              ]
            }
          ],
          "transitTimeLabels": []
        },
        "warehouseBasedDeliveryTimes": [
          {
            "carrier": "",
            "carrierService": "",
            "originAdministrativeArea": "",
            "originCity": "",
            "originCountry": "",
            "originPostalCode": "",
            "originStreetAddress": "",
            "warehouseName": ""
          }
        ]
      },
      "eligibility": "",
      "minimumOrderValue": {
        "currency": "",
        "value": ""
      },
      "minimumOrderValueTable": {
        "storeCodeSetWithMovs": [
          {
            "storeCodes": [],
            "value": {}
          }
        ]
      },
      "name": "",
      "pickupService": {
        "carrierName": "",
        "serviceName": ""
      },
      "rateGroups": [
        {
          "applicableShippingLabels": [],
          "carrierRates": [
            {
              "carrierName": "",
              "carrierService": "",
              "flatAdjustment": {},
              "name": "",
              "originPostalCode": "",
              "percentageAdjustment": ""
            }
          ],
          "mainTable": {
            "columnHeaders": {
              "locations": [
                {
                  "locationIds": []
                }
              ],
              "numberOfItems": [],
              "postalCodeGroupNames": [],
              "prices": [
                {}
              ],
              "weights": [
                {
                  "unit": "",
                  "value": ""
                }
              ]
            },
            "name": "",
            "rowHeaders": {},
            "rows": [
              {
                "cells": [
                  {
                    "carrierRateName": "",
                    "flatRate": {},
                    "noShipping": false,
                    "pricePercentage": "",
                    "subtableName": ""
                  }
                ]
              }
            ]
          },
          "name": "",
          "singleValue": {},
          "subtables": [
            {}
          ]
        }
      ],
      "shipmentType": ""
    }
  ],
  "warehouses": [
    {
      "businessDayConfig": {},
      "cutoffTime": {
        "hour": 0,
        "minute": 0
      },
      "handlingDays": "",
      "name": "",
      "shippingAddress": {
        "administrativeArea": "",
        "city": "",
        "country": "",
        "postalCode": "",
        "streetAddress": ""
      }
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:merchantId/shippingsettings/:accountId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "postalCodeGroups": [
    {
      "country": "",
      "name": "",
      "postalCodeRanges": [
        {
          "postalCodeRangeBegin": "",
          "postalCodeRangeEnd": ""
        }
      ]
    }
  ],
  "services": [
    {
      "active": false,
      "currency": "",
      "deliveryCountry": "",
      "deliveryTime": {
        "cutoffTime": {
          "hour": 0,
          "minute": 0,
          "timezone": ""
        },
        "handlingBusinessDayConfig": {
          "businessDays": []
        },
        "holidayCutoffs": [
          {
            "deadlineDate": "",
            "deadlineHour": 0,
            "deadlineTimezone": "",
            "holidayId": "",
            "visibleFromDate": ""
          }
        ],
        "maxHandlingTimeInDays": 0,
        "maxTransitTimeInDays": 0,
        "minHandlingTimeInDays": 0,
        "minTransitTimeInDays": 0,
        "transitBusinessDayConfig": {},
        "transitTimeTable": {
          "postalCodeGroupNames": [],
          "rows": [
            {
              "values": [
                {
                  "maxTransitTimeInDays": 0,
                  "minTransitTimeInDays": 0
                }
              ]
            }
          ],
          "transitTimeLabels": []
        },
        "warehouseBasedDeliveryTimes": [
          {
            "carrier": "",
            "carrierService": "",
            "originAdministrativeArea": "",
            "originCity": "",
            "originCountry": "",
            "originPostalCode": "",
            "originStreetAddress": "",
            "warehouseName": ""
          }
        ]
      },
      "eligibility": "",
      "minimumOrderValue": {
        "currency": "",
        "value": ""
      },
      "minimumOrderValueTable": {
        "storeCodeSetWithMovs": [
          {
            "storeCodes": [],
            "value": {}
          }
        ]
      },
      "name": "",
      "pickupService": {
        "carrierName": "",
        "serviceName": ""
      },
      "rateGroups": [
        {
          "applicableShippingLabels": [],
          "carrierRates": [
            {
              "carrierName": "",
              "carrierService": "",
              "flatAdjustment": {},
              "name": "",
              "originPostalCode": "",
              "percentageAdjustment": ""
            }
          ],
          "mainTable": {
            "columnHeaders": {
              "locations": [
                {
                  "locationIds": []
                }
              ],
              "numberOfItems": [],
              "postalCodeGroupNames": [],
              "prices": [
                {}
              ],
              "weights": [
                {
                  "unit": "",
                  "value": ""
                }
              ]
            },
            "name": "",
            "rowHeaders": {},
            "rows": [
              {
                "cells": [
                  {
                    "carrierRateName": "",
                    "flatRate": {},
                    "noShipping": false,
                    "pricePercentage": "",
                    "subtableName": ""
                  }
                ]
              }
            ]
          },
          "name": "",
          "singleValue": {},
          "subtables": [
            {}
          ]
        }
      ],
      "shipmentType": ""
    }
  ],
  "warehouses": [
    {
      "businessDayConfig": {},
      "cutoffTime": {
        "hour": 0,
        "minute": 0
      },
      "handlingDays": "",
      "name": "",
      "shippingAddress": {
        "administrativeArea": "",
        "city": "",
        "country": "",
        "postalCode": "",
        "streetAddress": ""
      }
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:merchantId/shippingsettings/:accountId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:merchantId/shippingsettings/:accountId"

payload = {
    "accountId": "",
    "postalCodeGroups": [
        {
            "country": "",
            "name": "",
            "postalCodeRanges": [
                {
                    "postalCodeRangeBegin": "",
                    "postalCodeRangeEnd": ""
                }
            ]
        }
    ],
    "services": [
        {
            "active": False,
            "currency": "",
            "deliveryCountry": "",
            "deliveryTime": {
                "cutoffTime": {
                    "hour": 0,
                    "minute": 0,
                    "timezone": ""
                },
                "handlingBusinessDayConfig": { "businessDays": [] },
                "holidayCutoffs": [
                    {
                        "deadlineDate": "",
                        "deadlineHour": 0,
                        "deadlineTimezone": "",
                        "holidayId": "",
                        "visibleFromDate": ""
                    }
                ],
                "maxHandlingTimeInDays": 0,
                "maxTransitTimeInDays": 0,
                "minHandlingTimeInDays": 0,
                "minTransitTimeInDays": 0,
                "transitBusinessDayConfig": {},
                "transitTimeTable": {
                    "postalCodeGroupNames": [],
                    "rows": [{ "values": [
                                {
                                    "maxTransitTimeInDays": 0,
                                    "minTransitTimeInDays": 0
                                }
                            ] }],
                    "transitTimeLabels": []
                },
                "warehouseBasedDeliveryTimes": [
                    {
                        "carrier": "",
                        "carrierService": "",
                        "originAdministrativeArea": "",
                        "originCity": "",
                        "originCountry": "",
                        "originPostalCode": "",
                        "originStreetAddress": "",
                        "warehouseName": ""
                    }
                ]
            },
            "eligibility": "",
            "minimumOrderValue": {
                "currency": "",
                "value": ""
            },
            "minimumOrderValueTable": { "storeCodeSetWithMovs": [
                    {
                        "storeCodes": [],
                        "value": {}
                    }
                ] },
            "name": "",
            "pickupService": {
                "carrierName": "",
                "serviceName": ""
            },
            "rateGroups": [
                {
                    "applicableShippingLabels": [],
                    "carrierRates": [
                        {
                            "carrierName": "",
                            "carrierService": "",
                            "flatAdjustment": {},
                            "name": "",
                            "originPostalCode": "",
                            "percentageAdjustment": ""
                        }
                    ],
                    "mainTable": {
                        "columnHeaders": {
                            "locations": [{ "locationIds": [] }],
                            "numberOfItems": [],
                            "postalCodeGroupNames": [],
                            "prices": [{}],
                            "weights": [
                                {
                                    "unit": "",
                                    "value": ""
                                }
                            ]
                        },
                        "name": "",
                        "rowHeaders": {},
                        "rows": [{ "cells": [
                                    {
                                        "carrierRateName": "",
                                        "flatRate": {},
                                        "noShipping": False,
                                        "pricePercentage": "",
                                        "subtableName": ""
                                    }
                                ] }]
                    },
                    "name": "",
                    "singleValue": {},
                    "subtables": [{}]
                }
            ],
            "shipmentType": ""
        }
    ],
    "warehouses": [
        {
            "businessDayConfig": {},
            "cutoffTime": {
                "hour": 0,
                "minute": 0
            },
            "handlingDays": "",
            "name": "",
            "shippingAddress": {
                "administrativeArea": "",
                "city": "",
                "country": "",
                "postalCode": "",
                "streetAddress": ""
            }
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:merchantId/shippingsettings/:accountId"

payload <- "{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:merchantId/shippingsettings/:accountId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:merchantId/shippingsettings/:accountId') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"postalCodeGroups\": [\n    {\n      \"country\": \"\",\n      \"name\": \"\",\n      \"postalCodeRanges\": [\n        {\n          \"postalCodeRangeBegin\": \"\",\n          \"postalCodeRangeEnd\": \"\"\n        }\n      ]\n    }\n  ],\n  \"services\": [\n    {\n      \"active\": false,\n      \"currency\": \"\",\n      \"deliveryCountry\": \"\",\n      \"deliveryTime\": {\n        \"cutoffTime\": {\n          \"hour\": 0,\n          \"minute\": 0,\n          \"timezone\": \"\"\n        },\n        \"handlingBusinessDayConfig\": {\n          \"businessDays\": []\n        },\n        \"holidayCutoffs\": [\n          {\n            \"deadlineDate\": \"\",\n            \"deadlineHour\": 0,\n            \"deadlineTimezone\": \"\",\n            \"holidayId\": \"\",\n            \"visibleFromDate\": \"\"\n          }\n        ],\n        \"maxHandlingTimeInDays\": 0,\n        \"maxTransitTimeInDays\": 0,\n        \"minHandlingTimeInDays\": 0,\n        \"minTransitTimeInDays\": 0,\n        \"transitBusinessDayConfig\": {},\n        \"transitTimeTable\": {\n          \"postalCodeGroupNames\": [],\n          \"rows\": [\n            {\n              \"values\": [\n                {\n                  \"maxTransitTimeInDays\": 0,\n                  \"minTransitTimeInDays\": 0\n                }\n              ]\n            }\n          ],\n          \"transitTimeLabels\": []\n        },\n        \"warehouseBasedDeliveryTimes\": [\n          {\n            \"carrier\": \"\",\n            \"carrierService\": \"\",\n            \"originAdministrativeArea\": \"\",\n            \"originCity\": \"\",\n            \"originCountry\": \"\",\n            \"originPostalCode\": \"\",\n            \"originStreetAddress\": \"\",\n            \"warehouseName\": \"\"\n          }\n        ]\n      },\n      \"eligibility\": \"\",\n      \"minimumOrderValue\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"minimumOrderValueTable\": {\n        \"storeCodeSetWithMovs\": [\n          {\n            \"storeCodes\": [],\n            \"value\": {}\n          }\n        ]\n      },\n      \"name\": \"\",\n      \"pickupService\": {\n        \"carrierName\": \"\",\n        \"serviceName\": \"\"\n      },\n      \"rateGroups\": [\n        {\n          \"applicableShippingLabels\": [],\n          \"carrierRates\": [\n            {\n              \"carrierName\": \"\",\n              \"carrierService\": \"\",\n              \"flatAdjustment\": {},\n              \"name\": \"\",\n              \"originPostalCode\": \"\",\n              \"percentageAdjustment\": \"\"\n            }\n          ],\n          \"mainTable\": {\n            \"columnHeaders\": {\n              \"locations\": [\n                {\n                  \"locationIds\": []\n                }\n              ],\n              \"numberOfItems\": [],\n              \"postalCodeGroupNames\": [],\n              \"prices\": [\n                {}\n              ],\n              \"weights\": [\n                {\n                  \"unit\": \"\",\n                  \"value\": \"\"\n                }\n              ]\n            },\n            \"name\": \"\",\n            \"rowHeaders\": {},\n            \"rows\": [\n              {\n                \"cells\": [\n                  {\n                    \"carrierRateName\": \"\",\n                    \"flatRate\": {},\n                    \"noShipping\": false,\n                    \"pricePercentage\": \"\",\n                    \"subtableName\": \"\"\n                  }\n                ]\n              }\n            ]\n          },\n          \"name\": \"\",\n          \"singleValue\": {},\n          \"subtables\": [\n            {}\n          ]\n        }\n      ],\n      \"shipmentType\": \"\"\n    }\n  ],\n  \"warehouses\": [\n    {\n      \"businessDayConfig\": {},\n      \"cutoffTime\": {\n        \"hour\": 0,\n        \"minute\": 0\n      },\n      \"handlingDays\": \"\",\n      \"name\": \"\",\n      \"shippingAddress\": {\n        \"administrativeArea\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"postalCode\": \"\",\n        \"streetAddress\": \"\"\n      }\n    }\n  ]\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:merchantId/shippingsettings/:accountId";

    let payload = json!({
        "accountId": "",
        "postalCodeGroups": (
            json!({
                "country": "",
                "name": "",
                "postalCodeRanges": (
                    json!({
                        "postalCodeRangeBegin": "",
                        "postalCodeRangeEnd": ""
                    })
                )
            })
        ),
        "services": (
            json!({
                "active": false,
                "currency": "",
                "deliveryCountry": "",
                "deliveryTime": json!({
                    "cutoffTime": json!({
                        "hour": 0,
                        "minute": 0,
                        "timezone": ""
                    }),
                    "handlingBusinessDayConfig": json!({"businessDays": ()}),
                    "holidayCutoffs": (
                        json!({
                            "deadlineDate": "",
                            "deadlineHour": 0,
                            "deadlineTimezone": "",
                            "holidayId": "",
                            "visibleFromDate": ""
                        })
                    ),
                    "maxHandlingTimeInDays": 0,
                    "maxTransitTimeInDays": 0,
                    "minHandlingTimeInDays": 0,
                    "minTransitTimeInDays": 0,
                    "transitBusinessDayConfig": json!({}),
                    "transitTimeTable": json!({
                        "postalCodeGroupNames": (),
                        "rows": (json!({"values": (
                                    json!({
                                        "maxTransitTimeInDays": 0,
                                        "minTransitTimeInDays": 0
                                    })
                                )})),
                        "transitTimeLabels": ()
                    }),
                    "warehouseBasedDeliveryTimes": (
                        json!({
                            "carrier": "",
                            "carrierService": "",
                            "originAdministrativeArea": "",
                            "originCity": "",
                            "originCountry": "",
                            "originPostalCode": "",
                            "originStreetAddress": "",
                            "warehouseName": ""
                        })
                    )
                }),
                "eligibility": "",
                "minimumOrderValue": json!({
                    "currency": "",
                    "value": ""
                }),
                "minimumOrderValueTable": json!({"storeCodeSetWithMovs": (
                        json!({
                            "storeCodes": (),
                            "value": json!({})
                        })
                    )}),
                "name": "",
                "pickupService": json!({
                    "carrierName": "",
                    "serviceName": ""
                }),
                "rateGroups": (
                    json!({
                        "applicableShippingLabels": (),
                        "carrierRates": (
                            json!({
                                "carrierName": "",
                                "carrierService": "",
                                "flatAdjustment": json!({}),
                                "name": "",
                                "originPostalCode": "",
                                "percentageAdjustment": ""
                            })
                        ),
                        "mainTable": json!({
                            "columnHeaders": json!({
                                "locations": (json!({"locationIds": ()})),
                                "numberOfItems": (),
                                "postalCodeGroupNames": (),
                                "prices": (json!({})),
                                "weights": (
                                    json!({
                                        "unit": "",
                                        "value": ""
                                    })
                                )
                            }),
                            "name": "",
                            "rowHeaders": json!({}),
                            "rows": (json!({"cells": (
                                        json!({
                                            "carrierRateName": "",
                                            "flatRate": json!({}),
                                            "noShipping": false,
                                            "pricePercentage": "",
                                            "subtableName": ""
                                        })
                                    )}))
                        }),
                        "name": "",
                        "singleValue": json!({}),
                        "subtables": (json!({}))
                    })
                ),
                "shipmentType": ""
            })
        ),
        "warehouses": (
            json!({
                "businessDayConfig": json!({}),
                "cutoffTime": json!({
                    "hour": 0,
                    "minute": 0
                }),
                "handlingDays": "",
                "name": "",
                "shippingAddress": json!({
                    "administrativeArea": "",
                    "city": "",
                    "country": "",
                    "postalCode": "",
                    "streetAddress": ""
                })
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:merchantId/shippingsettings/:accountId \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "postalCodeGroups": [
    {
      "country": "",
      "name": "",
      "postalCodeRanges": [
        {
          "postalCodeRangeBegin": "",
          "postalCodeRangeEnd": ""
        }
      ]
    }
  ],
  "services": [
    {
      "active": false,
      "currency": "",
      "deliveryCountry": "",
      "deliveryTime": {
        "cutoffTime": {
          "hour": 0,
          "minute": 0,
          "timezone": ""
        },
        "handlingBusinessDayConfig": {
          "businessDays": []
        },
        "holidayCutoffs": [
          {
            "deadlineDate": "",
            "deadlineHour": 0,
            "deadlineTimezone": "",
            "holidayId": "",
            "visibleFromDate": ""
          }
        ],
        "maxHandlingTimeInDays": 0,
        "maxTransitTimeInDays": 0,
        "minHandlingTimeInDays": 0,
        "minTransitTimeInDays": 0,
        "transitBusinessDayConfig": {},
        "transitTimeTable": {
          "postalCodeGroupNames": [],
          "rows": [
            {
              "values": [
                {
                  "maxTransitTimeInDays": 0,
                  "minTransitTimeInDays": 0
                }
              ]
            }
          ],
          "transitTimeLabels": []
        },
        "warehouseBasedDeliveryTimes": [
          {
            "carrier": "",
            "carrierService": "",
            "originAdministrativeArea": "",
            "originCity": "",
            "originCountry": "",
            "originPostalCode": "",
            "originStreetAddress": "",
            "warehouseName": ""
          }
        ]
      },
      "eligibility": "",
      "minimumOrderValue": {
        "currency": "",
        "value": ""
      },
      "minimumOrderValueTable": {
        "storeCodeSetWithMovs": [
          {
            "storeCodes": [],
            "value": {}
          }
        ]
      },
      "name": "",
      "pickupService": {
        "carrierName": "",
        "serviceName": ""
      },
      "rateGroups": [
        {
          "applicableShippingLabels": [],
          "carrierRates": [
            {
              "carrierName": "",
              "carrierService": "",
              "flatAdjustment": {},
              "name": "",
              "originPostalCode": "",
              "percentageAdjustment": ""
            }
          ],
          "mainTable": {
            "columnHeaders": {
              "locations": [
                {
                  "locationIds": []
                }
              ],
              "numberOfItems": [],
              "postalCodeGroupNames": [],
              "prices": [
                {}
              ],
              "weights": [
                {
                  "unit": "",
                  "value": ""
                }
              ]
            },
            "name": "",
            "rowHeaders": {},
            "rows": [
              {
                "cells": [
                  {
                    "carrierRateName": "",
                    "flatRate": {},
                    "noShipping": false,
                    "pricePercentage": "",
                    "subtableName": ""
                  }
                ]
              }
            ]
          },
          "name": "",
          "singleValue": {},
          "subtables": [
            {}
          ]
        }
      ],
      "shipmentType": ""
    }
  ],
  "warehouses": [
    {
      "businessDayConfig": {},
      "cutoffTime": {
        "hour": 0,
        "minute": 0
      },
      "handlingDays": "",
      "name": "",
      "shippingAddress": {
        "administrativeArea": "",
        "city": "",
        "country": "",
        "postalCode": "",
        "streetAddress": ""
      }
    }
  ]
}'
echo '{
  "accountId": "",
  "postalCodeGroups": [
    {
      "country": "",
      "name": "",
      "postalCodeRanges": [
        {
          "postalCodeRangeBegin": "",
          "postalCodeRangeEnd": ""
        }
      ]
    }
  ],
  "services": [
    {
      "active": false,
      "currency": "",
      "deliveryCountry": "",
      "deliveryTime": {
        "cutoffTime": {
          "hour": 0,
          "minute": 0,
          "timezone": ""
        },
        "handlingBusinessDayConfig": {
          "businessDays": []
        },
        "holidayCutoffs": [
          {
            "deadlineDate": "",
            "deadlineHour": 0,
            "deadlineTimezone": "",
            "holidayId": "",
            "visibleFromDate": ""
          }
        ],
        "maxHandlingTimeInDays": 0,
        "maxTransitTimeInDays": 0,
        "minHandlingTimeInDays": 0,
        "minTransitTimeInDays": 0,
        "transitBusinessDayConfig": {},
        "transitTimeTable": {
          "postalCodeGroupNames": [],
          "rows": [
            {
              "values": [
                {
                  "maxTransitTimeInDays": 0,
                  "minTransitTimeInDays": 0
                }
              ]
            }
          ],
          "transitTimeLabels": []
        },
        "warehouseBasedDeliveryTimes": [
          {
            "carrier": "",
            "carrierService": "",
            "originAdministrativeArea": "",
            "originCity": "",
            "originCountry": "",
            "originPostalCode": "",
            "originStreetAddress": "",
            "warehouseName": ""
          }
        ]
      },
      "eligibility": "",
      "minimumOrderValue": {
        "currency": "",
        "value": ""
      },
      "minimumOrderValueTable": {
        "storeCodeSetWithMovs": [
          {
            "storeCodes": [],
            "value": {}
          }
        ]
      },
      "name": "",
      "pickupService": {
        "carrierName": "",
        "serviceName": ""
      },
      "rateGroups": [
        {
          "applicableShippingLabels": [],
          "carrierRates": [
            {
              "carrierName": "",
              "carrierService": "",
              "flatAdjustment": {},
              "name": "",
              "originPostalCode": "",
              "percentageAdjustment": ""
            }
          ],
          "mainTable": {
            "columnHeaders": {
              "locations": [
                {
                  "locationIds": []
                }
              ],
              "numberOfItems": [],
              "postalCodeGroupNames": [],
              "prices": [
                {}
              ],
              "weights": [
                {
                  "unit": "",
                  "value": ""
                }
              ]
            },
            "name": "",
            "rowHeaders": {},
            "rows": [
              {
                "cells": [
                  {
                    "carrierRateName": "",
                    "flatRate": {},
                    "noShipping": false,
                    "pricePercentage": "",
                    "subtableName": ""
                  }
                ]
              }
            ]
          },
          "name": "",
          "singleValue": {},
          "subtables": [
            {}
          ]
        }
      ],
      "shipmentType": ""
    }
  ],
  "warehouses": [
    {
      "businessDayConfig": {},
      "cutoffTime": {
        "hour": 0,
        "minute": 0
      },
      "handlingDays": "",
      "name": "",
      "shippingAddress": {
        "administrativeArea": "",
        "city": "",
        "country": "",
        "postalCode": "",
        "streetAddress": ""
      }
    }
  ]
}' |  \
  http PUT {{baseUrl}}/:merchantId/shippingsettings/:accountId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "postalCodeGroups": [\n    {\n      "country": "",\n      "name": "",\n      "postalCodeRanges": [\n        {\n          "postalCodeRangeBegin": "",\n          "postalCodeRangeEnd": ""\n        }\n      ]\n    }\n  ],\n  "services": [\n    {\n      "active": false,\n      "currency": "",\n      "deliveryCountry": "",\n      "deliveryTime": {\n        "cutoffTime": {\n          "hour": 0,\n          "minute": 0,\n          "timezone": ""\n        },\n        "handlingBusinessDayConfig": {\n          "businessDays": []\n        },\n        "holidayCutoffs": [\n          {\n            "deadlineDate": "",\n            "deadlineHour": 0,\n            "deadlineTimezone": "",\n            "holidayId": "",\n            "visibleFromDate": ""\n          }\n        ],\n        "maxHandlingTimeInDays": 0,\n        "maxTransitTimeInDays": 0,\n        "minHandlingTimeInDays": 0,\n        "minTransitTimeInDays": 0,\n        "transitBusinessDayConfig": {},\n        "transitTimeTable": {\n          "postalCodeGroupNames": [],\n          "rows": [\n            {\n              "values": [\n                {\n                  "maxTransitTimeInDays": 0,\n                  "minTransitTimeInDays": 0\n                }\n              ]\n            }\n          ],\n          "transitTimeLabels": []\n        },\n        "warehouseBasedDeliveryTimes": [\n          {\n            "carrier": "",\n            "carrierService": "",\n            "originAdministrativeArea": "",\n            "originCity": "",\n            "originCountry": "",\n            "originPostalCode": "",\n            "originStreetAddress": "",\n            "warehouseName": ""\n          }\n        ]\n      },\n      "eligibility": "",\n      "minimumOrderValue": {\n        "currency": "",\n        "value": ""\n      },\n      "minimumOrderValueTable": {\n        "storeCodeSetWithMovs": [\n          {\n            "storeCodes": [],\n            "value": {}\n          }\n        ]\n      },\n      "name": "",\n      "pickupService": {\n        "carrierName": "",\n        "serviceName": ""\n      },\n      "rateGroups": [\n        {\n          "applicableShippingLabels": [],\n          "carrierRates": [\n            {\n              "carrierName": "",\n              "carrierService": "",\n              "flatAdjustment": {},\n              "name": "",\n              "originPostalCode": "",\n              "percentageAdjustment": ""\n            }\n          ],\n          "mainTable": {\n            "columnHeaders": {\n              "locations": [\n                {\n                  "locationIds": []\n                }\n              ],\n              "numberOfItems": [],\n              "postalCodeGroupNames": [],\n              "prices": [\n                {}\n              ],\n              "weights": [\n                {\n                  "unit": "",\n                  "value": ""\n                }\n              ]\n            },\n            "name": "",\n            "rowHeaders": {},\n            "rows": [\n              {\n                "cells": [\n                  {\n                    "carrierRateName": "",\n                    "flatRate": {},\n                    "noShipping": false,\n                    "pricePercentage": "",\n                    "subtableName": ""\n                  }\n                ]\n              }\n            ]\n          },\n          "name": "",\n          "singleValue": {},\n          "subtables": [\n            {}\n          ]\n        }\n      ],\n      "shipmentType": ""\n    }\n  ],\n  "warehouses": [\n    {\n      "businessDayConfig": {},\n      "cutoffTime": {\n        "hour": 0,\n        "minute": 0\n      },\n      "handlingDays": "",\n      "name": "",\n      "shippingAddress": {\n        "administrativeArea": "",\n        "city": "",\n        "country": "",\n        "postalCode": "",\n        "streetAddress": ""\n      }\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/:merchantId/shippingsettings/:accountId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "postalCodeGroups": [
    [
      "country": "",
      "name": "",
      "postalCodeRanges": [
        [
          "postalCodeRangeBegin": "",
          "postalCodeRangeEnd": ""
        ]
      ]
    ]
  ],
  "services": [
    [
      "active": false,
      "currency": "",
      "deliveryCountry": "",
      "deliveryTime": [
        "cutoffTime": [
          "hour": 0,
          "minute": 0,
          "timezone": ""
        ],
        "handlingBusinessDayConfig": ["businessDays": []],
        "holidayCutoffs": [
          [
            "deadlineDate": "",
            "deadlineHour": 0,
            "deadlineTimezone": "",
            "holidayId": "",
            "visibleFromDate": ""
          ]
        ],
        "maxHandlingTimeInDays": 0,
        "maxTransitTimeInDays": 0,
        "minHandlingTimeInDays": 0,
        "minTransitTimeInDays": 0,
        "transitBusinessDayConfig": [],
        "transitTimeTable": [
          "postalCodeGroupNames": [],
          "rows": [["values": [
                [
                  "maxTransitTimeInDays": 0,
                  "minTransitTimeInDays": 0
                ]
              ]]],
          "transitTimeLabels": []
        ],
        "warehouseBasedDeliveryTimes": [
          [
            "carrier": "",
            "carrierService": "",
            "originAdministrativeArea": "",
            "originCity": "",
            "originCountry": "",
            "originPostalCode": "",
            "originStreetAddress": "",
            "warehouseName": ""
          ]
        ]
      ],
      "eligibility": "",
      "minimumOrderValue": [
        "currency": "",
        "value": ""
      ],
      "minimumOrderValueTable": ["storeCodeSetWithMovs": [
          [
            "storeCodes": [],
            "value": []
          ]
        ]],
      "name": "",
      "pickupService": [
        "carrierName": "",
        "serviceName": ""
      ],
      "rateGroups": [
        [
          "applicableShippingLabels": [],
          "carrierRates": [
            [
              "carrierName": "",
              "carrierService": "",
              "flatAdjustment": [],
              "name": "",
              "originPostalCode": "",
              "percentageAdjustment": ""
            ]
          ],
          "mainTable": [
            "columnHeaders": [
              "locations": [["locationIds": []]],
              "numberOfItems": [],
              "postalCodeGroupNames": [],
              "prices": [[]],
              "weights": [
                [
                  "unit": "",
                  "value": ""
                ]
              ]
            ],
            "name": "",
            "rowHeaders": [],
            "rows": [["cells": [
                  [
                    "carrierRateName": "",
                    "flatRate": [],
                    "noShipping": false,
                    "pricePercentage": "",
                    "subtableName": ""
                  ]
                ]]]
          ],
          "name": "",
          "singleValue": [],
          "subtables": [[]]
        ]
      ],
      "shipmentType": ""
    ]
  ],
  "warehouses": [
    [
      "businessDayConfig": [],
      "cutoffTime": [
        "hour": 0,
        "minute": 0
      ],
      "handlingDays": "",
      "name": "",
      "shippingAddress": [
        "administrativeArea": "",
        "city": "",
        "country": "",
        "postalCode": "",
        "streetAddress": ""
      ]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:merchantId/shippingsettings/:accountId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()