POST Authorize dispatch for fulfillment order
{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill
HEADERS

Content-Type
Accept
QUERY PARAMS

affiliateId
accountName
environment
orderId
BODY json

{
  "marketplaceOrderId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"marketplaceOrderId\": \"\"\n}");

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

(client/post "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill" {:headers {:accept ""}
                                                                                                                         :query-params {:affiliateId ""}
                                                                                                                         :content-type :json
                                                                                                                         :form-params {:marketplaceOrderId ""}})
require "http/client"

url = "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId="
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}
reqBody = "{\n  \"marketplaceOrderId\": \"\"\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}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId="),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"marketplaceOrderId\": \"\"\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}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
request.AddParameter("", "{\n  \"marketplaceOrderId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId="

	payload := strings.NewReader("{\n  \"marketplaceOrderId\": \"\"\n}")

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

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
POST /baseUrl/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId= HTTP/1.1
Content-Type: 
Accept: 
Host: example.com
Content-Length: 30

{
  "marketplaceOrderId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .setBody("{\n  \"marketplaceOrderId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId="))
    .header("content-type", "")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"marketplaceOrderId\": \"\"\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  \"marketplaceOrderId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=")
  .header("content-type", "")
  .header("accept", "")
  .body("{\n  \"marketplaceOrderId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  marketplaceOrderId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill',
  params: {affiliateId: ''},
  headers: {'content-type': '', accept: ''},
  data: {marketplaceOrderId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"marketplaceOrderId":""}'
};

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}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  },
  processData: false,
  data: '{\n  "marketplaceOrderId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"marketplaceOrderId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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({marketplaceOrderId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill',
  qs: {affiliateId: ''},
  headers: {'content-type': '', accept: ''},
  body: {marketplaceOrderId: ''},
  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}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill');

req.query({
  affiliateId: ''
});

req.headers({
  'content-type': '',
  accept: ''
});

req.type('json');
req.send({
  marketplaceOrderId: ''
});

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}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill',
  params: {affiliateId: ''},
  headers: {'content-type': '', accept: ''},
  data: {marketplaceOrderId: ''}
};

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

const url = '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"marketplaceOrderId":""}'
};

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": @"",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"marketplaceOrderId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId="]
                                                       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}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"marketplaceOrderId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=",
  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([
    'marketplaceOrderId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=', [
  'body' => '{
  "marketplaceOrderId": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'affiliateId' => ''
]);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'marketplaceOrderId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'affiliateId' => ''
]));

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=' -Method POST -Headers $headers -ContentType '' -Body '{
  "marketplaceOrderId": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=' -Method POST -Headers $headers -ContentType '' -Body '{
  "marketplaceOrderId": ""
}'
import http.client

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

payload = "{\n  \"marketplaceOrderId\": \"\"\n}"

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("POST", "/baseUrl/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=", payload, headers)

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

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

url = "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill"

querystring = {"affiliateId":""}

payload = { "marketplaceOrderId": "" }
headers = {
    "content-type": "",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill"

queryString <- list(affiliateId = "")

payload <- "{\n  \"marketplaceOrderId\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request["accept"] = ''
request.body = "{\n  \"marketplaceOrderId\": \"\"\n}"

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

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

response = conn.post('/baseUrl/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill') do |req|
  req.headers['accept'] = ''
  req.params['affiliateId'] = ''
  req.body = "{\n  \"marketplaceOrderId\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill";

    let querystring = [
        ("affiliateId", ""),
    ];

    let payload = json!({"marketplaceOrderId": ""});

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

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

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=' \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "marketplaceOrderId": ""
}'
echo '{
  "marketplaceOrderId": ""
}' |  \
  http POST '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=' \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --body-data '{\n  "marketplaceOrderId": ""\n}' \
  --output-document \
  - '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId='
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]
let parameters = ["marketplaceOrderId": ""] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders/:orderId/fulfill?affiliateId=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "marketplaceOrderId": "123"
}
POST Fulfillment simulation - External Marketplace
{{baseUrl}}/api/checkout/pub/orderForms/simulation
HEADERS

Content-Type
Accept
BODY json

{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "customerClass": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "profileCompleteOnLoading": false,
    "profileErrorOnLoading": false,
    "stateInscription": "",
    "tradeName": ""
  },
  "country": "",
  "geoCoordinates": [],
  "isCheckedIn": false,
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "marketingData": {
    "coupon": "",
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "postalCode": "",
  "selectedSla": "",
  "storeId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/checkout/pub/orderForms/simulation");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/checkout/pub/orderForms/simulation" {:headers {:accept ""}
                                                                                   :content-type :json
                                                                                   :form-params {:clientProfileData {:corporateDocument ""
                                                                                                                     :corporateName ""
                                                                                                                     :corporatePhone ""
                                                                                                                     :customerClass ""
                                                                                                                     :document ""
                                                                                                                     :documentType ""
                                                                                                                     :email ""
                                                                                                                     :firstName ""
                                                                                                                     :isCorporate false
                                                                                                                     :lastName ""
                                                                                                                     :phone ""
                                                                                                                     :profileCompleteOnLoading false
                                                                                                                     :profileErrorOnLoading false
                                                                                                                     :stateInscription ""
                                                                                                                     :tradeName ""}
                                                                                                 :country ""
                                                                                                 :geoCoordinates []
                                                                                                 :isCheckedIn false
                                                                                                 :items [{:id ""
                                                                                                          :quantity 0
                                                                                                          :seller ""}]
                                                                                                 :marketingData {:coupon ""
                                                                                                                 :utmCampaign ""
                                                                                                                 :utmMedium ""
                                                                                                                 :utmSource ""
                                                                                                                 :utmiCampaign ""
                                                                                                                 :utmiPage ""
                                                                                                                 :utmiPart ""}
                                                                                                 :postalCode ""
                                                                                                 :selectedSla ""
                                                                                                 :storeId ""}})
require "http/client"

url = "{{baseUrl}}/api/checkout/pub/orderForms/simulation"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}
reqBody = "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/checkout/pub/orderForms/simulation"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/checkout/pub/orderForms/simulation");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
request.AddParameter("", "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/checkout/pub/orderForms/simulation"

	payload := strings.NewReader("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}")

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

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
POST /baseUrl/api/checkout/pub/orderForms/simulation HTTP/1.1
Content-Type: 
Accept: 
Host: example.com
Content-Length: 786

{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "customerClass": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "profileCompleteOnLoading": false,
    "profileErrorOnLoading": false,
    "stateInscription": "",
    "tradeName": ""
  },
  "country": "",
  "geoCoordinates": [],
  "isCheckedIn": false,
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "marketingData": {
    "coupon": "",
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "postalCode": "",
  "selectedSla": "",
  "storeId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/checkout/pub/orderForms/simulation")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .setBody("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/checkout/pub/orderForms/simulation"))
    .header("content-type", "")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\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  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/checkout/pub/orderForms/simulation")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/checkout/pub/orderForms/simulation")
  .header("content-type", "")
  .header("accept", "")
  .body("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  clientProfileData: {
    corporateDocument: '',
    corporateName: '',
    corporatePhone: '',
    customerClass: '',
    document: '',
    documentType: '',
    email: '',
    firstName: '',
    isCorporate: false,
    lastName: '',
    phone: '',
    profileCompleteOnLoading: false,
    profileErrorOnLoading: false,
    stateInscription: '',
    tradeName: ''
  },
  country: '',
  geoCoordinates: [],
  isCheckedIn: false,
  items: [
    {
      id: '',
      quantity: 0,
      seller: ''
    }
  ],
  marketingData: {
    coupon: '',
    utmCampaign: '',
    utmMedium: '',
    utmSource: '',
    utmiCampaign: '',
    utmiPage: '',
    utmiPart: ''
  },
  postalCode: '',
  selectedSla: '',
  storeId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/api/checkout/pub/orderForms/simulation');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/checkout/pub/orderForms/simulation',
  headers: {'content-type': '', accept: ''},
  data: {
    clientProfileData: {
      corporateDocument: '',
      corporateName: '',
      corporatePhone: '',
      customerClass: '',
      document: '',
      documentType: '',
      email: '',
      firstName: '',
      isCorporate: false,
      lastName: '',
      phone: '',
      profileCompleteOnLoading: false,
      profileErrorOnLoading: false,
      stateInscription: '',
      tradeName: ''
    },
    country: '',
    geoCoordinates: [],
    isCheckedIn: false,
    items: [{id: '', quantity: 0, seller: ''}],
    marketingData: {
      coupon: '',
      utmCampaign: '',
      utmMedium: '',
      utmSource: '',
      utmiCampaign: '',
      utmiPage: '',
      utmiPart: ''
    },
    postalCode: '',
    selectedSla: '',
    storeId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/checkout/pub/orderForms/simulation';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"clientProfileData":{"corporateDocument":"","corporateName":"","corporatePhone":"","customerClass":"","document":"","documentType":"","email":"","firstName":"","isCorporate":false,"lastName":"","phone":"","profileCompleteOnLoading":false,"profileErrorOnLoading":false,"stateInscription":"","tradeName":""},"country":"","geoCoordinates":[],"isCheckedIn":false,"items":[{"id":"","quantity":0,"seller":""}],"marketingData":{"coupon":"","utmCampaign":"","utmMedium":"","utmSource":"","utmiCampaign":"","utmiPage":"","utmiPart":""},"postalCode":"","selectedSla":"","storeId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/checkout/pub/orderForms/simulation',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  },
  processData: false,
  data: '{\n  "clientProfileData": {\n    "corporateDocument": "",\n    "corporateName": "",\n    "corporatePhone": "",\n    "customerClass": "",\n    "document": "",\n    "documentType": "",\n    "email": "",\n    "firstName": "",\n    "isCorporate": false,\n    "lastName": "",\n    "phone": "",\n    "profileCompleteOnLoading": false,\n    "profileErrorOnLoading": false,\n    "stateInscription": "",\n    "tradeName": ""\n  },\n  "country": "",\n  "geoCoordinates": [],\n  "isCheckedIn": false,\n  "items": [\n    {\n      "id": "",\n      "quantity": 0,\n      "seller": ""\n    }\n  ],\n  "marketingData": {\n    "coupon": "",\n    "utmCampaign": "",\n    "utmMedium": "",\n    "utmSource": "",\n    "utmiCampaign": "",\n    "utmiPage": "",\n    "utmiPart": ""\n  },\n  "postalCode": "",\n  "selectedSla": "",\n  "storeId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/checkout/pub/orderForms/simulation")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/checkout/pub/orderForms/simulation',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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({
  clientProfileData: {
    corporateDocument: '',
    corporateName: '',
    corporatePhone: '',
    customerClass: '',
    document: '',
    documentType: '',
    email: '',
    firstName: '',
    isCorporate: false,
    lastName: '',
    phone: '',
    profileCompleteOnLoading: false,
    profileErrorOnLoading: false,
    stateInscription: '',
    tradeName: ''
  },
  country: '',
  geoCoordinates: [],
  isCheckedIn: false,
  items: [{id: '', quantity: 0, seller: ''}],
  marketingData: {
    coupon: '',
    utmCampaign: '',
    utmMedium: '',
    utmSource: '',
    utmiCampaign: '',
    utmiPage: '',
    utmiPart: ''
  },
  postalCode: '',
  selectedSla: '',
  storeId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/checkout/pub/orderForms/simulation',
  headers: {'content-type': '', accept: ''},
  body: {
    clientProfileData: {
      corporateDocument: '',
      corporateName: '',
      corporatePhone: '',
      customerClass: '',
      document: '',
      documentType: '',
      email: '',
      firstName: '',
      isCorporate: false,
      lastName: '',
      phone: '',
      profileCompleteOnLoading: false,
      profileErrorOnLoading: false,
      stateInscription: '',
      tradeName: ''
    },
    country: '',
    geoCoordinates: [],
    isCheckedIn: false,
    items: [{id: '', quantity: 0, seller: ''}],
    marketingData: {
      coupon: '',
      utmCampaign: '',
      utmMedium: '',
      utmSource: '',
      utmiCampaign: '',
      utmiPage: '',
      utmiPart: ''
    },
    postalCode: '',
    selectedSla: '',
    storeId: ''
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/api/checkout/pub/orderForms/simulation');

req.headers({
  'content-type': '',
  accept: ''
});

req.type('json');
req.send({
  clientProfileData: {
    corporateDocument: '',
    corporateName: '',
    corporatePhone: '',
    customerClass: '',
    document: '',
    documentType: '',
    email: '',
    firstName: '',
    isCorporate: false,
    lastName: '',
    phone: '',
    profileCompleteOnLoading: false,
    profileErrorOnLoading: false,
    stateInscription: '',
    tradeName: ''
  },
  country: '',
  geoCoordinates: [],
  isCheckedIn: false,
  items: [
    {
      id: '',
      quantity: 0,
      seller: ''
    }
  ],
  marketingData: {
    coupon: '',
    utmCampaign: '',
    utmMedium: '',
    utmSource: '',
    utmiCampaign: '',
    utmiPage: '',
    utmiPart: ''
  },
  postalCode: '',
  selectedSla: '',
  storeId: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/checkout/pub/orderForms/simulation',
  headers: {'content-type': '', accept: ''},
  data: {
    clientProfileData: {
      corporateDocument: '',
      corporateName: '',
      corporatePhone: '',
      customerClass: '',
      document: '',
      documentType: '',
      email: '',
      firstName: '',
      isCorporate: false,
      lastName: '',
      phone: '',
      profileCompleteOnLoading: false,
      profileErrorOnLoading: false,
      stateInscription: '',
      tradeName: ''
    },
    country: '',
    geoCoordinates: [],
    isCheckedIn: false,
    items: [{id: '', quantity: 0, seller: ''}],
    marketingData: {
      coupon: '',
      utmCampaign: '',
      utmMedium: '',
      utmSource: '',
      utmiCampaign: '',
      utmiPage: '',
      utmiPart: ''
    },
    postalCode: '',
    selectedSla: '',
    storeId: ''
  }
};

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

const url = '{{baseUrl}}/api/checkout/pub/orderForms/simulation';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"clientProfileData":{"corporateDocument":"","corporateName":"","corporatePhone":"","customerClass":"","document":"","documentType":"","email":"","firstName":"","isCorporate":false,"lastName":"","phone":"","profileCompleteOnLoading":false,"profileErrorOnLoading":false,"stateInscription":"","tradeName":""},"country":"","geoCoordinates":[],"isCheckedIn":false,"items":[{"id":"","quantity":0,"seller":""}],"marketingData":{"coupon":"","utmCampaign":"","utmMedium":"","utmSource":"","utmiCampaign":"","utmiPage":"","utmiPart":""},"postalCode":"","selectedSla":"","storeId":""}'
};

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": @"",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"clientProfileData": @{ @"corporateDocument": @"", @"corporateName": @"", @"corporatePhone": @"", @"customerClass": @"", @"document": @"", @"documentType": @"", @"email": @"", @"firstName": @"", @"isCorporate": @NO, @"lastName": @"", @"phone": @"", @"profileCompleteOnLoading": @NO, @"profileErrorOnLoading": @NO, @"stateInscription": @"", @"tradeName": @"" },
                              @"country": @"",
                              @"geoCoordinates": @[  ],
                              @"isCheckedIn": @NO,
                              @"items": @[ @{ @"id": @"", @"quantity": @0, @"seller": @"" } ],
                              @"marketingData": @{ @"coupon": @"", @"utmCampaign": @"", @"utmMedium": @"", @"utmSource": @"", @"utmiCampaign": @"", @"utmiPage": @"", @"utmiPart": @"" },
                              @"postalCode": @"",
                              @"selectedSla": @"",
                              @"storeId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/checkout/pub/orderForms/simulation"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/api/checkout/pub/orderForms/simulation" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/checkout/pub/orderForms/simulation",
  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([
    'clientProfileData' => [
        'corporateDocument' => '',
        'corporateName' => '',
        'corporatePhone' => '',
        'customerClass' => '',
        'document' => '',
        'documentType' => '',
        'email' => '',
        'firstName' => '',
        'isCorporate' => null,
        'lastName' => '',
        'phone' => '',
        'profileCompleteOnLoading' => null,
        'profileErrorOnLoading' => null,
        'stateInscription' => '',
        'tradeName' => ''
    ],
    'country' => '',
    'geoCoordinates' => [
        
    ],
    'isCheckedIn' => null,
    'items' => [
        [
                'id' => '',
                'quantity' => 0,
                'seller' => ''
        ]
    ],
    'marketingData' => [
        'coupon' => '',
        'utmCampaign' => '',
        'utmMedium' => '',
        'utmSource' => '',
        'utmiCampaign' => '',
        'utmiPage' => '',
        'utmiPart' => ''
    ],
    'postalCode' => '',
    'selectedSla' => '',
    'storeId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/checkout/pub/orderForms/simulation', [
  'body' => '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "customerClass": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "profileCompleteOnLoading": false,
    "profileErrorOnLoading": false,
    "stateInscription": "",
    "tradeName": ""
  },
  "country": "",
  "geoCoordinates": [],
  "isCheckedIn": false,
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "marketingData": {
    "coupon": "",
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "postalCode": "",
  "selectedSla": "",
  "storeId": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/checkout/pub/orderForms/simulation');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'clientProfileData' => [
    'corporateDocument' => '',
    'corporateName' => '',
    'corporatePhone' => '',
    'customerClass' => '',
    'document' => '',
    'documentType' => '',
    'email' => '',
    'firstName' => '',
    'isCorporate' => null,
    'lastName' => '',
    'phone' => '',
    'profileCompleteOnLoading' => null,
    'profileErrorOnLoading' => null,
    'stateInscription' => '',
    'tradeName' => ''
  ],
  'country' => '',
  'geoCoordinates' => [
    
  ],
  'isCheckedIn' => null,
  'items' => [
    [
        'id' => '',
        'quantity' => 0,
        'seller' => ''
    ]
  ],
  'marketingData' => [
    'coupon' => '',
    'utmCampaign' => '',
    'utmMedium' => '',
    'utmSource' => '',
    'utmiCampaign' => '',
    'utmiPage' => '',
    'utmiPart' => ''
  ],
  'postalCode' => '',
  'selectedSla' => '',
  'storeId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'clientProfileData' => [
    'corporateDocument' => '',
    'corporateName' => '',
    'corporatePhone' => '',
    'customerClass' => '',
    'document' => '',
    'documentType' => '',
    'email' => '',
    'firstName' => '',
    'isCorporate' => null,
    'lastName' => '',
    'phone' => '',
    'profileCompleteOnLoading' => null,
    'profileErrorOnLoading' => null,
    'stateInscription' => '',
    'tradeName' => ''
  ],
  'country' => '',
  'geoCoordinates' => [
    
  ],
  'isCheckedIn' => null,
  'items' => [
    [
        'id' => '',
        'quantity' => 0,
        'seller' => ''
    ]
  ],
  'marketingData' => [
    'coupon' => '',
    'utmCampaign' => '',
    'utmMedium' => '',
    'utmSource' => '',
    'utmiCampaign' => '',
    'utmiPage' => '',
    'utmiPart' => ''
  ],
  'postalCode' => '',
  'selectedSla' => '',
  'storeId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/checkout/pub/orderForms/simulation');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/checkout/pub/orderForms/simulation' -Method POST -Headers $headers -ContentType '' -Body '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "customerClass": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "profileCompleteOnLoading": false,
    "profileErrorOnLoading": false,
    "stateInscription": "",
    "tradeName": ""
  },
  "country": "",
  "geoCoordinates": [],
  "isCheckedIn": false,
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "marketingData": {
    "coupon": "",
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "postalCode": "",
  "selectedSla": "",
  "storeId": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/checkout/pub/orderForms/simulation' -Method POST -Headers $headers -ContentType '' -Body '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "customerClass": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "profileCompleteOnLoading": false,
    "profileErrorOnLoading": false,
    "stateInscription": "",
    "tradeName": ""
  },
  "country": "",
  "geoCoordinates": [],
  "isCheckedIn": false,
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "marketingData": {
    "coupon": "",
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "postalCode": "",
  "selectedSla": "",
  "storeId": ""
}'
import http.client

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

payload = "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}"

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("POST", "/baseUrl/api/checkout/pub/orderForms/simulation", payload, headers)

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

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

url = "{{baseUrl}}/api/checkout/pub/orderForms/simulation"

payload = {
    "clientProfileData": {
        "corporateDocument": "",
        "corporateName": "",
        "corporatePhone": "",
        "customerClass": "",
        "document": "",
        "documentType": "",
        "email": "",
        "firstName": "",
        "isCorporate": False,
        "lastName": "",
        "phone": "",
        "profileCompleteOnLoading": False,
        "profileErrorOnLoading": False,
        "stateInscription": "",
        "tradeName": ""
    },
    "country": "",
    "geoCoordinates": [],
    "isCheckedIn": False,
    "items": [
        {
            "id": "",
            "quantity": 0,
            "seller": ""
        }
    ],
    "marketingData": {
        "coupon": "",
        "utmCampaign": "",
        "utmMedium": "",
        "utmSource": "",
        "utmiCampaign": "",
        "utmiPage": "",
        "utmiPart": ""
    },
    "postalCode": "",
    "selectedSla": "",
    "storeId": ""
}
headers = {
    "content-type": "",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/api/checkout/pub/orderForms/simulation"

payload <- "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/api/checkout/pub/orderForms/simulation")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request["accept"] = ''
request.body = "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}"

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

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

response = conn.post('/baseUrl/api/checkout/pub/orderForms/simulation') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"customerClass\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"profileCompleteOnLoading\": false,\n    \"profileErrorOnLoading\": false,\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"isCheckedIn\": false,\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"marketingData\": {\n    \"coupon\": \"\",\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"postalCode\": \"\",\n  \"selectedSla\": \"\",\n  \"storeId\": \"\"\n}"
end

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

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

    let payload = json!({
        "clientProfileData": json!({
            "corporateDocument": "",
            "corporateName": "",
            "corporatePhone": "",
            "customerClass": "",
            "document": "",
            "documentType": "",
            "email": "",
            "firstName": "",
            "isCorporate": false,
            "lastName": "",
            "phone": "",
            "profileCompleteOnLoading": false,
            "profileErrorOnLoading": false,
            "stateInscription": "",
            "tradeName": ""
        }),
        "country": "",
        "geoCoordinates": (),
        "isCheckedIn": false,
        "items": (
            json!({
                "id": "",
                "quantity": 0,
                "seller": ""
            })
        ),
        "marketingData": json!({
            "coupon": "",
            "utmCampaign": "",
            "utmMedium": "",
            "utmSource": "",
            "utmiCampaign": "",
            "utmiPage": "",
            "utmiPart": ""
        }),
        "postalCode": "",
        "selectedSla": "",
        "storeId": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/checkout/pub/orderForms/simulation \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "customerClass": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "profileCompleteOnLoading": false,
    "profileErrorOnLoading": false,
    "stateInscription": "",
    "tradeName": ""
  },
  "country": "",
  "geoCoordinates": [],
  "isCheckedIn": false,
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "marketingData": {
    "coupon": "",
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "postalCode": "",
  "selectedSla": "",
  "storeId": ""
}'
echo '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "customerClass": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "profileCompleteOnLoading": false,
    "profileErrorOnLoading": false,
    "stateInscription": "",
    "tradeName": ""
  },
  "country": "",
  "geoCoordinates": [],
  "isCheckedIn": false,
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "marketingData": {
    "coupon": "",
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "postalCode": "",
  "selectedSla": "",
  "storeId": ""
}' |  \
  http POST {{baseUrl}}/api/checkout/pub/orderForms/simulation \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --body-data '{\n  "clientProfileData": {\n    "corporateDocument": "",\n    "corporateName": "",\n    "corporatePhone": "",\n    "customerClass": "",\n    "document": "",\n    "documentType": "",\n    "email": "",\n    "firstName": "",\n    "isCorporate": false,\n    "lastName": "",\n    "phone": "",\n    "profileCompleteOnLoading": false,\n    "profileErrorOnLoading": false,\n    "stateInscription": "",\n    "tradeName": ""\n  },\n  "country": "",\n  "geoCoordinates": [],\n  "isCheckedIn": false,\n  "items": [\n    {\n      "id": "",\n      "quantity": 0,\n      "seller": ""\n    }\n  ],\n  "marketingData": {\n    "coupon": "",\n    "utmCampaign": "",\n    "utmMedium": "",\n    "utmSource": "",\n    "utmiCampaign": "",\n    "utmiPage": "",\n    "utmiPart": ""\n  },\n  "postalCode": "",\n  "selectedSla": "",\n  "storeId": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/checkout/pub/orderForms/simulation
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]
let parameters = [
  "clientProfileData": [
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "customerClass": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "profileCompleteOnLoading": false,
    "profileErrorOnLoading": false,
    "stateInscription": "",
    "tradeName": ""
  ],
  "country": "",
  "geoCoordinates": [],
  "isCheckedIn": false,
  "items": [
    [
      "id": "",
      "quantity": 0,
      "seller": ""
    ]
  ],
  "marketingData": [
    "coupon": "",
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  ],
  "postalCode": "",
  "selectedSla": "",
  "storeId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "country": "BRA",
  "geoCoordinates": [
    -47.924747467041016,
    -15.832582473754883
  ],
  "itemMetadata": {
    "items": [
      {
        "assemblyOptions": [
          {
            "composition": null,
            "id": "T-Shirt Customization",
            "inputValues": {
              "T-Shirt Name": {
                "domain": [
                  "[]"
                ],
                "maximumNumberOfCharacters": 2
              }
            },
            "name": "T-Shirt Customization",
            "required": false
          }
        ],
        "id": "1",
        "seller": "1"
      }
    ]
  },
  "items": [
    {
      "availability": "available",
      "id": "1",
      "listPrice": 9999,
      "measurementUnit": "un",
      "offerings": [],
      "parentAssemblyBinding": null,
      "parentItemIndex": null,
      "price": 9999,
      "priceDefinition": {
        "calculatedSellingPrice": 2999700,
        "sellingPrices": [
          {
            "quantity": 1,
            "value": 2999700
          }
        ],
        "total": 2999700
      },
      "priceTags": [
        {
          "identifier": "1234abc-5678b-1234c",
          "isPercentual": false,
          "name": "DISCOUNT@MANUALPRICE",
          "rawValue": -50,
          "value": -5000
        }
      ],
      "priceValidUntil": "2023-07-12T11:49:01Z",
      "quantity": 1,
      "requestIndex": 0,
      "rewardValue": 0,
      "seller": "1",
      "sellerChain": [
        "1"
      ],
      "sellingPrice": 2999700,
      "tax": 0,
      "unitMultiplier": 300
    }
  ],
  "logisticsInfo": [
    {
      "addressId": null,
      "deliveryChannels": [
        {
          "id": "pickup-in-point"
        },
        {
          "id": "delivery"
        }
      ],
      "itemIndex": 0,
      "quantity": 1,
      "selectedDeliveryChannel": null,
      "selectedSla": null,
      "shipsTo": [
        "BRA"
      ],
      "slas": [
        {
          "availableDeliveryWindows": {
            "endDateUtc": "2017-03-27T00:00:00+00:00",
            "lisPrice": 0,
            "price": 0,
            "startDateUtc": "2017-03-27T00:00:00+00:00",
            "tax": 0
          },
          "deliveryChannel": "delivery",
          "deliveryIds": [
            {
              "courierId": "1",
              "courierName": "Transportadora",
              "dockId": "1",
              "kitItemDetails": [],
              "quantity": 1,
              "warehouseId": "1_1"
            }
          ],
          "deliveryWindow": {
            "endDateUtc": "2014-04-21T12:00:00+00:00",
            "listprice": 1000,
            "price": 0,
            "startDateUtc": "2014-04-21T09:00:00+00:00",
            "tax": 0
          },
          "id": "Normal",
          "listPrice": 1500,
          "lockTTL": "10d",
          "name": "Normal",
          "pickupDistance": 0,
          "pickupPointId": null,
          "pickupStoreInfo": {
            "additionalInfo": null,
            "address": null,
            "dockId": null,
            "friendlyName": null,
            "isPickupStore": false
          },
          "polygonName": null,
          "price": 1500,
          "shippingEstimate": "3bd",
          "shippingEstimateDate": null,
          "tax": 0,
          "transitTime": "3bd"
        }
      ]
    }
  ],
  "marketingData": {
    "coupon": null,
    "marketingTags": [
      "tag1",
      "tag2"
    ],
    "utmCampaign": "Black friday",
    "utmMedium": "CPC",
    "utmSource": "app",
    "utmiCampaign": "true",
    "utmiPart": "true",
    "utmipage": "true"
  },
  "messages": [],
  "paymentData": {
    "availableAccounts": [],
    "availableAssociations": {},
    "availableTokens": [],
    "giftCardMessages": [],
    "giftCards": [],
    "installmentOptions": [
      {
        "bin": null,
        "installments": [
          {
            "count": 1,
            "hasInterestRate": false,
            "interestRate": 0,
            "sellerMerchantInstallments": [
              {
                "count": 1,
                "hasInterestRate": false,
                "id": "LOJADOBRENO",
                "interestRate": 0,
                "total": 2999700,
                "value": 2999700
              }
            ],
            "total": 2999700,
            "value": 2999700
          }
        ],
        "paymentGroupName": "creditCardPaymentGroup",
        "paymentName": "Visa",
        "paymentSystem": "2",
        "value": 2999700
      },
      {
        "bin": null,
        "installments": [
          {
            "count": 1,
            "hasInterestRate": false,
            "interestRate": 0,
            "sellerMerchantInstallments": [
              {
                "count": 1,
                "hasInterestRate": false,
                "id": "LOJADOBRENO",
                "interestRate": 0,
                "total": 2999700,
                "value": 2999700
              }
            ],
            "total": 2999700,
            "value": 2999700
          }
        ],
        "paymentGroupName": "bankInvoicePaymentGroup",
        "paymentName": "Boleto Bancário",
        "paymentSystem": "6",
        "value": 2999700
      },
      {
        "bin": null,
        "installments": [
          {
            "count": 1,
            "hasInterestRate": false,
            "interestRate": 0,
            "sellerMerchantInstallments": [
              {
                "count": 1,
                "hasInterestRate": false,
                "id": "LOJADOBRENO",
                "interestRate": 0,
                "total": 2999700,
                "value": 2999700
              }
            ],
            "total": 2999700,
            "value": 2999700
          }
        ],
        "paymentGroupName": "MercadoPagoProPaymentGroup",
        "paymentName": "MercadoPagoPro",
        "paymentSystem": "127",
        "value": 2999700
      },
      {
        "bin": null,
        "installments": [
          {
            "count": 1,
            "hasInterestRate": false,
            "interestRate": 0,
            "sellerMerchantInstallments": [
              {
                "count": 1,
                "hasInterestRate": false,
                "id": "LOJADOBRENO",
                "interestRate": 0,
                "total": 2999700,
                "value": 2999700
              }
            ],
            "total": 2999700,
            "value": 2999700
          }
        ],
        "paymentGroupName": "custom202PaymentGroupPaymentGroup",
        "paymentName": "Dinheiro",
        "paymentSystem": "202",
        "value": 2999700
      }
    ],
    "paymentSystems": [
      {
        "availablePayments": null,
        "description": "",
        "displayDocument": false,
        "dueDate": "2022-07-22T11:39:36.37197Z",
        "groupName": "custom202PaymentGroupPaymentGroup",
        "id": 202,
        "isCustom": true,
        "name": "Dinheiro",
        "requiresAuthentication": false,
        "requiresDocument": false,
        "stringId": "202",
        "template": "custom202PaymentGroupPaymentGroup-template",
        "validator": null
      },
      {
        "availablePayments": null,
        "description": "",
        "displayDocument": false,
        "dueDate": "2022-07-19T11:39:36.37197Z",
        "groupName": "bankInvoicePaymentGroup",
        "id": 6,
        "isCustom": false,
        "name": "Boleto Bancário",
        "requiresAuthentication": false,
        "requiresDocument": false,
        "stringId": "6",
        "template": "bankInvoicePaymentGroup-template",
        "validator": null
      },
      {
        "availablePayments": null,
        "description": "",
        "displayDocument": false,
        "dueDate": "2022-07-19T11:39:36.37197Z",
        "groupName": "creditCardPaymentGroup",
        "id": 2,
        "isCustom": false,
        "name": "Visa",
        "requiresAuthentication": false,
        "requiresDocument": false,
        "stringId": "2",
        "template": "creditCardPaymentGroup-template",
        "validator": null
      },
      {
        "availablePayments": null,
        "description": "",
        "displayDocument": false,
        "dueDate": "2022-07-19T11:39:36.37197Z",
        "groupName": "MercadoPagoProPaymentGroup",
        "id": 127,
        "isCustom": false,
        "name": "MercadoPagoPro",
        "requiresAuthentication": false,
        "requiresDocument": false,
        "stringId": "127",
        "template": "MercadoPagoProPaymentGroup-template",
        "validator": null
      }
    ],
    "payments": []
  },
  "pickupPoints": [],
  "postalCode": "12345-000",
  "purchaseConditions": {
    "itemPurchaseConditions": [
      {
        "id": "1",
        "listPrice": 9999,
        "price": 9999,
        "seller": "1",
        "sellerChain": [
          "1"
        ],
        "slas": [
          {
            "availableDeliveryWindows": {
              "endDateUtc": "2017-03-27T00:00:00+00:00",
              "lisPrice": 0,
              "price": 0,
              "startDateUtc": "2017-03-27T00:00:00+00:00",
              "tax": 0
            },
            "deliveryChannel": "delivery",
            "deliveryIds": [
              {
                "courierId": "1",
                "courierName": "Transportadora",
                "dockId": "1",
                "kitItemDetails": [],
                "quantity": 1,
                "warehouseId": "1_1"
              }
            ],
            "deliveryWindow": {
              "endDateUtc": "2014-04-21T12:00:00+00:00",
              "listprice": 1000,
              "price": 0,
              "startDateUtc": "2014-04-21T09:00:00+00:00",
              "tax": 0
            },
            "id": "Normal",
            "listPrice": 1500,
            "lockTTL": "10d",
            "name": "Normal",
            "pickupDistance": 0,
            "pickupPointId": null,
            "pickupStoreInfo": {
              "additionalInfo": null,
              "address": null,
              "dockId": null,
              "friendlyName": null,
              "isPickupStore": false
            },
            "polygonName": null,
            "price": 1500,
            "shippingEstimate": "3bd",
            "shippingEstimateDate": null,
            "tax": 0,
            "transitTime": "3bd"
          }
        ]
      }
    ]
  },
  "ratesAndBenefitsData": {
    "rateAndBenefitsIdentifiers": [],
    "teaser": []
  },
  "selectableGifts": [],
  "subscriptionData": null,
  "totals": [
    {
      "id": "Items",
      "name": "Total dos Itens",
      "value": 2999700
    }
  ]
}
POST New Order Integration
{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders
HEADERS

Content-Type
Accept
QUERY PARAMS

affiliateId
accountName
BODY json

{
  "allowFranchises": false,
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "email": "",
    "firstName": "",
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "connectorEndpoint": "",
  "connectorName": "",
  "customData": {
    "customApps": [
      {
        "fields": {
          "marketplacePaymentMethod": ""
        },
        "id": "",
        "major": 0
      }
    ]
  },
  "invoiceData": {
    "userPaymentInfo": {
      "paymentMethods": []
    }
  },
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": "",
  "marketplacePaymentValue": 0,
  "pickupAccountName": "",
  "shippingData": {
    "isFob": false,
    "isMarketplaceFulfillment": false,
    "logisticsInfo": [
      {
        "deliveryIds": {
          "warehouseId": ""
        },
        "lockTTL": "",
        "price": 0,
        "selectedDeliveryChannel": "",
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "selectedAddresses": [
      {
        "addressId": "",
        "addressType": "",
        "city": "",
        "complement": "",
        "country": "",
        "geoCoordinates": {
          "latitude": "",
          "longitude": ""
        },
        "neighborhood": "",
        "number": "",
        "postalCode": "",
        "receiverName": "",
        "state": "",
        "street": ""
      }
    ]
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\n      }\n    ]\n  }\n}");

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

(client/post "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders" {:headers {:accept ""}
                                                                                                                :query-params {:affiliateId ""}
                                                                                                                :content-type :json
                                                                                                                :form-params {:allowFranchises false
                                                                                                                              :clientProfileData {:corporateDocument ""
                                                                                                                                                  :corporateName ""
                                                                                                                                                  :corporatePhone ""
                                                                                                                                                  :document ""
                                                                                                                                                  :email ""
                                                                                                                                                  :firstName ""
                                                                                                                                                  :lastName ""
                                                                                                                                                  :phone ""
                                                                                                                                                  :stateInscription ""
                                                                                                                                                  :tradeName ""}
                                                                                                                              :connectorEndpoint ""
                                                                                                                              :connectorName ""
                                                                                                                              :customData {:customApps [{:fields {:marketplacePaymentMethod ""}
                                                                                                                                                         :id ""
                                                                                                                                                         :major 0}]}
                                                                                                                              :invoiceData {:userPaymentInfo {:paymentMethods []}}
                                                                                                                              :items [{:id ""
                                                                                                                                       :price 0
                                                                                                                                       :quantity 0}]
                                                                                                                              :marketplaceOrderId ""
                                                                                                                              :marketplaceOrderStatus ""
                                                                                                                              :marketplacePaymentValue 0
                                                                                                                              :pickupAccountName ""
                                                                                                                              :shippingData {:isFob false
                                                                                                                                             :isMarketplaceFulfillment false
                                                                                                                                             :logisticsInfo [{:deliveryIds {:warehouseId ""}
                                                                                                                                                              :lockTTL ""
                                                                                                                                                              :price 0
                                                                                                                                                              :selectedDeliveryChannel ""
                                                                                                                                                              :selectedSla ""
                                                                                                                                                              :shippingEstimate ""}]
                                                                                                                                             :selectedAddresses [{:addressId ""
                                                                                                                                                                  :addressType ""
                                                                                                                                                                  :city ""
                                                                                                                                                                  :complement ""
                                                                                                                                                                  :country ""
                                                                                                                                                                  :geoCoordinates {:latitude ""
                                                                                                                                                                                   :longitude ""}
                                                                                                                                                                  :neighborhood ""
                                                                                                                                                                  :number ""
                                                                                                                                                                  :postalCode ""
                                                                                                                                                                  :receiverName ""
                                                                                                                                                                  :state ""
                                                                                                                                                                  :street ""}]}}})
require "http/client"

url = "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId="
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}
reqBody = "{\n  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId="),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
request.AddParameter("", "{\n  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId="

	payload := strings.NewReader("{\n  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\n      }\n    ]\n  }\n}")

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

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
POST /baseUrl/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId= HTTP/1.1
Content-Type: 
Accept: 
Host: example.com
Content-Length: 1533

{
  "allowFranchises": false,
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "email": "",
    "firstName": "",
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "connectorEndpoint": "",
  "connectorName": "",
  "customData": {
    "customApps": [
      {
        "fields": {
          "marketplacePaymentMethod": ""
        },
        "id": "",
        "major": 0
      }
    ]
  },
  "invoiceData": {
    "userPaymentInfo": {
      "paymentMethods": []
    }
  },
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": "",
  "marketplacePaymentValue": 0,
  "pickupAccountName": "",
  "shippingData": {
    "isFob": false,
    "isMarketplaceFulfillment": false,
    "logisticsInfo": [
      {
        "deliveryIds": {
          "warehouseId": ""
        },
        "lockTTL": "",
        "price": 0,
        "selectedDeliveryChannel": "",
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "selectedAddresses": [
      {
        "addressId": "",
        "addressType": "",
        "city": "",
        "complement": "",
        "country": "",
        "geoCoordinates": {
          "latitude": "",
          "longitude": ""
        },
        "neighborhood": "",
        "number": "",
        "postalCode": "",
        "receiverName": "",
        "state": "",
        "street": ""
      }
    ]
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .setBody("{\n  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\n      }\n    ]\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId="))
    .header("content-type", "")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\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  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\n      }\n    ]\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=")
  .header("content-type", "")
  .header("accept", "")
  .body("{\n  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\n      }\n    ]\n  }\n}")
  .asString();
const data = JSON.stringify({
  allowFranchises: false,
  clientProfileData: {
    corporateDocument: '',
    corporateName: '',
    corporatePhone: '',
    document: '',
    email: '',
    firstName: '',
    lastName: '',
    phone: '',
    stateInscription: '',
    tradeName: ''
  },
  connectorEndpoint: '',
  connectorName: '',
  customData: {
    customApps: [
      {
        fields: {
          marketplacePaymentMethod: ''
        },
        id: '',
        major: 0
      }
    ]
  },
  invoiceData: {
    userPaymentInfo: {
      paymentMethods: []
    }
  },
  items: [
    {
      id: '',
      price: 0,
      quantity: 0
    }
  ],
  marketplaceOrderId: '',
  marketplaceOrderStatus: '',
  marketplacePaymentValue: 0,
  pickupAccountName: '',
  shippingData: {
    isFob: false,
    isMarketplaceFulfillment: false,
    logisticsInfo: [
      {
        deliveryIds: {
          warehouseId: ''
        },
        lockTTL: '',
        price: 0,
        selectedDeliveryChannel: '',
        selectedSla: '',
        shippingEstimate: ''
      }
    ],
    selectedAddresses: [
      {
        addressId: '',
        addressType: '',
        city: '',
        complement: '',
        country: '',
        geoCoordinates: {
          latitude: '',
          longitude: ''
        },
        neighborhood: '',
        number: '',
        postalCode: '',
        receiverName: '',
        state: '',
        street: ''
      }
    ]
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders',
  params: {affiliateId: ''},
  headers: {'content-type': '', accept: ''},
  data: {
    allowFranchises: false,
    clientProfileData: {
      corporateDocument: '',
      corporateName: '',
      corporatePhone: '',
      document: '',
      email: '',
      firstName: '',
      lastName: '',
      phone: '',
      stateInscription: '',
      tradeName: ''
    },
    connectorEndpoint: '',
    connectorName: '',
    customData: {customApps: [{fields: {marketplacePaymentMethod: ''}, id: '', major: 0}]},
    invoiceData: {userPaymentInfo: {paymentMethods: []}},
    items: [{id: '', price: 0, quantity: 0}],
    marketplaceOrderId: '',
    marketplaceOrderStatus: '',
    marketplacePaymentValue: 0,
    pickupAccountName: '',
    shippingData: {
      isFob: false,
      isMarketplaceFulfillment: false,
      logisticsInfo: [
        {
          deliveryIds: {warehouseId: ''},
          lockTTL: '',
          price: 0,
          selectedDeliveryChannel: '',
          selectedSla: '',
          shippingEstimate: ''
        }
      ],
      selectedAddresses: [
        {
          addressId: '',
          addressType: '',
          city: '',
          complement: '',
          country: '',
          geoCoordinates: {latitude: '', longitude: ''},
          neighborhood: '',
          number: '',
          postalCode: '',
          receiverName: '',
          state: '',
          street: ''
        }
      ]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"allowFranchises":false,"clientProfileData":{"corporateDocument":"","corporateName":"","corporatePhone":"","document":"","email":"","firstName":"","lastName":"","phone":"","stateInscription":"","tradeName":""},"connectorEndpoint":"","connectorName":"","customData":{"customApps":[{"fields":{"marketplacePaymentMethod":""},"id":"","major":0}]},"invoiceData":{"userPaymentInfo":{"paymentMethods":[]}},"items":[{"id":"","price":0,"quantity":0}],"marketplaceOrderId":"","marketplaceOrderStatus":"","marketplacePaymentValue":0,"pickupAccountName":"","shippingData":{"isFob":false,"isMarketplaceFulfillment":false,"logisticsInfo":[{"deliveryIds":{"warehouseId":""},"lockTTL":"","price":0,"selectedDeliveryChannel":"","selectedSla":"","shippingEstimate":""}],"selectedAddresses":[{"addressId":"","addressType":"","city":"","complement":"","country":"","geoCoordinates":{"latitude":"","longitude":""},"neighborhood":"","number":"","postalCode":"","receiverName":"","state":"","street":""}]}}'
};

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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  },
  processData: false,
  data: '{\n  "allowFranchises": false,\n  "clientProfileData": {\n    "corporateDocument": "",\n    "corporateName": "",\n    "corporatePhone": "",\n    "document": "",\n    "email": "",\n    "firstName": "",\n    "lastName": "",\n    "phone": "",\n    "stateInscription": "",\n    "tradeName": ""\n  },\n  "connectorEndpoint": "",\n  "connectorName": "",\n  "customData": {\n    "customApps": [\n      {\n        "fields": {\n          "marketplacePaymentMethod": ""\n        },\n        "id": "",\n        "major": 0\n      }\n    ]\n  },\n  "invoiceData": {\n    "userPaymentInfo": {\n      "paymentMethods": []\n    }\n  },\n  "items": [\n    {\n      "id": "",\n      "price": 0,\n      "quantity": 0\n    }\n  ],\n  "marketplaceOrderId": "",\n  "marketplaceOrderStatus": "",\n  "marketplacePaymentValue": 0,\n  "pickupAccountName": "",\n  "shippingData": {\n    "isFob": false,\n    "isMarketplaceFulfillment": false,\n    "logisticsInfo": [\n      {\n        "deliveryIds": {\n          "warehouseId": ""\n        },\n        "lockTTL": "",\n        "price": 0,\n        "selectedDeliveryChannel": "",\n        "selectedSla": "",\n        "shippingEstimate": ""\n      }\n    ],\n    "selectedAddresses": [\n      {\n        "addressId": "",\n        "addressType": "",\n        "city": "",\n        "complement": "",\n        "country": "",\n        "geoCoordinates": {\n          "latitude": "",\n          "longitude": ""\n        },\n        "neighborhood": "",\n        "number": "",\n        "postalCode": "",\n        "receiverName": "",\n        "state": "",\n        "street": ""\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  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\n      }\n    ]\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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({
  allowFranchises: false,
  clientProfileData: {
    corporateDocument: '',
    corporateName: '',
    corporatePhone: '',
    document: '',
    email: '',
    firstName: '',
    lastName: '',
    phone: '',
    stateInscription: '',
    tradeName: ''
  },
  connectorEndpoint: '',
  connectorName: '',
  customData: {customApps: [{fields: {marketplacePaymentMethod: ''}, id: '', major: 0}]},
  invoiceData: {userPaymentInfo: {paymentMethods: []}},
  items: [{id: '', price: 0, quantity: 0}],
  marketplaceOrderId: '',
  marketplaceOrderStatus: '',
  marketplacePaymentValue: 0,
  pickupAccountName: '',
  shippingData: {
    isFob: false,
    isMarketplaceFulfillment: false,
    logisticsInfo: [
      {
        deliveryIds: {warehouseId: ''},
        lockTTL: '',
        price: 0,
        selectedDeliveryChannel: '',
        selectedSla: '',
        shippingEstimate: ''
      }
    ],
    selectedAddresses: [
      {
        addressId: '',
        addressType: '',
        city: '',
        complement: '',
        country: '',
        geoCoordinates: {latitude: '', longitude: ''},
        neighborhood: '',
        number: '',
        postalCode: '',
        receiverName: '',
        state: '',
        street: ''
      }
    ]
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders',
  qs: {affiliateId: ''},
  headers: {'content-type': '', accept: ''},
  body: {
    allowFranchises: false,
    clientProfileData: {
      corporateDocument: '',
      corporateName: '',
      corporatePhone: '',
      document: '',
      email: '',
      firstName: '',
      lastName: '',
      phone: '',
      stateInscription: '',
      tradeName: ''
    },
    connectorEndpoint: '',
    connectorName: '',
    customData: {customApps: [{fields: {marketplacePaymentMethod: ''}, id: '', major: 0}]},
    invoiceData: {userPaymentInfo: {paymentMethods: []}},
    items: [{id: '', price: 0, quantity: 0}],
    marketplaceOrderId: '',
    marketplaceOrderStatus: '',
    marketplacePaymentValue: 0,
    pickupAccountName: '',
    shippingData: {
      isFob: false,
      isMarketplaceFulfillment: false,
      logisticsInfo: [
        {
          deliveryIds: {warehouseId: ''},
          lockTTL: '',
          price: 0,
          selectedDeliveryChannel: '',
          selectedSla: '',
          shippingEstimate: ''
        }
      ],
      selectedAddresses: [
        {
          addressId: '',
          addressType: '',
          city: '',
          complement: '',
          country: '',
          geoCoordinates: {latitude: '', longitude: ''},
          neighborhood: '',
          number: '',
          postalCode: '',
          receiverName: '',
          state: '',
          street: ''
        }
      ]
    }
  },
  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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders');

req.query({
  affiliateId: ''
});

req.headers({
  'content-type': '',
  accept: ''
});

req.type('json');
req.send({
  allowFranchises: false,
  clientProfileData: {
    corporateDocument: '',
    corporateName: '',
    corporatePhone: '',
    document: '',
    email: '',
    firstName: '',
    lastName: '',
    phone: '',
    stateInscription: '',
    tradeName: ''
  },
  connectorEndpoint: '',
  connectorName: '',
  customData: {
    customApps: [
      {
        fields: {
          marketplacePaymentMethod: ''
        },
        id: '',
        major: 0
      }
    ]
  },
  invoiceData: {
    userPaymentInfo: {
      paymentMethods: []
    }
  },
  items: [
    {
      id: '',
      price: 0,
      quantity: 0
    }
  ],
  marketplaceOrderId: '',
  marketplaceOrderStatus: '',
  marketplacePaymentValue: 0,
  pickupAccountName: '',
  shippingData: {
    isFob: false,
    isMarketplaceFulfillment: false,
    logisticsInfo: [
      {
        deliveryIds: {
          warehouseId: ''
        },
        lockTTL: '',
        price: 0,
        selectedDeliveryChannel: '',
        selectedSla: '',
        shippingEstimate: ''
      }
    ],
    selectedAddresses: [
      {
        addressId: '',
        addressType: '',
        city: '',
        complement: '',
        country: '',
        geoCoordinates: {
          latitude: '',
          longitude: ''
        },
        neighborhood: '',
        number: '',
        postalCode: '',
        receiverName: '',
        state: '',
        street: ''
      }
    ]
  }
});

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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders',
  params: {affiliateId: ''},
  headers: {'content-type': '', accept: ''},
  data: {
    allowFranchises: false,
    clientProfileData: {
      corporateDocument: '',
      corporateName: '',
      corporatePhone: '',
      document: '',
      email: '',
      firstName: '',
      lastName: '',
      phone: '',
      stateInscription: '',
      tradeName: ''
    },
    connectorEndpoint: '',
    connectorName: '',
    customData: {customApps: [{fields: {marketplacePaymentMethod: ''}, id: '', major: 0}]},
    invoiceData: {userPaymentInfo: {paymentMethods: []}},
    items: [{id: '', price: 0, quantity: 0}],
    marketplaceOrderId: '',
    marketplaceOrderStatus: '',
    marketplacePaymentValue: 0,
    pickupAccountName: '',
    shippingData: {
      isFob: false,
      isMarketplaceFulfillment: false,
      logisticsInfo: [
        {
          deliveryIds: {warehouseId: ''},
          lockTTL: '',
          price: 0,
          selectedDeliveryChannel: '',
          selectedSla: '',
          shippingEstimate: ''
        }
      ],
      selectedAddresses: [
        {
          addressId: '',
          addressType: '',
          city: '',
          complement: '',
          country: '',
          geoCoordinates: {latitude: '', longitude: ''},
          neighborhood: '',
          number: '',
          postalCode: '',
          receiverName: '',
          state: '',
          street: ''
        }
      ]
    }
  }
};

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

const url = '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"allowFranchises":false,"clientProfileData":{"corporateDocument":"","corporateName":"","corporatePhone":"","document":"","email":"","firstName":"","lastName":"","phone":"","stateInscription":"","tradeName":""},"connectorEndpoint":"","connectorName":"","customData":{"customApps":[{"fields":{"marketplacePaymentMethod":""},"id":"","major":0}]},"invoiceData":{"userPaymentInfo":{"paymentMethods":[]}},"items":[{"id":"","price":0,"quantity":0}],"marketplaceOrderId":"","marketplaceOrderStatus":"","marketplacePaymentValue":0,"pickupAccountName":"","shippingData":{"isFob":false,"isMarketplaceFulfillment":false,"logisticsInfo":[{"deliveryIds":{"warehouseId":""},"lockTTL":"","price":0,"selectedDeliveryChannel":"","selectedSla":"","shippingEstimate":""}],"selectedAddresses":[{"addressId":"","addressType":"","city":"","complement":"","country":"","geoCoordinates":{"latitude":"","longitude":""},"neighborhood":"","number":"","postalCode":"","receiverName":"","state":"","street":""}]}}'
};

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": @"",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"allowFranchises": @NO,
                              @"clientProfileData": @{ @"corporateDocument": @"", @"corporateName": @"", @"corporatePhone": @"", @"document": @"", @"email": @"", @"firstName": @"", @"lastName": @"", @"phone": @"", @"stateInscription": @"", @"tradeName": @"" },
                              @"connectorEndpoint": @"",
                              @"connectorName": @"",
                              @"customData": @{ @"customApps": @[ @{ @"fields": @{ @"marketplacePaymentMethod": @"" }, @"id": @"", @"major": @0 } ] },
                              @"invoiceData": @{ @"userPaymentInfo": @{ @"paymentMethods": @[  ] } },
                              @"items": @[ @{ @"id": @"", @"price": @0, @"quantity": @0 } ],
                              @"marketplaceOrderId": @"",
                              @"marketplaceOrderStatus": @"",
                              @"marketplacePaymentValue": @0,
                              @"pickupAccountName": @"",
                              @"shippingData": @{ @"isFob": @NO, @"isMarketplaceFulfillment": @NO, @"logisticsInfo": @[ @{ @"deliveryIds": @{ @"warehouseId": @"" }, @"lockTTL": @"", @"price": @0, @"selectedDeliveryChannel": @"", @"selectedSla": @"", @"shippingEstimate": @"" } ], @"selectedAddresses": @[ @{ @"addressId": @"", @"addressType": @"", @"city": @"", @"complement": @"", @"country": @"", @"geoCoordinates": @{ @"latitude": @"", @"longitude": @"" }, @"neighborhood": @"", @"number": @"", @"postalCode": @"", @"receiverName": @"", @"state": @"", @"street": @"" } ] } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId="]
                                                       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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\n      }\n    ]\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=",
  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([
    'allowFranchises' => null,
    'clientProfileData' => [
        'corporateDocument' => '',
        'corporateName' => '',
        'corporatePhone' => '',
        'document' => '',
        'email' => '',
        'firstName' => '',
        'lastName' => '',
        'phone' => '',
        'stateInscription' => '',
        'tradeName' => ''
    ],
    'connectorEndpoint' => '',
    'connectorName' => '',
    'customData' => [
        'customApps' => [
                [
                                'fields' => [
                                                                'marketplacePaymentMethod' => ''
                                ],
                                'id' => '',
                                'major' => 0
                ]
        ]
    ],
    'invoiceData' => [
        'userPaymentInfo' => [
                'paymentMethods' => [
                                
                ]
        ]
    ],
    'items' => [
        [
                'id' => '',
                'price' => 0,
                'quantity' => 0
        ]
    ],
    'marketplaceOrderId' => '',
    'marketplaceOrderStatus' => '',
    'marketplacePaymentValue' => 0,
    'pickupAccountName' => '',
    'shippingData' => [
        'isFob' => null,
        'isMarketplaceFulfillment' => null,
        'logisticsInfo' => [
                [
                                'deliveryIds' => [
                                                                'warehouseId' => ''
                                ],
                                'lockTTL' => '',
                                'price' => 0,
                                'selectedDeliveryChannel' => '',
                                'selectedSla' => '',
                                'shippingEstimate' => ''
                ]
        ],
        'selectedAddresses' => [
                [
                                'addressId' => '',
                                'addressType' => '',
                                'city' => '',
                                'complement' => '',
                                'country' => '',
                                'geoCoordinates' => [
                                                                'latitude' => '',
                                                                'longitude' => ''
                                ],
                                'neighborhood' => '',
                                'number' => '',
                                'postalCode' => '',
                                'receiverName' => '',
                                'state' => '',
                                'street' => ''
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=', [
  'body' => '{
  "allowFranchises": false,
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "email": "",
    "firstName": "",
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "connectorEndpoint": "",
  "connectorName": "",
  "customData": {
    "customApps": [
      {
        "fields": {
          "marketplacePaymentMethod": ""
        },
        "id": "",
        "major": 0
      }
    ]
  },
  "invoiceData": {
    "userPaymentInfo": {
      "paymentMethods": []
    }
  },
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": "",
  "marketplacePaymentValue": 0,
  "pickupAccountName": "",
  "shippingData": {
    "isFob": false,
    "isMarketplaceFulfillment": false,
    "logisticsInfo": [
      {
        "deliveryIds": {
          "warehouseId": ""
        },
        "lockTTL": "",
        "price": 0,
        "selectedDeliveryChannel": "",
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "selectedAddresses": [
      {
        "addressId": "",
        "addressType": "",
        "city": "",
        "complement": "",
        "country": "",
        "geoCoordinates": {
          "latitude": "",
          "longitude": ""
        },
        "neighborhood": "",
        "number": "",
        "postalCode": "",
        "receiverName": "",
        "state": "",
        "street": ""
      }
    ]
  }
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'affiliateId' => ''
]);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'allowFranchises' => null,
  'clientProfileData' => [
    'corporateDocument' => '',
    'corporateName' => '',
    'corporatePhone' => '',
    'document' => '',
    'email' => '',
    'firstName' => '',
    'lastName' => '',
    'phone' => '',
    'stateInscription' => '',
    'tradeName' => ''
  ],
  'connectorEndpoint' => '',
  'connectorName' => '',
  'customData' => [
    'customApps' => [
        [
                'fields' => [
                                'marketplacePaymentMethod' => ''
                ],
                'id' => '',
                'major' => 0
        ]
    ]
  ],
  'invoiceData' => [
    'userPaymentInfo' => [
        'paymentMethods' => [
                
        ]
    ]
  ],
  'items' => [
    [
        'id' => '',
        'price' => 0,
        'quantity' => 0
    ]
  ],
  'marketplaceOrderId' => '',
  'marketplaceOrderStatus' => '',
  'marketplacePaymentValue' => 0,
  'pickupAccountName' => '',
  'shippingData' => [
    'isFob' => null,
    'isMarketplaceFulfillment' => null,
    'logisticsInfo' => [
        [
                'deliveryIds' => [
                                'warehouseId' => ''
                ],
                'lockTTL' => '',
                'price' => 0,
                'selectedDeliveryChannel' => '',
                'selectedSla' => '',
                'shippingEstimate' => ''
        ]
    ],
    'selectedAddresses' => [
        [
                'addressId' => '',
                'addressType' => '',
                'city' => '',
                'complement' => '',
                'country' => '',
                'geoCoordinates' => [
                                'latitude' => '',
                                'longitude' => ''
                ],
                'neighborhood' => '',
                'number' => '',
                'postalCode' => '',
                'receiverName' => '',
                'state' => '',
                'street' => ''
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'allowFranchises' => null,
  'clientProfileData' => [
    'corporateDocument' => '',
    'corporateName' => '',
    'corporatePhone' => '',
    'document' => '',
    'email' => '',
    'firstName' => '',
    'lastName' => '',
    'phone' => '',
    'stateInscription' => '',
    'tradeName' => ''
  ],
  'connectorEndpoint' => '',
  'connectorName' => '',
  'customData' => [
    'customApps' => [
        [
                'fields' => [
                                'marketplacePaymentMethod' => ''
                ],
                'id' => '',
                'major' => 0
        ]
    ]
  ],
  'invoiceData' => [
    'userPaymentInfo' => [
        'paymentMethods' => [
                
        ]
    ]
  ],
  'items' => [
    [
        'id' => '',
        'price' => 0,
        'quantity' => 0
    ]
  ],
  'marketplaceOrderId' => '',
  'marketplaceOrderStatus' => '',
  'marketplacePaymentValue' => 0,
  'pickupAccountName' => '',
  'shippingData' => [
    'isFob' => null,
    'isMarketplaceFulfillment' => null,
    'logisticsInfo' => [
        [
                'deliveryIds' => [
                                'warehouseId' => ''
                ],
                'lockTTL' => '',
                'price' => 0,
                'selectedDeliveryChannel' => '',
                'selectedSla' => '',
                'shippingEstimate' => ''
        ]
    ],
    'selectedAddresses' => [
        [
                'addressId' => '',
                'addressType' => '',
                'city' => '',
                'complement' => '',
                'country' => '',
                'geoCoordinates' => [
                                'latitude' => '',
                                'longitude' => ''
                ],
                'neighborhood' => '',
                'number' => '',
                'postalCode' => '',
                'receiverName' => '',
                'state' => '',
                'street' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'affiliateId' => ''
]));

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=' -Method POST -Headers $headers -ContentType '' -Body '{
  "allowFranchises": false,
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "email": "",
    "firstName": "",
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "connectorEndpoint": "",
  "connectorName": "",
  "customData": {
    "customApps": [
      {
        "fields": {
          "marketplacePaymentMethod": ""
        },
        "id": "",
        "major": 0
      }
    ]
  },
  "invoiceData": {
    "userPaymentInfo": {
      "paymentMethods": []
    }
  },
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": "",
  "marketplacePaymentValue": 0,
  "pickupAccountName": "",
  "shippingData": {
    "isFob": false,
    "isMarketplaceFulfillment": false,
    "logisticsInfo": [
      {
        "deliveryIds": {
          "warehouseId": ""
        },
        "lockTTL": "",
        "price": 0,
        "selectedDeliveryChannel": "",
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "selectedAddresses": [
      {
        "addressId": "",
        "addressType": "",
        "city": "",
        "complement": "",
        "country": "",
        "geoCoordinates": {
          "latitude": "",
          "longitude": ""
        },
        "neighborhood": "",
        "number": "",
        "postalCode": "",
        "receiverName": "",
        "state": "",
        "street": ""
      }
    ]
  }
}'
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=' -Method POST -Headers $headers -ContentType '' -Body '{
  "allowFranchises": false,
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "email": "",
    "firstName": "",
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "connectorEndpoint": "",
  "connectorName": "",
  "customData": {
    "customApps": [
      {
        "fields": {
          "marketplacePaymentMethod": ""
        },
        "id": "",
        "major": 0
      }
    ]
  },
  "invoiceData": {
    "userPaymentInfo": {
      "paymentMethods": []
    }
  },
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": "",
  "marketplacePaymentValue": 0,
  "pickupAccountName": "",
  "shippingData": {
    "isFob": false,
    "isMarketplaceFulfillment": false,
    "logisticsInfo": [
      {
        "deliveryIds": {
          "warehouseId": ""
        },
        "lockTTL": "",
        "price": 0,
        "selectedDeliveryChannel": "",
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "selectedAddresses": [
      {
        "addressId": "",
        "addressType": "",
        "city": "",
        "complement": "",
        "country": "",
        "geoCoordinates": {
          "latitude": "",
          "longitude": ""
        },
        "neighborhood": "",
        "number": "",
        "postalCode": "",
        "receiverName": "",
        "state": "",
        "street": ""
      }
    ]
  }
}'
import http.client

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

payload = "{\n  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\n      }\n    ]\n  }\n}"

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("POST", "/baseUrl/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=", payload, headers)

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

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

url = "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders"

querystring = {"affiliateId":""}

payload = {
    "allowFranchises": False,
    "clientProfileData": {
        "corporateDocument": "",
        "corporateName": "",
        "corporatePhone": "",
        "document": "",
        "email": "",
        "firstName": "",
        "lastName": "",
        "phone": "",
        "stateInscription": "",
        "tradeName": ""
    },
    "connectorEndpoint": "",
    "connectorName": "",
    "customData": { "customApps": [
            {
                "fields": { "marketplacePaymentMethod": "" },
                "id": "",
                "major": 0
            }
        ] },
    "invoiceData": { "userPaymentInfo": { "paymentMethods": [] } },
    "items": [
        {
            "id": "",
            "price": 0,
            "quantity": 0
        }
    ],
    "marketplaceOrderId": "",
    "marketplaceOrderStatus": "",
    "marketplacePaymentValue": 0,
    "pickupAccountName": "",
    "shippingData": {
        "isFob": False,
        "isMarketplaceFulfillment": False,
        "logisticsInfo": [
            {
                "deliveryIds": { "warehouseId": "" },
                "lockTTL": "",
                "price": 0,
                "selectedDeliveryChannel": "",
                "selectedSla": "",
                "shippingEstimate": ""
            }
        ],
        "selectedAddresses": [
            {
                "addressId": "",
                "addressType": "",
                "city": "",
                "complement": "",
                "country": "",
                "geoCoordinates": {
                    "latitude": "",
                    "longitude": ""
                },
                "neighborhood": "",
                "number": "",
                "postalCode": "",
                "receiverName": "",
                "state": "",
                "street": ""
            }
        ]
    }
}
headers = {
    "content-type": "",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders"

queryString <- list(affiliateId = "")

payload <- "{\n  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\n      }\n    ]\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request["accept"] = ''
request.body = "{\n  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\n      }\n    ]\n  }\n}"

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

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

response = conn.post('/baseUrl/:accountName.vtexcommercestable.com.br/api/order-integration/orders') do |req|
  req.headers['accept'] = ''
  req.params['affiliateId'] = ''
  req.body = "{\n  \"allowFranchises\": false,\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"customData\": {\n    \"customApps\": [\n      {\n        \"fields\": {\n          \"marketplacePaymentMethod\": \"\"\n        },\n        \"id\": \"\",\n        \"major\": 0\n      }\n    ]\n  },\n  \"invoiceData\": {\n    \"userPaymentInfo\": {\n      \"paymentMethods\": []\n    }\n  },\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"pickupAccountName\": \"\",\n  \"shippingData\": {\n    \"isFob\": false,\n    \"isMarketplaceFulfillment\": false,\n    \"logisticsInfo\": [\n      {\n        \"deliveryIds\": {\n          \"warehouseId\": \"\"\n        },\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedDeliveryChannel\": \"\",\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"selectedAddresses\": [\n      {\n        \"addressId\": \"\",\n        \"addressType\": \"\",\n        \"city\": \"\",\n        \"complement\": \"\",\n        \"country\": \"\",\n        \"geoCoordinates\": {\n          \"latitude\": \"\",\n          \"longitude\": \"\"\n        },\n        \"neighborhood\": \"\",\n        \"number\": \"\",\n        \"postalCode\": \"\",\n        \"receiverName\": \"\",\n        \"state\": \"\",\n        \"street\": \"\"\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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders";

    let querystring = [
        ("affiliateId", ""),
    ];

    let payload = json!({
        "allowFranchises": false,
        "clientProfileData": json!({
            "corporateDocument": "",
            "corporateName": "",
            "corporatePhone": "",
            "document": "",
            "email": "",
            "firstName": "",
            "lastName": "",
            "phone": "",
            "stateInscription": "",
            "tradeName": ""
        }),
        "connectorEndpoint": "",
        "connectorName": "",
        "customData": json!({"customApps": (
                json!({
                    "fields": json!({"marketplacePaymentMethod": ""}),
                    "id": "",
                    "major": 0
                })
            )}),
        "invoiceData": json!({"userPaymentInfo": json!({"paymentMethods": ()})}),
        "items": (
            json!({
                "id": "",
                "price": 0,
                "quantity": 0
            })
        ),
        "marketplaceOrderId": "",
        "marketplaceOrderStatus": "",
        "marketplacePaymentValue": 0,
        "pickupAccountName": "",
        "shippingData": json!({
            "isFob": false,
            "isMarketplaceFulfillment": false,
            "logisticsInfo": (
                json!({
                    "deliveryIds": json!({"warehouseId": ""}),
                    "lockTTL": "",
                    "price": 0,
                    "selectedDeliveryChannel": "",
                    "selectedSla": "",
                    "shippingEstimate": ""
                })
            ),
            "selectedAddresses": (
                json!({
                    "addressId": "",
                    "addressType": "",
                    "city": "",
                    "complement": "",
                    "country": "",
                    "geoCoordinates": json!({
                        "latitude": "",
                        "longitude": ""
                    }),
                    "neighborhood": "",
                    "number": "",
                    "postalCode": "",
                    "receiverName": "",
                    "state": "",
                    "street": ""
                })
            )
        })
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=' \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "allowFranchises": false,
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "email": "",
    "firstName": "",
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "connectorEndpoint": "",
  "connectorName": "",
  "customData": {
    "customApps": [
      {
        "fields": {
          "marketplacePaymentMethod": ""
        },
        "id": "",
        "major": 0
      }
    ]
  },
  "invoiceData": {
    "userPaymentInfo": {
      "paymentMethods": []
    }
  },
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": "",
  "marketplacePaymentValue": 0,
  "pickupAccountName": "",
  "shippingData": {
    "isFob": false,
    "isMarketplaceFulfillment": false,
    "logisticsInfo": [
      {
        "deliveryIds": {
          "warehouseId": ""
        },
        "lockTTL": "",
        "price": 0,
        "selectedDeliveryChannel": "",
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "selectedAddresses": [
      {
        "addressId": "",
        "addressType": "",
        "city": "",
        "complement": "",
        "country": "",
        "geoCoordinates": {
          "latitude": "",
          "longitude": ""
        },
        "neighborhood": "",
        "number": "",
        "postalCode": "",
        "receiverName": "",
        "state": "",
        "street": ""
      }
    ]
  }
}'
echo '{
  "allowFranchises": false,
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "email": "",
    "firstName": "",
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "connectorEndpoint": "",
  "connectorName": "",
  "customData": {
    "customApps": [
      {
        "fields": {
          "marketplacePaymentMethod": ""
        },
        "id": "",
        "major": 0
      }
    ]
  },
  "invoiceData": {
    "userPaymentInfo": {
      "paymentMethods": []
    }
  },
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": "",
  "marketplacePaymentValue": 0,
  "pickupAccountName": "",
  "shippingData": {
    "isFob": false,
    "isMarketplaceFulfillment": false,
    "logisticsInfo": [
      {
        "deliveryIds": {
          "warehouseId": ""
        },
        "lockTTL": "",
        "price": 0,
        "selectedDeliveryChannel": "",
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "selectedAddresses": [
      {
        "addressId": "",
        "addressType": "",
        "city": "",
        "complement": "",
        "country": "",
        "geoCoordinates": {
          "latitude": "",
          "longitude": ""
        },
        "neighborhood": "",
        "number": "",
        "postalCode": "",
        "receiverName": "",
        "state": "",
        "street": ""
      }
    ]
  }
}' |  \
  http POST '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=' \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --body-data '{\n  "allowFranchises": false,\n  "clientProfileData": {\n    "corporateDocument": "",\n    "corporateName": "",\n    "corporatePhone": "",\n    "document": "",\n    "email": "",\n    "firstName": "",\n    "lastName": "",\n    "phone": "",\n    "stateInscription": "",\n    "tradeName": ""\n  },\n  "connectorEndpoint": "",\n  "connectorName": "",\n  "customData": {\n    "customApps": [\n      {\n        "fields": {\n          "marketplacePaymentMethod": ""\n        },\n        "id": "",\n        "major": 0\n      }\n    ]\n  },\n  "invoiceData": {\n    "userPaymentInfo": {\n      "paymentMethods": []\n    }\n  },\n  "items": [\n    {\n      "id": "",\n      "price": 0,\n      "quantity": 0\n    }\n  ],\n  "marketplaceOrderId": "",\n  "marketplaceOrderStatus": "",\n  "marketplacePaymentValue": 0,\n  "pickupAccountName": "",\n  "shippingData": {\n    "isFob": false,\n    "isMarketplaceFulfillment": false,\n    "logisticsInfo": [\n      {\n        "deliveryIds": {\n          "warehouseId": ""\n        },\n        "lockTTL": "",\n        "price": 0,\n        "selectedDeliveryChannel": "",\n        "selectedSla": "",\n        "shippingEstimate": ""\n      }\n    ],\n    "selectedAddresses": [\n      {\n        "addressId": "",\n        "addressType": "",\n        "city": "",\n        "complement": "",\n        "country": "",\n        "geoCoordinates": {\n          "latitude": "",\n          "longitude": ""\n        },\n        "neighborhood": "",\n        "number": "",\n        "postalCode": "",\n        "receiverName": "",\n        "state": "",\n        "street": ""\n      }\n    ]\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId='
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]
let parameters = [
  "allowFranchises": false,
  "clientProfileData": [
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "email": "",
    "firstName": "",
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  ],
  "connectorEndpoint": "",
  "connectorName": "",
  "customData": ["customApps": [
      [
        "fields": ["marketplacePaymentMethod": ""],
        "id": "",
        "major": 0
      ]
    ]],
  "invoiceData": ["userPaymentInfo": ["paymentMethods": []]],
  "items": [
    [
      "id": "",
      "price": 0,
      "quantity": 0
    ]
  ],
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": "",
  "marketplacePaymentValue": 0,
  "pickupAccountName": "",
  "shippingData": [
    "isFob": false,
    "isMarketplaceFulfillment": false,
    "logisticsInfo": [
      [
        "deliveryIds": ["warehouseId": ""],
        "lockTTL": "",
        "price": 0,
        "selectedDeliveryChannel": "",
        "selectedSla": "",
        "shippingEstimate": ""
      ]
    ],
    "selectedAddresses": [
      [
        "addressId": "",
        "addressType": "",
        "city": "",
        "complement": "",
        "country": "",
        "geoCoordinates": [
          "latitude": "",
          "longitude": ""
        ],
        "neighborhood": "",
        "number": "",
        "postalCode": "",
        "receiverName": "",
        "state": "",
        "street": ""
      ]
    ]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders?affiliateId=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "accountName": "grocery1",
  "code": "SOI003",
  "errors": null,
  "fields": null,
  "flow": "PlaceOrder",
  "marketplaceOrderId": null,
  "message": "Order successfully enqueued",
  "operationId": null,
  "success": true
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "accountName": "grocery1",
  "code": "SOI003",
  "errors": null,
  "fields": null,
  "flow": "PlaceOrder",
  "marketplaceOrderId": null,
  "message": "Order successfully enqueued",
  "operationId": null,
  "success": true
}
POST Place fulfillment order
{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders
HEADERS

Content-Type
Accept
QUERY PARAMS

affiliateId
accountName
environment
BODY json

{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "isCreatedAsync": false,
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemAttachment": {
        "content": "",
        "name": ""
      },
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "lisPrice": 0,
          "price": 0,
          "startDateUtc": "",
          "tax": 0
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders" {:headers {:accept ""}
                                                                                                        :query-params {:affiliateId ""}
                                                                                                        :content-type :json
                                                                                                        :form-params {:clientProfileData {:corporateDocument ""
                                                                                                                                          :corporateName ""
                                                                                                                                          :corporatePhone ""
                                                                                                                                          :document ""
                                                                                                                                          :documentType ""
                                                                                                                                          :email ""
                                                                                                                                          :firstName ""
                                                                                                                                          :isCorporate false
                                                                                                                                          :lastName ""
                                                                                                                                          :phone ""
                                                                                                                                          :stateInscription ""
                                                                                                                                          :tradeName ""}
                                                                                                                      :isCreatedAsync false
                                                                                                                      :items [{:attachments []
                                                                                                                               :bundleItems [{:id 0
                                                                                                                                              :name ""
                                                                                                                                              :price 0
                                                                                                                                              :type ""}]
                                                                                                                               :commission 0
                                                                                                                               :freightCommission 0
                                                                                                                               :id ""
                                                                                                                               :isGift false
                                                                                                                               :itemAttachment {:content ""
                                                                                                                                                :name ""}
                                                                                                                               :measurementUnit ""
                                                                                                                               :price 0
                                                                                                                               :priceTags [{:identifier ""
                                                                                                                                            :isPercentual false
                                                                                                                                            :name ""
                                                                                                                                            :rawValue 0
                                                                                                                                            :value 0}]
                                                                                                                               :quantity 0
                                                                                                                               :seller ""
                                                                                                                               :unitMultiplier 0}]
                                                                                                                      :marketingData {:utmCampaign ""
                                                                                                                                      :utmMedium ""
                                                                                                                                      :utmSource ""
                                                                                                                                      :utmiCampaign ""
                                                                                                                                      :utmiPage ""
                                                                                                                                      :utmiPart ""}
                                                                                                                      :marketplaceOrderId ""
                                                                                                                      :marketplacePaymentValue 0
                                                                                                                      :marketplaceServicesEndpoint ""
                                                                                                                      :openTextField ""
                                                                                                                      :paymentData {}
                                                                                                                      :shippingData {:address {:addressId ""
                                                                                                                                               :addressType ""
                                                                                                                                               :city ""
                                                                                                                                               :complement ""
                                                                                                                                               :country ""
                                                                                                                                               :geoCoordinates []
                                                                                                                                               :neighborhood ""
                                                                                                                                               :number ""
                                                                                                                                               :postalCode ""
                                                                                                                                               :receiverName ""
                                                                                                                                               :reference ""
                                                                                                                                               :state ""
                                                                                                                                               :street ""}
                                                                                                                                     :logisticsInfo [{:deliveryWindow {:endDateUtc ""
                                                                                                                                                                       :lisPrice 0
                                                                                                                                                                       :price 0
                                                                                                                                                                       :startDateUtc ""
                                                                                                                                                                       :tax 0}
                                                                                                                                                      :itemIndex 0
                                                                                                                                                      :lockTTL ""
                                                                                                                                                      :price 0
                                                                                                                                                      :selectedSla ""
                                                                                                                                                      :shippingEstimate ""}]
                                                                                                                                     :updateStatus ""}}})
require "http/client"

url = "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId="
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}
reqBody = "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\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}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId="),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\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}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
request.AddParameter("", "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId="

	payload := strings.NewReader("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}")

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

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
POST /baseUrl/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId= HTTP/1.1
Content-Type: 
Accept: 
Host: example.com
Content-Length: 1982

{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "isCreatedAsync": false,
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemAttachment": {
        "content": "",
        "name": ""
      },
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "lisPrice": 0,
          "price": 0,
          "startDateUtc": "",
          "tax": 0
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .setBody("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId="))
    .header("content-type", "")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\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  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=")
  .header("content-type", "")
  .header("accept", "")
  .body("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  clientProfileData: {
    corporateDocument: '',
    corporateName: '',
    corporatePhone: '',
    document: '',
    documentType: '',
    email: '',
    firstName: '',
    isCorporate: false,
    lastName: '',
    phone: '',
    stateInscription: '',
    tradeName: ''
  },
  isCreatedAsync: false,
  items: [
    {
      attachments: [],
      bundleItems: [
        {
          id: 0,
          name: '',
          price: 0,
          type: ''
        }
      ],
      commission: 0,
      freightCommission: 0,
      id: '',
      isGift: false,
      itemAttachment: {
        content: '',
        name: ''
      },
      measurementUnit: '',
      price: 0,
      priceTags: [
        {
          identifier: '',
          isPercentual: false,
          name: '',
          rawValue: 0,
          value: 0
        }
      ],
      quantity: 0,
      seller: '',
      unitMultiplier: 0
    }
  ],
  marketingData: {
    utmCampaign: '',
    utmMedium: '',
    utmSource: '',
    utmiCampaign: '',
    utmiPage: '',
    utmiPart: ''
  },
  marketplaceOrderId: '',
  marketplacePaymentValue: 0,
  marketplaceServicesEndpoint: '',
  openTextField: '',
  paymentData: {},
  shippingData: {
    address: {
      addressId: '',
      addressType: '',
      city: '',
      complement: '',
      country: '',
      geoCoordinates: [],
      neighborhood: '',
      number: '',
      postalCode: '',
      receiverName: '',
      reference: '',
      state: '',
      street: ''
    },
    logisticsInfo: [
      {
        deliveryWindow: {
          endDateUtc: '',
          lisPrice: 0,
          price: 0,
          startDateUtc: '',
          tax: 0
        },
        itemIndex: 0,
        lockTTL: '',
        price: 0,
        selectedSla: '',
        shippingEstimate: ''
      }
    ],
    updateStatus: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders',
  params: {affiliateId: ''},
  headers: {'content-type': '', accept: ''},
  data: {
    clientProfileData: {
      corporateDocument: '',
      corporateName: '',
      corporatePhone: '',
      document: '',
      documentType: '',
      email: '',
      firstName: '',
      isCorporate: false,
      lastName: '',
      phone: '',
      stateInscription: '',
      tradeName: ''
    },
    isCreatedAsync: false,
    items: [
      {
        attachments: [],
        bundleItems: [{id: 0, name: '', price: 0, type: ''}],
        commission: 0,
        freightCommission: 0,
        id: '',
        isGift: false,
        itemAttachment: {content: '', name: ''},
        measurementUnit: '',
        price: 0,
        priceTags: [{identifier: '', isPercentual: false, name: '', rawValue: 0, value: 0}],
        quantity: 0,
        seller: '',
        unitMultiplier: 0
      }
    ],
    marketingData: {
      utmCampaign: '',
      utmMedium: '',
      utmSource: '',
      utmiCampaign: '',
      utmiPage: '',
      utmiPart: ''
    },
    marketplaceOrderId: '',
    marketplacePaymentValue: 0,
    marketplaceServicesEndpoint: '',
    openTextField: '',
    paymentData: {},
    shippingData: {
      address: {
        addressId: '',
        addressType: '',
        city: '',
        complement: '',
        country: '',
        geoCoordinates: [],
        neighborhood: '',
        number: '',
        postalCode: '',
        receiverName: '',
        reference: '',
        state: '',
        street: ''
      },
      logisticsInfo: [
        {
          deliveryWindow: {endDateUtc: '', lisPrice: 0, price: 0, startDateUtc: '', tax: 0},
          itemIndex: 0,
          lockTTL: '',
          price: 0,
          selectedSla: '',
          shippingEstimate: ''
        }
      ],
      updateStatus: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"clientProfileData":{"corporateDocument":"","corporateName":"","corporatePhone":"","document":"","documentType":"","email":"","firstName":"","isCorporate":false,"lastName":"","phone":"","stateInscription":"","tradeName":""},"isCreatedAsync":false,"items":[{"attachments":[],"bundleItems":[{"id":0,"name":"","price":0,"type":""}],"commission":0,"freightCommission":0,"id":"","isGift":false,"itemAttachment":{"content":"","name":""},"measurementUnit":"","price":0,"priceTags":[{"identifier":"","isPercentual":false,"name":"","rawValue":0,"value":0}],"quantity":0,"seller":"","unitMultiplier":0}],"marketingData":{"utmCampaign":"","utmMedium":"","utmSource":"","utmiCampaign":"","utmiPage":"","utmiPart":""},"marketplaceOrderId":"","marketplacePaymentValue":0,"marketplaceServicesEndpoint":"","openTextField":"","paymentData":{},"shippingData":{"address":{"addressId":"","addressType":"","city":"","complement":"","country":"","geoCoordinates":[],"neighborhood":"","number":"","postalCode":"","receiverName":"","reference":"","state":"","street":""},"logisticsInfo":[{"deliveryWindow":{"endDateUtc":"","lisPrice":0,"price":0,"startDateUtc":"","tax":0},"itemIndex":0,"lockTTL":"","price":0,"selectedSla":"","shippingEstimate":""}],"updateStatus":""}}'
};

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}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  },
  processData: false,
  data: '{\n  "clientProfileData": {\n    "corporateDocument": "",\n    "corporateName": "",\n    "corporatePhone": "",\n    "document": "",\n    "documentType": "",\n    "email": "",\n    "firstName": "",\n    "isCorporate": false,\n    "lastName": "",\n    "phone": "",\n    "stateInscription": "",\n    "tradeName": ""\n  },\n  "isCreatedAsync": false,\n  "items": [\n    {\n      "attachments": [],\n      "bundleItems": [\n        {\n          "id": 0,\n          "name": "",\n          "price": 0,\n          "type": ""\n        }\n      ],\n      "commission": 0,\n      "freightCommission": 0,\n      "id": "",\n      "isGift": false,\n      "itemAttachment": {\n        "content": "",\n        "name": ""\n      },\n      "measurementUnit": "",\n      "price": 0,\n      "priceTags": [\n        {\n          "identifier": "",\n          "isPercentual": false,\n          "name": "",\n          "rawValue": 0,\n          "value": 0\n        }\n      ],\n      "quantity": 0,\n      "seller": "",\n      "unitMultiplier": 0\n    }\n  ],\n  "marketingData": {\n    "utmCampaign": "",\n    "utmMedium": "",\n    "utmSource": "",\n    "utmiCampaign": "",\n    "utmiPage": "",\n    "utmiPart": ""\n  },\n  "marketplaceOrderId": "",\n  "marketplacePaymentValue": 0,\n  "marketplaceServicesEndpoint": "",\n  "openTextField": "",\n  "paymentData": {},\n  "shippingData": {\n    "address": {\n      "addressId": "",\n      "addressType": "",\n      "city": "",\n      "complement": "",\n      "country": "",\n      "geoCoordinates": [],\n      "neighborhood": "",\n      "number": "",\n      "postalCode": "",\n      "receiverName": "",\n      "reference": "",\n      "state": "",\n      "street": ""\n    },\n    "logisticsInfo": [\n      {\n        "deliveryWindow": {\n          "endDateUtc": "",\n          "lisPrice": 0,\n          "price": 0,\n          "startDateUtc": "",\n          "tax": 0\n        },\n        "itemIndex": 0,\n        "lockTTL": "",\n        "price": 0,\n        "selectedSla": "",\n        "shippingEstimate": ""\n      }\n    ],\n    "updateStatus": ""\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  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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({
  clientProfileData: {
    corporateDocument: '',
    corporateName: '',
    corporatePhone: '',
    document: '',
    documentType: '',
    email: '',
    firstName: '',
    isCorporate: false,
    lastName: '',
    phone: '',
    stateInscription: '',
    tradeName: ''
  },
  isCreatedAsync: false,
  items: [
    {
      attachments: [],
      bundleItems: [{id: 0, name: '', price: 0, type: ''}],
      commission: 0,
      freightCommission: 0,
      id: '',
      isGift: false,
      itemAttachment: {content: '', name: ''},
      measurementUnit: '',
      price: 0,
      priceTags: [{identifier: '', isPercentual: false, name: '', rawValue: 0, value: 0}],
      quantity: 0,
      seller: '',
      unitMultiplier: 0
    }
  ],
  marketingData: {
    utmCampaign: '',
    utmMedium: '',
    utmSource: '',
    utmiCampaign: '',
    utmiPage: '',
    utmiPart: ''
  },
  marketplaceOrderId: '',
  marketplacePaymentValue: 0,
  marketplaceServicesEndpoint: '',
  openTextField: '',
  paymentData: {},
  shippingData: {
    address: {
      addressId: '',
      addressType: '',
      city: '',
      complement: '',
      country: '',
      geoCoordinates: [],
      neighborhood: '',
      number: '',
      postalCode: '',
      receiverName: '',
      reference: '',
      state: '',
      street: ''
    },
    logisticsInfo: [
      {
        deliveryWindow: {endDateUtc: '', lisPrice: 0, price: 0, startDateUtc: '', tax: 0},
        itemIndex: 0,
        lockTTL: '',
        price: 0,
        selectedSla: '',
        shippingEstimate: ''
      }
    ],
    updateStatus: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders',
  qs: {affiliateId: ''},
  headers: {'content-type': '', accept: ''},
  body: {
    clientProfileData: {
      corporateDocument: '',
      corporateName: '',
      corporatePhone: '',
      document: '',
      documentType: '',
      email: '',
      firstName: '',
      isCorporate: false,
      lastName: '',
      phone: '',
      stateInscription: '',
      tradeName: ''
    },
    isCreatedAsync: false,
    items: [
      {
        attachments: [],
        bundleItems: [{id: 0, name: '', price: 0, type: ''}],
        commission: 0,
        freightCommission: 0,
        id: '',
        isGift: false,
        itemAttachment: {content: '', name: ''},
        measurementUnit: '',
        price: 0,
        priceTags: [{identifier: '', isPercentual: false, name: '', rawValue: 0, value: 0}],
        quantity: 0,
        seller: '',
        unitMultiplier: 0
      }
    ],
    marketingData: {
      utmCampaign: '',
      utmMedium: '',
      utmSource: '',
      utmiCampaign: '',
      utmiPage: '',
      utmiPart: ''
    },
    marketplaceOrderId: '',
    marketplacePaymentValue: 0,
    marketplaceServicesEndpoint: '',
    openTextField: '',
    paymentData: {},
    shippingData: {
      address: {
        addressId: '',
        addressType: '',
        city: '',
        complement: '',
        country: '',
        geoCoordinates: [],
        neighborhood: '',
        number: '',
        postalCode: '',
        receiverName: '',
        reference: '',
        state: '',
        street: ''
      },
      logisticsInfo: [
        {
          deliveryWindow: {endDateUtc: '', lisPrice: 0, price: 0, startDateUtc: '', tax: 0},
          itemIndex: 0,
          lockTTL: '',
          price: 0,
          selectedSla: '',
          shippingEstimate: ''
        }
      ],
      updateStatus: ''
    }
  },
  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}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders');

req.query({
  affiliateId: ''
});

req.headers({
  'content-type': '',
  accept: ''
});

req.type('json');
req.send({
  clientProfileData: {
    corporateDocument: '',
    corporateName: '',
    corporatePhone: '',
    document: '',
    documentType: '',
    email: '',
    firstName: '',
    isCorporate: false,
    lastName: '',
    phone: '',
    stateInscription: '',
    tradeName: ''
  },
  isCreatedAsync: false,
  items: [
    {
      attachments: [],
      bundleItems: [
        {
          id: 0,
          name: '',
          price: 0,
          type: ''
        }
      ],
      commission: 0,
      freightCommission: 0,
      id: '',
      isGift: false,
      itemAttachment: {
        content: '',
        name: ''
      },
      measurementUnit: '',
      price: 0,
      priceTags: [
        {
          identifier: '',
          isPercentual: false,
          name: '',
          rawValue: 0,
          value: 0
        }
      ],
      quantity: 0,
      seller: '',
      unitMultiplier: 0
    }
  ],
  marketingData: {
    utmCampaign: '',
    utmMedium: '',
    utmSource: '',
    utmiCampaign: '',
    utmiPage: '',
    utmiPart: ''
  },
  marketplaceOrderId: '',
  marketplacePaymentValue: 0,
  marketplaceServicesEndpoint: '',
  openTextField: '',
  paymentData: {},
  shippingData: {
    address: {
      addressId: '',
      addressType: '',
      city: '',
      complement: '',
      country: '',
      geoCoordinates: [],
      neighborhood: '',
      number: '',
      postalCode: '',
      receiverName: '',
      reference: '',
      state: '',
      street: ''
    },
    logisticsInfo: [
      {
        deliveryWindow: {
          endDateUtc: '',
          lisPrice: 0,
          price: 0,
          startDateUtc: '',
          tax: 0
        },
        itemIndex: 0,
        lockTTL: '',
        price: 0,
        selectedSla: '',
        shippingEstimate: ''
      }
    ],
    updateStatus: ''
  }
});

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}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders',
  params: {affiliateId: ''},
  headers: {'content-type': '', accept: ''},
  data: {
    clientProfileData: {
      corporateDocument: '',
      corporateName: '',
      corporatePhone: '',
      document: '',
      documentType: '',
      email: '',
      firstName: '',
      isCorporate: false,
      lastName: '',
      phone: '',
      stateInscription: '',
      tradeName: ''
    },
    isCreatedAsync: false,
    items: [
      {
        attachments: [],
        bundleItems: [{id: 0, name: '', price: 0, type: ''}],
        commission: 0,
        freightCommission: 0,
        id: '',
        isGift: false,
        itemAttachment: {content: '', name: ''},
        measurementUnit: '',
        price: 0,
        priceTags: [{identifier: '', isPercentual: false, name: '', rawValue: 0, value: 0}],
        quantity: 0,
        seller: '',
        unitMultiplier: 0
      }
    ],
    marketingData: {
      utmCampaign: '',
      utmMedium: '',
      utmSource: '',
      utmiCampaign: '',
      utmiPage: '',
      utmiPart: ''
    },
    marketplaceOrderId: '',
    marketplacePaymentValue: 0,
    marketplaceServicesEndpoint: '',
    openTextField: '',
    paymentData: {},
    shippingData: {
      address: {
        addressId: '',
        addressType: '',
        city: '',
        complement: '',
        country: '',
        geoCoordinates: [],
        neighborhood: '',
        number: '',
        postalCode: '',
        receiverName: '',
        reference: '',
        state: '',
        street: ''
      },
      logisticsInfo: [
        {
          deliveryWindow: {endDateUtc: '', lisPrice: 0, price: 0, startDateUtc: '', tax: 0},
          itemIndex: 0,
          lockTTL: '',
          price: 0,
          selectedSla: '',
          shippingEstimate: ''
        }
      ],
      updateStatus: ''
    }
  }
};

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

const url = '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"clientProfileData":{"corporateDocument":"","corporateName":"","corporatePhone":"","document":"","documentType":"","email":"","firstName":"","isCorporate":false,"lastName":"","phone":"","stateInscription":"","tradeName":""},"isCreatedAsync":false,"items":[{"attachments":[],"bundleItems":[{"id":0,"name":"","price":0,"type":""}],"commission":0,"freightCommission":0,"id":"","isGift":false,"itemAttachment":{"content":"","name":""},"measurementUnit":"","price":0,"priceTags":[{"identifier":"","isPercentual":false,"name":"","rawValue":0,"value":0}],"quantity":0,"seller":"","unitMultiplier":0}],"marketingData":{"utmCampaign":"","utmMedium":"","utmSource":"","utmiCampaign":"","utmiPage":"","utmiPart":""},"marketplaceOrderId":"","marketplacePaymentValue":0,"marketplaceServicesEndpoint":"","openTextField":"","paymentData":{},"shippingData":{"address":{"addressId":"","addressType":"","city":"","complement":"","country":"","geoCoordinates":[],"neighborhood":"","number":"","postalCode":"","receiverName":"","reference":"","state":"","street":""},"logisticsInfo":[{"deliveryWindow":{"endDateUtc":"","lisPrice":0,"price":0,"startDateUtc":"","tax":0},"itemIndex":0,"lockTTL":"","price":0,"selectedSla":"","shippingEstimate":""}],"updateStatus":""}}'
};

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": @"",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"clientProfileData": @{ @"corporateDocument": @"", @"corporateName": @"", @"corporatePhone": @"", @"document": @"", @"documentType": @"", @"email": @"", @"firstName": @"", @"isCorporate": @NO, @"lastName": @"", @"phone": @"", @"stateInscription": @"", @"tradeName": @"" },
                              @"isCreatedAsync": @NO,
                              @"items": @[ @{ @"attachments": @[  ], @"bundleItems": @[ @{ @"id": @0, @"name": @"", @"price": @0, @"type": @"" } ], @"commission": @0, @"freightCommission": @0, @"id": @"", @"isGift": @NO, @"itemAttachment": @{ @"content": @"", @"name": @"" }, @"measurementUnit": @"", @"price": @0, @"priceTags": @[ @{ @"identifier": @"", @"isPercentual": @NO, @"name": @"", @"rawValue": @0, @"value": @0 } ], @"quantity": @0, @"seller": @"", @"unitMultiplier": @0 } ],
                              @"marketingData": @{ @"utmCampaign": @"", @"utmMedium": @"", @"utmSource": @"", @"utmiCampaign": @"", @"utmiPage": @"", @"utmiPart": @"" },
                              @"marketplaceOrderId": @"",
                              @"marketplacePaymentValue": @0,
                              @"marketplaceServicesEndpoint": @"",
                              @"openTextField": @"",
                              @"paymentData": @{  },
                              @"shippingData": @{ @"address": @{ @"addressId": @"", @"addressType": @"", @"city": @"", @"complement": @"", @"country": @"", @"geoCoordinates": @[  ], @"neighborhood": @"", @"number": @"", @"postalCode": @"", @"receiverName": @"", @"reference": @"", @"state": @"", @"street": @"" }, @"logisticsInfo": @[ @{ @"deliveryWindow": @{ @"endDateUtc": @"", @"lisPrice": @0, @"price": @0, @"startDateUtc": @"", @"tax": @0 }, @"itemIndex": @0, @"lockTTL": @"", @"price": @0, @"selectedSla": @"", @"shippingEstimate": @"" } ], @"updateStatus": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId="]
                                                       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}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=",
  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([
    'clientProfileData' => [
        'corporateDocument' => '',
        'corporateName' => '',
        'corporatePhone' => '',
        'document' => '',
        'documentType' => '',
        'email' => '',
        'firstName' => '',
        'isCorporate' => null,
        'lastName' => '',
        'phone' => '',
        'stateInscription' => '',
        'tradeName' => ''
    ],
    'isCreatedAsync' => null,
    'items' => [
        [
                'attachments' => [
                                
                ],
                'bundleItems' => [
                                [
                                                                'id' => 0,
                                                                'name' => '',
                                                                'price' => 0,
                                                                'type' => ''
                                ]
                ],
                'commission' => 0,
                'freightCommission' => 0,
                'id' => '',
                'isGift' => null,
                'itemAttachment' => [
                                'content' => '',
                                'name' => ''
                ],
                'measurementUnit' => '',
                'price' => 0,
                'priceTags' => [
                                [
                                                                'identifier' => '',
                                                                'isPercentual' => null,
                                                                'name' => '',
                                                                'rawValue' => 0,
                                                                'value' => 0
                                ]
                ],
                'quantity' => 0,
                'seller' => '',
                'unitMultiplier' => 0
        ]
    ],
    'marketingData' => [
        'utmCampaign' => '',
        'utmMedium' => '',
        'utmSource' => '',
        'utmiCampaign' => '',
        'utmiPage' => '',
        'utmiPart' => ''
    ],
    'marketplaceOrderId' => '',
    'marketplacePaymentValue' => 0,
    'marketplaceServicesEndpoint' => '',
    'openTextField' => '',
    'paymentData' => [
        
    ],
    'shippingData' => [
        'address' => [
                'addressId' => '',
                'addressType' => '',
                'city' => '',
                'complement' => '',
                'country' => '',
                'geoCoordinates' => [
                                
                ],
                'neighborhood' => '',
                'number' => '',
                'postalCode' => '',
                'receiverName' => '',
                'reference' => '',
                'state' => '',
                'street' => ''
        ],
        'logisticsInfo' => [
                [
                                'deliveryWindow' => [
                                                                'endDateUtc' => '',
                                                                'lisPrice' => 0,
                                                                'price' => 0,
                                                                'startDateUtc' => '',
                                                                'tax' => 0
                                ],
                                'itemIndex' => 0,
                                'lockTTL' => '',
                                'price' => 0,
                                'selectedSla' => '',
                                'shippingEstimate' => ''
                ]
        ],
        'updateStatus' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=', [
  'body' => '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "isCreatedAsync": false,
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemAttachment": {
        "content": "",
        "name": ""
      },
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "lisPrice": 0,
          "price": 0,
          "startDateUtc": "",
          "tax": 0
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'affiliateId' => ''
]);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'clientProfileData' => [
    'corporateDocument' => '',
    'corporateName' => '',
    'corporatePhone' => '',
    'document' => '',
    'documentType' => '',
    'email' => '',
    'firstName' => '',
    'isCorporate' => null,
    'lastName' => '',
    'phone' => '',
    'stateInscription' => '',
    'tradeName' => ''
  ],
  'isCreatedAsync' => null,
  'items' => [
    [
        'attachments' => [
                
        ],
        'bundleItems' => [
                [
                                'id' => 0,
                                'name' => '',
                                'price' => 0,
                                'type' => ''
                ]
        ],
        'commission' => 0,
        'freightCommission' => 0,
        'id' => '',
        'isGift' => null,
        'itemAttachment' => [
                'content' => '',
                'name' => ''
        ],
        'measurementUnit' => '',
        'price' => 0,
        'priceTags' => [
                [
                                'identifier' => '',
                                'isPercentual' => null,
                                'name' => '',
                                'rawValue' => 0,
                                'value' => 0
                ]
        ],
        'quantity' => 0,
        'seller' => '',
        'unitMultiplier' => 0
    ]
  ],
  'marketingData' => [
    'utmCampaign' => '',
    'utmMedium' => '',
    'utmSource' => '',
    'utmiCampaign' => '',
    'utmiPage' => '',
    'utmiPart' => ''
  ],
  'marketplaceOrderId' => '',
  'marketplacePaymentValue' => 0,
  'marketplaceServicesEndpoint' => '',
  'openTextField' => '',
  'paymentData' => [
    
  ],
  'shippingData' => [
    'address' => [
        'addressId' => '',
        'addressType' => '',
        'city' => '',
        'complement' => '',
        'country' => '',
        'geoCoordinates' => [
                
        ],
        'neighborhood' => '',
        'number' => '',
        'postalCode' => '',
        'receiverName' => '',
        'reference' => '',
        'state' => '',
        'street' => ''
    ],
    'logisticsInfo' => [
        [
                'deliveryWindow' => [
                                'endDateUtc' => '',
                                'lisPrice' => 0,
                                'price' => 0,
                                'startDateUtc' => '',
                                'tax' => 0
                ],
                'itemIndex' => 0,
                'lockTTL' => '',
                'price' => 0,
                'selectedSla' => '',
                'shippingEstimate' => ''
        ]
    ],
    'updateStatus' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'clientProfileData' => [
    'corporateDocument' => '',
    'corporateName' => '',
    'corporatePhone' => '',
    'document' => '',
    'documentType' => '',
    'email' => '',
    'firstName' => '',
    'isCorporate' => null,
    'lastName' => '',
    'phone' => '',
    'stateInscription' => '',
    'tradeName' => ''
  ],
  'isCreatedAsync' => null,
  'items' => [
    [
        'attachments' => [
                
        ],
        'bundleItems' => [
                [
                                'id' => 0,
                                'name' => '',
                                'price' => 0,
                                'type' => ''
                ]
        ],
        'commission' => 0,
        'freightCommission' => 0,
        'id' => '',
        'isGift' => null,
        'itemAttachment' => [
                'content' => '',
                'name' => ''
        ],
        'measurementUnit' => '',
        'price' => 0,
        'priceTags' => [
                [
                                'identifier' => '',
                                'isPercentual' => null,
                                'name' => '',
                                'rawValue' => 0,
                                'value' => 0
                ]
        ],
        'quantity' => 0,
        'seller' => '',
        'unitMultiplier' => 0
    ]
  ],
  'marketingData' => [
    'utmCampaign' => '',
    'utmMedium' => '',
    'utmSource' => '',
    'utmiCampaign' => '',
    'utmiPage' => '',
    'utmiPart' => ''
  ],
  'marketplaceOrderId' => '',
  'marketplacePaymentValue' => 0,
  'marketplaceServicesEndpoint' => '',
  'openTextField' => '',
  'paymentData' => [
    
  ],
  'shippingData' => [
    'address' => [
        'addressId' => '',
        'addressType' => '',
        'city' => '',
        'complement' => '',
        'country' => '',
        'geoCoordinates' => [
                
        ],
        'neighborhood' => '',
        'number' => '',
        'postalCode' => '',
        'receiverName' => '',
        'reference' => '',
        'state' => '',
        'street' => ''
    ],
    'logisticsInfo' => [
        [
                'deliveryWindow' => [
                                'endDateUtc' => '',
                                'lisPrice' => 0,
                                'price' => 0,
                                'startDateUtc' => '',
                                'tax' => 0
                ],
                'itemIndex' => 0,
                'lockTTL' => '',
                'price' => 0,
                'selectedSla' => '',
                'shippingEstimate' => ''
        ]
    ],
    'updateStatus' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'affiliateId' => ''
]));

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=' -Method POST -Headers $headers -ContentType '' -Body '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "isCreatedAsync": false,
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemAttachment": {
        "content": "",
        "name": ""
      },
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "lisPrice": 0,
          "price": 0,
          "startDateUtc": "",
          "tax": 0
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=' -Method POST -Headers $headers -ContentType '' -Body '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "isCreatedAsync": false,
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemAttachment": {
        "content": "",
        "name": ""
      },
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "lisPrice": 0,
          "price": 0,
          "startDateUtc": "",
          "tax": 0
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}'
import http.client

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

payload = "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}"

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("POST", "/baseUrl/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=", payload, headers)

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

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

url = "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders"

querystring = {"affiliateId":""}

payload = {
    "clientProfileData": {
        "corporateDocument": "",
        "corporateName": "",
        "corporatePhone": "",
        "document": "",
        "documentType": "",
        "email": "",
        "firstName": "",
        "isCorporate": False,
        "lastName": "",
        "phone": "",
        "stateInscription": "",
        "tradeName": ""
    },
    "isCreatedAsync": False,
    "items": [
        {
            "attachments": [],
            "bundleItems": [
                {
                    "id": 0,
                    "name": "",
                    "price": 0,
                    "type": ""
                }
            ],
            "commission": 0,
            "freightCommission": 0,
            "id": "",
            "isGift": False,
            "itemAttachment": {
                "content": "",
                "name": ""
            },
            "measurementUnit": "",
            "price": 0,
            "priceTags": [
                {
                    "identifier": "",
                    "isPercentual": False,
                    "name": "",
                    "rawValue": 0,
                    "value": 0
                }
            ],
            "quantity": 0,
            "seller": "",
            "unitMultiplier": 0
        }
    ],
    "marketingData": {
        "utmCampaign": "",
        "utmMedium": "",
        "utmSource": "",
        "utmiCampaign": "",
        "utmiPage": "",
        "utmiPart": ""
    },
    "marketplaceOrderId": "",
    "marketplacePaymentValue": 0,
    "marketplaceServicesEndpoint": "",
    "openTextField": "",
    "paymentData": {},
    "shippingData": {
        "address": {
            "addressId": "",
            "addressType": "",
            "city": "",
            "complement": "",
            "country": "",
            "geoCoordinates": [],
            "neighborhood": "",
            "number": "",
            "postalCode": "",
            "receiverName": "",
            "reference": "",
            "state": "",
            "street": ""
        },
        "logisticsInfo": [
            {
                "deliveryWindow": {
                    "endDateUtc": "",
                    "lisPrice": 0,
                    "price": 0,
                    "startDateUtc": "",
                    "tax": 0
                },
                "itemIndex": 0,
                "lockTTL": "",
                "price": 0,
                "selectedSla": "",
                "shippingEstimate": ""
            }
        ],
        "updateStatus": ""
    }
}
headers = {
    "content-type": "",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders"

queryString <- list(affiliateId = "")

payload <- "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request["accept"] = ''
request.body = "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}"

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

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

response = conn.post('/baseUrl/:accountName.:environment.com.br/api/fulfillment/pvt/orders') do |req|
  req.headers['accept'] = ''
  req.params['affiliateId'] = ''
  req.body = "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"isCreatedAsync\": false,\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemAttachment\": {\n        \"content\": \"\",\n        \"name\": \"\"\n      },\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"lisPrice\": 0,\n          \"price\": 0,\n          \"startDateUtc\": \"\",\n          \"tax\": 0\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders";

    let querystring = [
        ("affiliateId", ""),
    ];

    let payload = json!({
        "clientProfileData": json!({
            "corporateDocument": "",
            "corporateName": "",
            "corporatePhone": "",
            "document": "",
            "documentType": "",
            "email": "",
            "firstName": "",
            "isCorporate": false,
            "lastName": "",
            "phone": "",
            "stateInscription": "",
            "tradeName": ""
        }),
        "isCreatedAsync": false,
        "items": (
            json!({
                "attachments": (),
                "bundleItems": (
                    json!({
                        "id": 0,
                        "name": "",
                        "price": 0,
                        "type": ""
                    })
                ),
                "commission": 0,
                "freightCommission": 0,
                "id": "",
                "isGift": false,
                "itemAttachment": json!({
                    "content": "",
                    "name": ""
                }),
                "measurementUnit": "",
                "price": 0,
                "priceTags": (
                    json!({
                        "identifier": "",
                        "isPercentual": false,
                        "name": "",
                        "rawValue": 0,
                        "value": 0
                    })
                ),
                "quantity": 0,
                "seller": "",
                "unitMultiplier": 0
            })
        ),
        "marketingData": json!({
            "utmCampaign": "",
            "utmMedium": "",
            "utmSource": "",
            "utmiCampaign": "",
            "utmiPage": "",
            "utmiPart": ""
        }),
        "marketplaceOrderId": "",
        "marketplacePaymentValue": 0,
        "marketplaceServicesEndpoint": "",
        "openTextField": "",
        "paymentData": json!({}),
        "shippingData": json!({
            "address": json!({
                "addressId": "",
                "addressType": "",
                "city": "",
                "complement": "",
                "country": "",
                "geoCoordinates": (),
                "neighborhood": "",
                "number": "",
                "postalCode": "",
                "receiverName": "",
                "reference": "",
                "state": "",
                "street": ""
            }),
            "logisticsInfo": (
                json!({
                    "deliveryWindow": json!({
                        "endDateUtc": "",
                        "lisPrice": 0,
                        "price": 0,
                        "startDateUtc": "",
                        "tax": 0
                    }),
                    "itemIndex": 0,
                    "lockTTL": "",
                    "price": 0,
                    "selectedSla": "",
                    "shippingEstimate": ""
                })
            ),
            "updateStatus": ""
        })
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=' \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "isCreatedAsync": false,
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemAttachment": {
        "content": "",
        "name": ""
      },
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "lisPrice": 0,
          "price": 0,
          "startDateUtc": "",
          "tax": 0
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}'
echo '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "isCreatedAsync": false,
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemAttachment": {
        "content": "",
        "name": ""
      },
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "lisPrice": 0,
          "price": 0,
          "startDateUtc": "",
          "tax": 0
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}' |  \
  http POST '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=' \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --body-data '{\n  "clientProfileData": {\n    "corporateDocument": "",\n    "corporateName": "",\n    "corporatePhone": "",\n    "document": "",\n    "documentType": "",\n    "email": "",\n    "firstName": "",\n    "isCorporate": false,\n    "lastName": "",\n    "phone": "",\n    "stateInscription": "",\n    "tradeName": ""\n  },\n  "isCreatedAsync": false,\n  "items": [\n    {\n      "attachments": [],\n      "bundleItems": [\n        {\n          "id": 0,\n          "name": "",\n          "price": 0,\n          "type": ""\n        }\n      ],\n      "commission": 0,\n      "freightCommission": 0,\n      "id": "",\n      "isGift": false,\n      "itemAttachment": {\n        "content": "",\n        "name": ""\n      },\n      "measurementUnit": "",\n      "price": 0,\n      "priceTags": [\n        {\n          "identifier": "",\n          "isPercentual": false,\n          "name": "",\n          "rawValue": 0,\n          "value": 0\n        }\n      ],\n      "quantity": 0,\n      "seller": "",\n      "unitMultiplier": 0\n    }\n  ],\n  "marketingData": {\n    "utmCampaign": "",\n    "utmMedium": "",\n    "utmSource": "",\n    "utmiCampaign": "",\n    "utmiPage": "",\n    "utmiPart": ""\n  },\n  "marketplaceOrderId": "",\n  "marketplacePaymentValue": 0,\n  "marketplaceServicesEndpoint": "",\n  "openTextField": "",\n  "paymentData": {},\n  "shippingData": {\n    "address": {\n      "addressId": "",\n      "addressType": "",\n      "city": "",\n      "complement": "",\n      "country": "",\n      "geoCoordinates": [],\n      "neighborhood": "",\n      "number": "",\n      "postalCode": "",\n      "receiverName": "",\n      "reference": "",\n      "state": "",\n      "street": ""\n    },\n    "logisticsInfo": [\n      {\n        "deliveryWindow": {\n          "endDateUtc": "",\n          "lisPrice": 0,\n          "price": 0,\n          "startDateUtc": "",\n          "tax": 0\n        },\n        "itemIndex": 0,\n        "lockTTL": "",\n        "price": 0,\n        "selectedSla": "",\n        "shippingEstimate": ""\n      }\n    ],\n    "updateStatus": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId='
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]
let parameters = [
  "clientProfileData": [
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  ],
  "isCreatedAsync": false,
  "items": [
    [
      "attachments": [],
      "bundleItems": [
        [
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        ]
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemAttachment": [
        "content": "",
        "name": ""
      ],
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        [
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        ]
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    ]
  ],
  "marketingData": [
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  ],
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": [],
  "shippingData": [
    "address": [
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    ],
    "logisticsInfo": [
      [
        "deliveryWindow": [
          "endDateUtc": "",
          "lisPrice": 0,
          "price": 0,
          "startDateUtc": "",
          "tax": 0
        ],
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      ]
    ],
    "updateStatus": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:accountName.:environment.com.br/api/fulfillment/pvt/orders?affiliateId=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

[
  {
    "clientProfileData": {
      "corporateDocument": null,
      "corporateName": null,
      "corporatePhone": null,
      "document": "11417984642",
      "documentType": "cpf",
      "email": "fba45537f5c84d4092cf064da742fe3d@ct.vtex.com.br",
      "firstName": "Júlio",
      "isCorporate": false,
      "lastName": "Augusto de Oliveira",
      "phone": "395555258",
      "stateInscription": null,
      "tradeName": null,
      "userProfileId": null
    },
    "customData": null,
    "followUpEmail": "9762a2a9028a4b5d8eb9a8ff909d15ce@ct.vtex.com.br",
    "items": [
      {
        "bundleItems": [],
        "comission": 0,
        "freightComission": 0,
        "id": "2",
        "isGift": false,
        "measurementUnit": "un",
        "price": 13890,
        "priceTable": null,
        "priceTags": [],
        "quantity": 1,
        "seller": "1",
        "unitMultiplier": 1
      }
    ],
    "marketplaceOrderId": "956",
    "orderId": "MBR-956",
    "paymentData": null,
    "shippingData": {
      "address": {
        "addressId": "Casa",
        "addressType": "Residencial",
        "city": "Americana",
        "complement": null,
        "country": "BRA",
        "geoCoordinates": [],
        "neighborhood": "Grande circo",
        "number": "31187",
        "postalCode": "98776003",
        "receiverName": "Júlio Augusto de Oliveira",
        "reference": "Bairro do foca / Posto de Saúde 65",
        "state": "SP",
        "street": "Rua da casa"
      },
      "isFOB": false,
      "logisticsInfo": [
        {
          "addressId": "Casa",
          "deliveryIds": [
            {
              "dockId": "1",
              "warehouseId": "1_1"
            }
          ],
          "deliveryWindow": null,
          "itemIndex": 0,
          "lockTTL": "8d",
          "price": 1090,
          "selectedDeliveryChannel": "delivery",
          "selectedSla": "Correios",
          "shippingEstimate": "7d"
        }
      ],
      "selectedaddresses": [
        {
          "addressId": "Casa",
          "addressType": "Residencial",
          "city": "Americana",
          "complement": null,
          "country": "BRA",
          "geoCoordinates": [],
          "neighborhood": "Grande circo",
          "number": "31187",
          "postalCode": "98776003",
          "receiverName": "Júlio Augusto de Oliveira",
          "reference": "Bairro do foca / Posto de Saúde 65",
          "state": "SP",
          "street": "Rua da casa"
        }
      ],
      "trackingHints": []
    }
  }
]
POST Send Category Mapping to VTEX Mapper
{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id
HEADERS

Content-Type
Accept
QUERY PARAMS

id
BODY json

{
  "categories": [
    {
      "children": [
        {
          "children": [],
          "id": "",
          "name": "",
          "specifications": [
            {
              "attributeName": "",
              "attributeValues": [
                {
                  "valueName": ""
                }
              ],
              "required": false
            }
          ]
        }
      ],
      "id": "",
      "name": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id" {:headers {:accept ""}
                                                                                                                                :content-type :json
                                                                                                                                :form-params {:categories [{:children [{:children []
                                                                                                                                                                        :id ""
                                                                                                                                                                        :name ""
                                                                                                                                                                        :specifications [{:attributeName ""
                                                                                                                                                                                          :attributeValues [{:valueName ""}]
                                                                                                                                                                                          :required false}]}]
                                                                                                                                                            :id ""
                                                                                                                                                            :name ""}]}})
require "http/client"

url = "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}
reqBody = "{\n  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
request.AddParameter("", "{\n  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id"

	payload := strings.NewReader("{\n  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}")

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

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
POST /baseUrl/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id HTTP/1.1
Content-Type: 
Accept: 
Host: example.com
Content-Length: 446

{
  "categories": [
    {
      "children": [
        {
          "children": [],
          "id": "",
          "name": "",
          "specifications": [
            {
              "attributeName": "",
              "attributeValues": [
                {
                  "valueName": ""
                }
              ],
              "required": false
            }
          ]
        }
      ],
      "id": "",
      "name": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .setBody("{\n  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id"))
    .header("content-type", "")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\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  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id")
  .header("content-type", "")
  .header("accept", "")
  .body("{\n  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  categories: [
    {
      children: [
        {
          children: [],
          id: '',
          name: '',
          specifications: [
            {
              attributeName: '',
              attributeValues: [
                {
                  valueName: ''
                }
              ],
              required: false
            }
          ]
        }
      ],
      id: '',
      name: ''
    }
  ]
});

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

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

xhr.open('POST', '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id',
  headers: {'content-type': '', accept: ''},
  data: {
    categories: [
      {
        children: [
          {
            children: [],
            id: '',
            name: '',
            specifications: [{attributeName: '', attributeValues: [{valueName: ''}], required: false}]
          }
        ],
        id: '',
        name: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"categories":[{"children":[{"children":[],"id":"","name":"","specifications":[{"attributeName":"","attributeValues":[{"valueName":""}],"required":false}]}],"id":"","name":""}]}'
};

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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  },
  processData: false,
  data: '{\n  "categories": [\n    {\n      "children": [\n        {\n          "children": [],\n          "id": "",\n          "name": "",\n          "specifications": [\n            {\n              "attributeName": "",\n              "attributeValues": [\n                {\n                  "valueName": ""\n                }\n              ],\n              "required": false\n            }\n          ]\n        }\n      ],\n      "id": "",\n      "name": ""\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  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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({
  categories: [
    {
      children: [
        {
          children: [],
          id: '',
          name: '',
          specifications: [{attributeName: '', attributeValues: [{valueName: ''}], required: false}]
        }
      ],
      id: '',
      name: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id',
  headers: {'content-type': '', accept: ''},
  body: {
    categories: [
      {
        children: [
          {
            children: [],
            id: '',
            name: '',
            specifications: [{attributeName: '', attributeValues: [{valueName: ''}], required: false}]
          }
        ],
        id: '',
        name: ''
      }
    ]
  },
  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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id');

req.headers({
  'content-type': '',
  accept: ''
});

req.type('json');
req.send({
  categories: [
    {
      children: [
        {
          children: [],
          id: '',
          name: '',
          specifications: [
            {
              attributeName: '',
              attributeValues: [
                {
                  valueName: ''
                }
              ],
              required: false
            }
          ]
        }
      ],
      id: '',
      name: ''
    }
  ]
});

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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id',
  headers: {'content-type': '', accept: ''},
  data: {
    categories: [
      {
        children: [
          {
            children: [],
            id: '',
            name: '',
            specifications: [{attributeName: '', attributeValues: [{valueName: ''}], required: false}]
          }
        ],
        id: '',
        name: ''
      }
    ]
  }
};

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

const url = '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"categories":[{"children":[{"children":[],"id":"","name":"","specifications":[{"attributeName":"","attributeValues":[{"valueName":""}],"required":false}]}],"id":"","name":""}]}'
};

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": @"",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"categories": @[ @{ @"children": @[ @{ @"children": @[  ], @"id": @"", @"name": @"", @"specifications": @[ @{ @"attributeName": @"", @"attributeValues": @[ @{ @"valueName": @"" } ], @"required": @NO } ] } ], @"id": @"", @"name": @"" } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id"]
                                                       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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id",
  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([
    'categories' => [
        [
                'children' => [
                                [
                                                                'children' => [
                                                                                                                                
                                                                ],
                                                                'id' => '',
                                                                'name' => '',
                                                                'specifications' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'attributeName' => '',
                                                                                                                                                                                                                                                                'attributeValues' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'valueName' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'required' => null
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'id' => '',
                'name' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id', [
  'body' => '{
  "categories": [
    {
      "children": [
        {
          "children": [],
          "id": "",
          "name": "",
          "specifications": [
            {
              "attributeName": "",
              "attributeValues": [
                {
                  "valueName": ""
                }
              ],
              "required": false
            }
          ]
        }
      ],
      "id": "",
      "name": ""
    }
  ]
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'categories' => [
    [
        'children' => [
                [
                                'children' => [
                                                                
                                ],
                                'id' => '',
                                'name' => '',
                                'specifications' => [
                                                                [
                                                                                                                                'attributeName' => '',
                                                                                                                                'attributeValues' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'valueName' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'required' => null
                                                                ]
                                ]
                ]
        ],
        'id' => '',
        'name' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'categories' => [
    [
        'children' => [
                [
                                'children' => [
                                                                
                                ],
                                'id' => '',
                                'name' => '',
                                'specifications' => [
                                                                [
                                                                                                                                'attributeName' => '',
                                                                                                                                'attributeValues' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'valueName' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'required' => null
                                                                ]
                                ]
                ]
        ],
        'id' => '',
        'name' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id' -Method POST -Headers $headers -ContentType '' -Body '{
  "categories": [
    {
      "children": [
        {
          "children": [],
          "id": "",
          "name": "",
          "specifications": [
            {
              "attributeName": "",
              "attributeValues": [
                {
                  "valueName": ""
                }
              ],
              "required": false
            }
          ]
        }
      ],
      "id": "",
      "name": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id' -Method POST -Headers $headers -ContentType '' -Body '{
  "categories": [
    {
      "children": [
        {
          "children": [],
          "id": "",
          "name": "",
          "specifications": [
            {
              "attributeName": "",
              "attributeValues": [
                {
                  "valueName": ""
                }
              ],
              "required": false
            }
          ]
        }
      ],
      "id": "",
      "name": ""
    }
  ]
}'
import http.client

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

payload = "{\n  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}"

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("POST", "/baseUrl/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id", payload, headers)

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

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

url = "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id"

payload = { "categories": [
        {
            "children": [
                {
                    "children": [],
                    "id": "",
                    "name": "",
                    "specifications": [
                        {
                            "attributeName": "",
                            "attributeValues": [{ "valueName": "" }],
                            "required": False
                        }
                    ]
                }
            ],
            "id": "",
            "name": ""
        }
    ] }
headers = {
    "content-type": "",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id"

payload <- "{\n  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request["accept"] = ''
request.body = "{\n  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}"

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

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

response = conn.post('/baseUrl/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"categories\": [\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"specifications\": [\n            {\n              \"attributeName\": \"\",\n              \"attributeValues\": [\n                {\n                  \"valueName\": \"\"\n                }\n              ],\n              \"required\": false\n            }\n          ]\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id";

    let payload = json!({"categories": (
            json!({
                "children": (
                    json!({
                        "children": (),
                        "id": "",
                        "name": "",
                        "specifications": (
                            json!({
                                "attributeName": "",
                                "attributeValues": (json!({"valueName": ""})),
                                "required": false
                            })
                        )
                    })
                ),
                "id": "",
                "name": ""
            })
        )});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "".parse().unwrap());
    headers.insert("accept", "".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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "categories": [
    {
      "children": [
        {
          "children": [],
          "id": "",
          "name": "",
          "specifications": [
            {
              "attributeName": "",
              "attributeValues": [
                {
                  "valueName": ""
                }
              ],
              "required": false
            }
          ]
        }
      ],
      "id": "",
      "name": ""
    }
  ]
}'
echo '{
  "categories": [
    {
      "children": [
        {
          "children": [],
          "id": "",
          "name": "",
          "specifications": [
            {
              "attributeName": "",
              "attributeValues": [
                {
                  "valueName": ""
                }
              ],
              "required": false
            }
          ]
        }
      ],
      "id": "",
      "name": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --body-data '{\n  "categories": [\n    {\n      "children": [\n        {\n          "children": [],\n          "id": "",\n          "name": "",\n          "specifications": [\n            {\n              "attributeName": "",\n              "attributeValues": [\n                {\n                  "valueName": ""\n                }\n              ],\n              "required": false\n            }\n          ]\n        }\n      ],\n      "id": "",\n      "name": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]
let parameters = ["categories": [
    [
      "children": [
        [
          "children": [],
          "id": "",
          "name": "",
          "specifications": [
            [
              "attributeName": "",
              "attributeValues": [["valueName": ""]],
              "required": false
            ]
          ]
        ]
      ],
      "id": "",
      "name": ""
    ]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/categories/marketplace/:id")! 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()
PUT Update Order Status
{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status
HEADERS

Content-Type
Accept
QUERY PARAMS

accountName
BODY json

{
  "connectorEndpoint": "",
  "connectorName": "",
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\n}");

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

(client/put "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status" {:headers {:accept ""}
                                                                                                                      :content-type :json
                                                                                                                      :form-params {:connectorEndpoint ""
                                                                                                                                    :connectorName ""
                                                                                                                                    :marketplaceOrderId ""
                                                                                                                                    :marketplaceOrderStatus ""}})
require "http/client"

url = "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}
reqBody = "{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
request.AddParameter("", "{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status"

	payload := strings.NewReader("{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\n}")

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

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
PUT /baseUrl/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status HTTP/1.1
Content-Type: 
Accept: 
Host: example.com
Content-Length: 112

{
  "connectorEndpoint": "",
  "connectorName": "",
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .setBody("{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status"))
    .header("content-type", "")
    .header("accept", "")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\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  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status")
  .put(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status")
  .header("content-type", "")
  .header("accept", "")
  .body("{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  connectorEndpoint: '',
  connectorName: '',
  marketplaceOrderId: '',
  marketplaceOrderStatus: ''
});

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

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

xhr.open('PUT', '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status',
  headers: {'content-type': '', accept: ''},
  data: {
    connectorEndpoint: '',
    connectorName: '',
    marketplaceOrderId: '',
    marketplaceOrderStatus: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status';
const options = {
  method: 'PUT',
  headers: {'content-type': '', accept: ''},
  body: '{"connectorEndpoint":"","connectorName":"","marketplaceOrderId":"","marketplaceOrderStatus":""}'
};

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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status',
  method: 'PUT',
  headers: {
    'content-type': '',
    accept: ''
  },
  processData: false,
  data: '{\n  "connectorEndpoint": "",\n  "connectorName": "",\n  "marketplaceOrderId": "",\n  "marketplaceOrderStatus": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status")
  .put(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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({
  connectorEndpoint: '',
  connectorName: '',
  marketplaceOrderId: '',
  marketplaceOrderStatus: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status',
  headers: {'content-type': '', accept: ''},
  body: {
    connectorEndpoint: '',
    connectorName: '',
    marketplaceOrderId: '',
    marketplaceOrderStatus: ''
  },
  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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status');

req.headers({
  'content-type': '',
  accept: ''
});

req.type('json');
req.send({
  connectorEndpoint: '',
  connectorName: '',
  marketplaceOrderId: '',
  marketplaceOrderStatus: ''
});

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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status',
  headers: {'content-type': '', accept: ''},
  data: {
    connectorEndpoint: '',
    connectorName: '',
    marketplaceOrderId: '',
    marketplaceOrderStatus: ''
  }
};

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

const url = '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status';
const options = {
  method: 'PUT',
  headers: {'content-type': '', accept: ''},
  body: '{"connectorEndpoint":"","connectorName":"","marketplaceOrderId":"","marketplaceOrderStatus":""}'
};

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": @"",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"connectorEndpoint": @"",
                              @"connectorName": @"",
                              @"marketplaceOrderId": @"",
                              @"marketplaceOrderStatus": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status"]
                                                       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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status",
  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([
    'connectorEndpoint' => '',
    'connectorName' => '',
    'marketplaceOrderId' => '',
    'marketplaceOrderStatus' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status', [
  'body' => '{
  "connectorEndpoint": "",
  "connectorName": "",
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'connectorEndpoint' => '',
  'connectorName' => '',
  'marketplaceOrderId' => '',
  'marketplaceOrderStatus' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'connectorEndpoint' => '',
  'connectorName' => '',
  'marketplaceOrderId' => '',
  'marketplaceOrderStatus' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status' -Method PUT -Headers $headers -ContentType '' -Body '{
  "connectorEndpoint": "",
  "connectorName": "",
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status' -Method PUT -Headers $headers -ContentType '' -Body '{
  "connectorEndpoint": "",
  "connectorName": "",
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": ""
}'
import http.client

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

payload = "{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\n}"

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("PUT", "/baseUrl/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status", payload, headers)

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

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

url = "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status"

payload = {
    "connectorEndpoint": "",
    "connectorName": "",
    "marketplaceOrderId": "",
    "marketplaceOrderStatus": ""
}
headers = {
    "content-type": "",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status"

payload <- "{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = ''
request["accept"] = ''
request.body = "{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\n}"

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

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

response = conn.put('/baseUrl/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"connectorEndpoint\": \"\",\n  \"connectorName\": \"\",\n  \"marketplaceOrderId\": \"\",\n  \"marketplaceOrderStatus\": \"\"\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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status";

    let payload = json!({
        "connectorEndpoint": "",
        "connectorName": "",
        "marketplaceOrderId": "",
        "marketplaceOrderStatus": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "".parse().unwrap());
    headers.insert("accept", "".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}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "connectorEndpoint": "",
  "connectorName": "",
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": ""
}'
echo '{
  "connectorEndpoint": "",
  "connectorName": "",
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": ""
}' |  \
  http PUT {{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status \
  accept:'' \
  content-type:''
wget --quiet \
  --method PUT \
  --header 'content-type: ' \
  --header 'accept: ' \
  --body-data '{\n  "connectorEndpoint": "",\n  "connectorName": "",\n  "marketplaceOrderId": "",\n  "marketplaceOrderStatus": ""\n}' \
  --output-document \
  - {{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]
let parameters = [
  "connectorEndpoint": "",
  "connectorName": "",
  "marketplaceOrderId": "",
  "marketplaceOrderStatus": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:accountName.vtexcommercestable.com.br/api/order-integration/orders/status")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "accountName": null,
  "code": "SOI003",
  "errors": null,
  "fields": null,
  "flow": "ApproveOrder",
  "marketplaceOrderId": "7e62fcd3-827b-400d-be8a-f050a79c4976",
  "message": "Order successfully enqueued",
  "operationId": null,
  "success": true
}
POST VTEX Mapper Registration
{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register
HEADERS

Content-Type
Accept
QUERY PARAMS

an
BODY json

{
  "CategoryTreeProcessingNotificationEndpoint": "",
  "categoryTreeEndPoint": "",
  "displayName": "",
  "mappingEndPoint": "",
  "properties": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\n}");

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

(client/post "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register" {:headers {:accept ""}
                                                                                                                        :query-params {:an ""}
                                                                                                                        :content-type :json
                                                                                                                        :form-params {:CategoryTreeProcessingNotificationEndpoint "https://CategoryTreeProcessingNotificationEndpoint.com/api"
                                                                                                                                      :categoryTreeEndPoint "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories"
                                                                                                                                      :displayName "Marketplace A"
                                                                                                                                      :mappingEndPoint "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"}})
require "http/client"

url = "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an="
headers = HTTP::Headers{
  "content-type" => "application/json"
  "accept" => ""
}
reqBody = "{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an="),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddHeader("accept", "");
request.AddParameter("application/json", "{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an="

	payload := strings.NewReader("{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\n}")

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

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

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

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

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

}
POST /baseUrl/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an= HTTP/1.1
Content-Type: application/json
Accept: 
Host: example.com
Content-Length: 342

{
  "CategoryTreeProcessingNotificationEndpoint": "https://CategoryTreeProcessingNotificationEndpoint.com/api",
  "categoryTreeEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories",
  "displayName": "Marketplace A",
  "mappingEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=")
  .setHeader("content-type", "application/json")
  .setHeader("accept", "")
  .setBody("{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an="))
    .header("content-type", "application/json")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\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  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=")
  .post(body)
  .addHeader("content-type", "application/json")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=")
  .header("content-type", "application/json")
  .header("accept", "")
  .body("{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\n}")
  .asString();
const data = JSON.stringify({
  CategoryTreeProcessingNotificationEndpoint: 'https://CategoryTreeProcessingNotificationEndpoint.com/api',
  categoryTreeEndPoint: 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories',
  displayName: 'Marketplace A',
  mappingEndPoint: 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping'
});

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

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

xhr.open('POST', '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=');
xhr.setRequestHeader('content-type', 'application/json');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register',
  params: {an: ''},
  headers: {'content-type': 'application/json', accept: ''},
  data: {
    CategoryTreeProcessingNotificationEndpoint: 'https://CategoryTreeProcessingNotificationEndpoint.com/api',
    categoryTreeEndPoint: 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories',
    displayName: 'Marketplace A',
    mappingEndPoint: 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping'
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json', accept: ''},
  body: '{"CategoryTreeProcessingNotificationEndpoint":"https://CategoryTreeProcessingNotificationEndpoint.com/api","categoryTreeEndPoint":"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories","displayName":"Marketplace A","mappingEndPoint":"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"}'
};

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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=',
  method: 'POST',
  headers: {
    'content-type': 'application/json',
    accept: ''
  },
  processData: false,
  data: '{\n  "CategoryTreeProcessingNotificationEndpoint": "https://CategoryTreeProcessingNotificationEndpoint.com/api",\n  "categoryTreeEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories",\n  "displayName": "Marketplace A",\n  "mappingEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=")
  .post(body)
  .addHeader("content-type", "application/json")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=',
  headers: {
    'content-type': 'application/json',
    accept: ''
  }
};

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({
  CategoryTreeProcessingNotificationEndpoint: 'https://CategoryTreeProcessingNotificationEndpoint.com/api',
  categoryTreeEndPoint: 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories',
  displayName: 'Marketplace A',
  mappingEndPoint: 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping'
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register',
  qs: {an: ''},
  headers: {'content-type': 'application/json', accept: ''},
  body: {
    CategoryTreeProcessingNotificationEndpoint: 'https://CategoryTreeProcessingNotificationEndpoint.com/api',
    categoryTreeEndPoint: 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories',
    displayName: 'Marketplace A',
    mappingEndPoint: 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping'
  },
  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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register');

req.query({
  an: ''
});

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

req.type('json');
req.send({
  CategoryTreeProcessingNotificationEndpoint: 'https://CategoryTreeProcessingNotificationEndpoint.com/api',
  categoryTreeEndPoint: 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories',
  displayName: 'Marketplace A',
  mappingEndPoint: 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping'
});

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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register',
  params: {an: ''},
  headers: {'content-type': 'application/json', accept: ''},
  data: {
    CategoryTreeProcessingNotificationEndpoint: 'https://CategoryTreeProcessingNotificationEndpoint.com/api',
    categoryTreeEndPoint: 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories',
    displayName: 'Marketplace A',
    mappingEndPoint: 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping'
  }
};

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

const url = '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json', accept: ''},
  body: '{"CategoryTreeProcessingNotificationEndpoint":"https://CategoryTreeProcessingNotificationEndpoint.com/api","categoryTreeEndPoint":"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories","displayName":"Marketplace A","mappingEndPoint":"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"}'
};

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",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"CategoryTreeProcessingNotificationEndpoint": @"https://CategoryTreeProcessingNotificationEndpoint.com/api",
                              @"categoryTreeEndPoint": @"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories",
                              @"displayName": @"Marketplace A",
                              @"mappingEndPoint": @"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an="]
                                                       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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "application/json");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=",
  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([
    'CategoryTreeProcessingNotificationEndpoint' => 'https://CategoryTreeProcessingNotificationEndpoint.com/api',
    'categoryTreeEndPoint' => 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories',
    'displayName' => 'Marketplace A',
    'mappingEndPoint' => 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping'
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "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}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=', [
  'body' => '{
  "CategoryTreeProcessingNotificationEndpoint": "https://CategoryTreeProcessingNotificationEndpoint.com/api",
  "categoryTreeEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories",
  "displayName": "Marketplace A",
  "mappingEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"
}',
  'headers' => [
    'accept' => '',
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'an' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CategoryTreeProcessingNotificationEndpoint' => 'https://CategoryTreeProcessingNotificationEndpoint.com/api',
  'categoryTreeEndPoint' => 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories',
  'displayName' => 'Marketplace A',
  'mappingEndPoint' => 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping'
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CategoryTreeProcessingNotificationEndpoint' => 'https://CategoryTreeProcessingNotificationEndpoint.com/api',
  'categoryTreeEndPoint' => 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories',
  'displayName' => 'Marketplace A',
  'mappingEndPoint' => 'http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping'
]));
$request->setRequestUrl('{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'an' => ''
]));

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CategoryTreeProcessingNotificationEndpoint": "https://CategoryTreeProcessingNotificationEndpoint.com/api",
  "categoryTreeEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories",
  "displayName": "Marketplace A",
  "mappingEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CategoryTreeProcessingNotificationEndpoint": "https://CategoryTreeProcessingNotificationEndpoint.com/api",
  "categoryTreeEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories",
  "displayName": "Marketplace A",
  "mappingEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"
}'
import http.client

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

payload = "{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\n}"

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

conn.request("POST", "/baseUrl/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=", payload, headers)

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

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

url = "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register"

querystring = {"an":""}

payload = {
    "CategoryTreeProcessingNotificationEndpoint": "https://CategoryTreeProcessingNotificationEndpoint.com/api",
    "categoryTreeEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories",
    "displayName": "Marketplace A",
    "mappingEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"
}
headers = {
    "content-type": "application/json",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register"

queryString <- list(an = "")

payload <- "{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request["accept"] = ''
request.body = "{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\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/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register') do |req|
  req.headers['accept'] = ''
  req.params['an'] = ''
  req.body = "{\n  \"CategoryTreeProcessingNotificationEndpoint\": \"https://CategoryTreeProcessingNotificationEndpoint.com/api\",\n  \"categoryTreeEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories\",\n  \"displayName\": \"Marketplace A\",\n  \"mappingEndPoint\": \"http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register";

    let querystring = [
        ("an", ""),
    ];

    let payload = json!({
        "CategoryTreeProcessingNotificationEndpoint": "https://CategoryTreeProcessingNotificationEndpoint.com/api",
        "categoryTreeEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories",
        "displayName": "Marketplace A",
        "mappingEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=' \
  --header 'accept: ' \
  --header 'content-type: application/json' \
  --data '{
  "CategoryTreeProcessingNotificationEndpoint": "https://CategoryTreeProcessingNotificationEndpoint.com/api",
  "categoryTreeEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories",
  "displayName": "Marketplace A",
  "mappingEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"
}'
echo '{
  "CategoryTreeProcessingNotificationEndpoint": "https://CategoryTreeProcessingNotificationEndpoint.com/api",
  "categoryTreeEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories",
  "displayName": "Marketplace A",
  "mappingEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"
}' |  \
  http POST '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=' \
  accept:'' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --header 'accept: ' \
  --body-data '{\n  "CategoryTreeProcessingNotificationEndpoint": "https://CategoryTreeProcessingNotificationEndpoint.com/api",\n  "categoryTreeEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories",\n  "displayName": "Marketplace A",\n  "mappingEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"\n}' \
  --output-document \
  - '{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an='
import Foundation

let headers = [
  "content-type": "application/json",
  "accept": ""
]
let parameters = [
  "CategoryTreeProcessingNotificationEndpoint": "https://CategoryTreeProcessingNotificationEndpoint.com/api",
  "categoryTreeEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/categories",
  "displayName": "Marketplace A",
  "mappingEndPoint": "http://api.vtexinternal.com.br/api/{{marketplaceName}}/mapper/mapping"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/portal.vtexcommercestable.com.br/api/mkp-category-mapper/connector/register?an=")! 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 Authorize fulfillment
{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill
HEADERS

Accept
Content-Type
QUERY PARAMS

fulfillmentEndpoint
sellerOrderId
BODY json

{
  "marketplaceOrderId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"marketplaceOrderId\": \"\"\n}");

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

(client/post "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill" {:headers {:accept ""}
                                                                                                   :content-type :json
                                                                                                   :form-params {:marketplaceOrderId ""}})
require "http/client"

url = "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
reqBody = "{\n  \"marketplaceOrderId\": \"\"\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}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"marketplaceOrderId\": \"\"\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}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"marketplaceOrderId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill"

	payload := strings.NewReader("{\n  \"marketplaceOrderId\": \"\"\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
POST /baseUrl/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 30

{
  "marketplaceOrderId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"marketplaceOrderId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill"))
    .header("accept", "")
    .header("content-type", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"marketplaceOrderId\": \"\"\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  \"marketplaceOrderId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill")
  .header("accept", "")
  .header("content-type", "")
  .body("{\n  \"marketplaceOrderId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  marketplaceOrderId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill',
  headers: {accept: '', 'content-type': ''},
  data: {marketplaceOrderId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"marketplaceOrderId":""}'
};

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}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': ''
  },
  processData: false,
  data: '{\n  "marketplaceOrderId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"marketplaceOrderId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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({marketplaceOrderId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill',
  headers: {accept: '', 'content-type': ''},
  body: {marketplaceOrderId: ''},
  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}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill');

req.headers({
  accept: '',
  'content-type': ''
});

req.type('json');
req.send({
  marketplaceOrderId: ''
});

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}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill',
  headers: {accept: '', 'content-type': ''},
  data: {marketplaceOrderId: ''}
};

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

const url = '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"marketplaceOrderId":""}'
};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"marketplaceOrderId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill"]
                                                       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}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"marketplaceOrderId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill",
  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([
    'marketplaceOrderId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill', [
  'body' => '{
  "marketplaceOrderId": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'marketplaceOrderId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill' -Method POST -Headers $headers -ContentType '' -Body '{
  "marketplaceOrderId": ""
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill' -Method POST -Headers $headers -ContentType '' -Body '{
  "marketplaceOrderId": ""
}'
import http.client

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

payload = "{\n  \"marketplaceOrderId\": \"\"\n}"

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("POST", "/baseUrl/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill", payload, headers)

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

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

url = "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill"

payload = { "marketplaceOrderId": "" }
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill"

payload <- "{\n  \"marketplaceOrderId\": \"\"\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}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"marketplaceOrderId\": \"\"\n}"

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

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

response = conn.post('/baseUrl/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"marketplaceOrderId\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill";

    let payload = json!({"marketplaceOrderId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "marketplaceOrderId": ""
}'
echo '{
  "marketplaceOrderId": ""
}' |  \
  http POST {{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "marketplaceOrderId": ""\n}' \
  --output-document \
  - {{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:sellerOrderId/fulfill
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = ["marketplaceOrderId": ""] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "date": "2014-10-06 18:52:00",
  "marketplaceOrderId": "959311095",
  "orderId": "1138342255777-01",
  "receipt": "e39d05f9-0c54-4469-a626-8bb5cff169f8"
}
POST Cancel order in marketplace
{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel
HEADERS

Accept
Content-Type
QUERY PARAMS

marketplaceServicesEndpoint
marketplaceOrderId
BODY json

{
  "reason": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: ");
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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel" {:headers {:accept ""}
                                                                                                               :content-type :json
                                                                                                               :form-params {:reason ""}})
require "http/client"

url = "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel"),
    Headers =
    {
        { "accept", "" },
    },
    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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"reason\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel"

	payload := strings.NewReader("{\n  \"reason\": \"\"\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
POST /baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 18

{
  "reason": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"reason\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel"))
    .header("accept", "")
    .header("content-type", "")
    .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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel")
  .header("accept", "")
  .header("content-type", "")
  .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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel',
  headers: {accept: '', 'content-type': ''},
  data: {reason: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': ''
  },
  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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel',
  headers: {accept: '', 'content-type': ''},
  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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel');

req.headers({
  accept: '',
  'content-type': ''
});

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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel',
  headers: {accept: '', 'content-type': ''},
  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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  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 = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"reason": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] 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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/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([
    'reason' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel', [
  'body' => '{
  "reason": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

$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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel' -Method POST -Headers $headers -ContentType '' -Body '{
  "reason": ""
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel' -Method POST -Headers $headers -ContentType '' -Body '{
  "reason": ""
}'
import http.client

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

payload = "{\n  \"reason\": \"\"\n}"

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("POST", "/baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel", payload, headers)

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

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

url = "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel"

payload = { "reason": "" }
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel"

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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"reason\": \"\"\n}"

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

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

response = conn.post('/baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel') do |req|
  req.headers['accept'] = ''
  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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel";

    let payload = json!({"reason": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "reason": ""
}'
echo '{
  "reason": ""
}' |  \
  http POST {{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "reason": ""\n}' \
  --output-document \
  - {{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/cancel
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = ["reason": ""] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "date": "2021-06-09T15:22:56.7612218-02:00",
  "orderId": "1138342255777-01",
  "receipt": "527b1ae251264ef1b7a9b597cd8f16b9"
}
POST Fulfillment simulation - External Seller
{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation
HEADERS

Accept
Content-Type
QUERY PARAMS

fulfillmentEndpoint
BODY json

{
  "country": "",
  "geoCoordinates": [],
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "postalCode": "",
  "sc": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\n}");

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

(client/post "{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation" {:headers {:accept ""}
                                                                                           :content-type :json
                                                                                           :form-params {:country ""
                                                                                                         :geoCoordinates []
                                                                                                         :items [{:id ""
                                                                                                                  :quantity 0
                                                                                                                  :seller ""}]
                                                                                                         :postalCode ""
                                                                                                         :sc ""}})
require "http/client"

url = "{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
reqBody = "{\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\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}}/:fulfillmentEndpoint/pvt/orderForms/simulation"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\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}}/:fulfillmentEndpoint/pvt/orderForms/simulation");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation"

	payload := strings.NewReader("{\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
POST /baseUrl/:fulfillmentEndpoint/pvt/orderForms/simulation HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 161

{
  "country": "",
  "geoCoordinates": [],
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "postalCode": "",
  "sc": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation"))
    .header("accept", "")
    .header("content-type", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\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  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation")
  .header("accept", "")
  .header("content-type", "")
  .body("{\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  country: '',
  geoCoordinates: [],
  items: [
    {
      id: '',
      quantity: 0,
      seller: ''
    }
  ],
  postalCode: '',
  sc: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation',
  headers: {accept: '', 'content-type': ''},
  data: {
    country: '',
    geoCoordinates: [],
    items: [{id: '', quantity: 0, seller: ''}],
    postalCode: '',
    sc: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"country":"","geoCoordinates":[],"items":[{"id":"","quantity":0,"seller":""}],"postalCode":"","sc":""}'
};

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}}/:fulfillmentEndpoint/pvt/orderForms/simulation',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': ''
  },
  processData: false,
  data: '{\n  "country": "",\n  "geoCoordinates": [],\n  "items": [\n    {\n      "id": "",\n      "quantity": 0,\n      "seller": ""\n    }\n  ],\n  "postalCode": "",\n  "sc": ""\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  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:fulfillmentEndpoint/pvt/orderForms/simulation',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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: '',
  geoCoordinates: [],
  items: [{id: '', quantity: 0, seller: ''}],
  postalCode: '',
  sc: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation',
  headers: {accept: '', 'content-type': ''},
  body: {
    country: '',
    geoCoordinates: [],
    items: [{id: '', quantity: 0, seller: ''}],
    postalCode: '',
    sc: ''
  },
  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}}/:fulfillmentEndpoint/pvt/orderForms/simulation');

req.headers({
  accept: '',
  'content-type': ''
});

req.type('json');
req.send({
  country: '',
  geoCoordinates: [],
  items: [
    {
      id: '',
      quantity: 0,
      seller: ''
    }
  ],
  postalCode: '',
  sc: ''
});

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}}/:fulfillmentEndpoint/pvt/orderForms/simulation',
  headers: {accept: '', 'content-type': ''},
  data: {
    country: '',
    geoCoordinates: [],
    items: [{id: '', quantity: 0, seller: ''}],
    postalCode: '',
    sc: ''
  }
};

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

const url = '{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"country":"","geoCoordinates":[],"items":[{"id":"","quantity":0,"seller":""}],"postalCode":"","sc":""}'
};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"country": @"",
                              @"geoCoordinates": @[  ],
                              @"items": @[ @{ @"id": @"", @"quantity": @0, @"seller": @"" } ],
                              @"postalCode": @"",
                              @"sc": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation"]
                                                       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}}/:fulfillmentEndpoint/pvt/orderForms/simulation" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation",
  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' => '',
    'geoCoordinates' => [
        
    ],
    'items' => [
        [
                'id' => '',
                'quantity' => 0,
                'seller' => ''
        ]
    ],
    'postalCode' => '',
    'sc' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation', [
  'body' => '{
  "country": "",
  "geoCoordinates": [],
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "postalCode": "",
  "sc": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'country' => '',
  'geoCoordinates' => [
    
  ],
  'items' => [
    [
        'id' => '',
        'quantity' => 0,
        'seller' => ''
    ]
  ],
  'postalCode' => '',
  'sc' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'country' => '',
  'geoCoordinates' => [
    
  ],
  'items' => [
    [
        'id' => '',
        'quantity' => 0,
        'seller' => ''
    ]
  ],
  'postalCode' => '',
  'sc' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation' -Method POST -Headers $headers -ContentType '' -Body '{
  "country": "",
  "geoCoordinates": [],
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "postalCode": "",
  "sc": ""
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation' -Method POST -Headers $headers -ContentType '' -Body '{
  "country": "",
  "geoCoordinates": [],
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "postalCode": "",
  "sc": ""
}'
import http.client

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

payload = "{\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\n}"

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("POST", "/baseUrl/:fulfillmentEndpoint/pvt/orderForms/simulation", payload, headers)

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

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

url = "{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation"

payload = {
    "country": "",
    "geoCoordinates": [],
    "items": [
        {
            "id": "",
            "quantity": 0,
            "seller": ""
        }
    ],
    "postalCode": "",
    "sc": ""
}
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation"

payload <- "{\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\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}}/:fulfillmentEndpoint/pvt/orderForms/simulation")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\n}"

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

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

response = conn.post('/baseUrl/:fulfillmentEndpoint/pvt/orderForms/simulation') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"country\": \"\",\n  \"geoCoordinates\": [],\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"quantity\": 0,\n      \"seller\": \"\"\n    }\n  ],\n  \"postalCode\": \"\",\n  \"sc\": \"\"\n}"
end

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

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

    let payload = json!({
        "country": "",
        "geoCoordinates": (),
        "items": (
            json!({
                "id": "",
                "quantity": 0,
                "seller": ""
            })
        ),
        "postalCode": "",
        "sc": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/:fulfillmentEndpoint/pvt/orderForms/simulation \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "country": "",
  "geoCoordinates": [],
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "postalCode": "",
  "sc": ""
}'
echo '{
  "country": "",
  "geoCoordinates": [],
  "items": [
    {
      "id": "",
      "quantity": 0,
      "seller": ""
    }
  ],
  "postalCode": "",
  "sc": ""
}' |  \
  http POST {{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "country": "",\n  "geoCoordinates": [],\n  "items": [\n    {\n      "id": "",\n      "quantity": 0,\n      "seller": ""\n    }\n  ],\n  "postalCode": "",\n  "sc": ""\n}' \
  --output-document \
  - {{baseUrl}}/:fulfillmentEndpoint/pvt/orderForms/simulation
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = [
  "country": "",
  "geoCoordinates": [],
  "items": [
    [
      "id": "",
      "quantity": 0,
      "seller": ""
    ]
  ],
  "postalCode": "",
  "sc": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "country": "BRA",
  "items": [
    {
      "id": "2000037",
      "listPrice": 67203,
      "measurementUnit": "un",
      "merchantName": "mySeller1",
      "offerings": [
        {
          "id": "5",
          "name": "1 year warranty",
          "price": 10000,
          "type": "Warranty"
        }
      ],
      "price": 67203,
      "priceTags": [],
      "priceValidUntil": "2014-03-01T22:58:28.143",
      "quantity": 1,
      "requestIndex": 0,
      "seller": "1",
      "unitMultiplier": 1
    }
  ],
  "logisticsInfo": [
    {
      "deliveryChannels": [
        {
          "id": "delivery",
          "stockBalance": 179
        },
        {
          "id": "pickup-in-point",
          "stockBalance": 20
        }
      ],
      "itemIndex": 0,
      "quantity": 1,
      "shipsTo": [
        "BRA"
      ],
      "slas": [
        {
          "availableDeliveryWindows": [
            {
              "endDateUtc": "2013-02-04T13:00:00+00:00",
              "price": 0,
              "startDateUtc": "2013-02-04T08:00:00+00:00"
            }
          ],
          "deliveryChannel": "pickup-in-point",
          "id": "Curbside pickup",
          "name": "Curbside pickup",
          "pickupStoreInfo": {
            "additionalInfo": "",
            "address": {
              "addressId": "548304ed-dd40-4416-b12b-4b32bfa7b1e0",
              "addressType": "pickup",
              "city": "Curitiba",
              "complement": "Loja 10",
              "country": "BRA",
              "geoCoordinates": [
                49.334934,
                25.401705
              ],
              "neighborhood": "Santa Felicidade",
              "number": "100",
              "postalCode": "82320-040",
              "receiverName": "Juliana",
              "reference": "Next to the unicorn statue",
              "state": "PR",
              "street": "Rua Domingos Strapasson"
            },
            "friendlyName": "Santa Felicidade",
            "isPickupStore": true
          },
          "price": 0,
          "shippingEstimate": "0bd"
        }
      ],
      "stockBalance": 199
    }
  ],
  "postalCode": "80250000"
}
POST Marketplace order cancellation
{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel
HEADERS

Accept
Content-Type
QUERY PARAMS

fulfillmentEndpoint
orderId
BODY json

{
  "marketplaceOrderId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"marketplaceOrderId\": \"\"\n}");

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

(client/post "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel" {:headers {:accept ""}
                                                                                            :content-type :json
                                                                                            :form-params {:marketplaceOrderId ""}})
require "http/client"

url = "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
reqBody = "{\n  \"marketplaceOrderId\": \"\"\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}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"marketplaceOrderId\": \"\"\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}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"marketplaceOrderId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel"

	payload := strings.NewReader("{\n  \"marketplaceOrderId\": \"\"\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
POST /baseUrl/:fulfillmentEndpoint/pvt/orders/:orderId/cancel HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 30

{
  "marketplaceOrderId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"marketplaceOrderId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel"))
    .header("accept", "")
    .header("content-type", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"marketplaceOrderId\": \"\"\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  \"marketplaceOrderId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel")
  .header("accept", "")
  .header("content-type", "")
  .body("{\n  \"marketplaceOrderId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  marketplaceOrderId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel',
  headers: {accept: '', 'content-type': ''},
  data: {marketplaceOrderId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"marketplaceOrderId":""}'
};

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}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': ''
  },
  processData: false,
  data: '{\n  "marketplaceOrderId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"marketplaceOrderId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:fulfillmentEndpoint/pvt/orders/:orderId/cancel',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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({marketplaceOrderId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel',
  headers: {accept: '', 'content-type': ''},
  body: {marketplaceOrderId: ''},
  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}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel');

req.headers({
  accept: '',
  'content-type': ''
});

req.type('json');
req.send({
  marketplaceOrderId: ''
});

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}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel',
  headers: {accept: '', 'content-type': ''},
  data: {marketplaceOrderId: ''}
};

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

const url = '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"marketplaceOrderId":""}'
};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"marketplaceOrderId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:fulfillmentEndpoint/pvt/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}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"marketplaceOrderId\": \"\"\n}" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel', [
  'body' => '{
  "marketplaceOrderId": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'marketplaceOrderId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel' -Method POST -Headers $headers -ContentType '' -Body '{
  "marketplaceOrderId": ""
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel' -Method POST -Headers $headers -ContentType '' -Body '{
  "marketplaceOrderId": ""
}'
import http.client

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

payload = "{\n  \"marketplaceOrderId\": \"\"\n}"

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("POST", "/baseUrl/:fulfillmentEndpoint/pvt/orders/:orderId/cancel", payload, headers)

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

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

url = "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel"

payload = { "marketplaceOrderId": "" }
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel"

payload <- "{\n  \"marketplaceOrderId\": \"\"\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}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"marketplaceOrderId\": \"\"\n}"

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

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

response = conn.post('/baseUrl/:fulfillmentEndpoint/pvt/orders/:orderId/cancel') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"marketplaceOrderId\": \"\"\n}"
end

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

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

    let payload = json!({"marketplaceOrderId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "marketplaceOrderId": ""
}'
echo '{
  "marketplaceOrderId": ""
}' |  \
  http POST {{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "marketplaceOrderId": ""\n}' \
  --output-document \
  - {{baseUrl}}/:fulfillmentEndpoint/pvt/orders/:orderId/cancel
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = ["marketplaceOrderId": ""] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:fulfillmentEndpoint/pvt/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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "date": "2019-05-09 15:31:23",
  "marketplaceOrderId": "959311095",
  "orderId": "1138342255777-01",
  "receipt": "e39d05f9-0c54-4469-a626-8bb5cff169f8"
}
POST Order placement
{{baseUrl}}/:fulfillmentEndpoint/pvt/orders
HEADERS

content-length
authorization
x-vtex-api-appkey
x-vtex-api-apptoken
accept
accept-enconding
x-vtex-operation-id
x-forwarded-proto
x-forwarded-for
x-vtex-cache-client-bypass
content-type
traceparent
QUERY PARAMS

fulfillmentEndpoint
BODY json

{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemsAttachment": [
        {
          "content": "",
          "name": ""
        }
      ],
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "listPrice": "",
          "startDateUtc": ""
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-length: ");
headers = curl_slist_append(headers, "authorization: ");
headers = curl_slist_append(headers, "x-vtex-api-appkey: ");
headers = curl_slist_append(headers, "x-vtex-api-apptoken: ");
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "accept-enconding: ");
headers = curl_slist_append(headers, "x-vtex-operation-id: ");
headers = curl_slist_append(headers, "x-forwarded-proto: ");
headers = curl_slist_append(headers, "x-forwarded-for: ");
headers = curl_slist_append(headers, "x-vtex-cache-client-bypass: ");
headers = curl_slist_append(headers, "content-type: ");
headers = curl_slist_append(headers, "traceparent: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders" {:headers {:content-length ""
                                                                                      :authorization ""
                                                                                      :x-vtex-api-appkey ""
                                                                                      :x-vtex-api-apptoken ""
                                                                                      :accept ""
                                                                                      :accept-enconding ""
                                                                                      :x-vtex-operation-id ""
                                                                                      :x-forwarded-proto ""
                                                                                      :x-forwarded-for ""
                                                                                      :x-vtex-cache-client-bypass ""
                                                                                      :traceparent ""}
                                                                            :content-type :json
                                                                            :form-params {:clientProfileData {:corporateDocument ""
                                                                                                              :corporateName ""
                                                                                                              :corporatePhone ""
                                                                                                              :document ""
                                                                                                              :documentType ""
                                                                                                              :email ""
                                                                                                              :firstName ""
                                                                                                              :isCorporate false
                                                                                                              :lastName ""
                                                                                                              :phone ""
                                                                                                              :stateInscription ""
                                                                                                              :tradeName ""}
                                                                                          :items [{:attachments []
                                                                                                   :bundleItems [{:id 0
                                                                                                                  :name ""
                                                                                                                  :price 0
                                                                                                                  :type ""}]
                                                                                                   :commission 0
                                                                                                   :freightCommission 0
                                                                                                   :id ""
                                                                                                   :isGift false
                                                                                                   :itemsAttachment [{:content ""
                                                                                                                      :name ""}]
                                                                                                   :measurementUnit ""
                                                                                                   :price 0
                                                                                                   :priceTags [{:identifier ""
                                                                                                                :isPercentual false
                                                                                                                :name ""
                                                                                                                :rawValue 0
                                                                                                                :value 0}]
                                                                                                   :quantity 0
                                                                                                   :seller ""
                                                                                                   :unitMultiplier 0}]
                                                                                          :marketingData {:utmCampaign ""
                                                                                                          :utmMedium ""
                                                                                                          :utmSource ""
                                                                                                          :utmiCampaign ""
                                                                                                          :utmiPage ""
                                                                                                          :utmiPart ""}
                                                                                          :marketplaceOrderId ""
                                                                                          :marketplacePaymentValue 0
                                                                                          :marketplaceServicesEndpoint ""
                                                                                          :openTextField ""
                                                                                          :paymentData {}
                                                                                          :shippingData {:address {:addressId ""
                                                                                                                   :addressType ""
                                                                                                                   :city ""
                                                                                                                   :complement ""
                                                                                                                   :country ""
                                                                                                                   :geoCoordinates []
                                                                                                                   :neighborhood ""
                                                                                                                   :number ""
                                                                                                                   :postalCode ""
                                                                                                                   :receiverName ""
                                                                                                                   :reference ""
                                                                                                                   :state ""
                                                                                                                   :street ""}
                                                                                                         :logisticsInfo [{:deliveryWindow {:endDateUtc ""
                                                                                                                                           :listPrice ""
                                                                                                                                           :startDateUtc ""}
                                                                                                                          :itemIndex 0
                                                                                                                          :lockTTL ""
                                                                                                                          :price 0
                                                                                                                          :selectedSla ""
                                                                                                                          :shippingEstimate ""}]
                                                                                                         :updateStatus ""}}})
require "http/client"

url = "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders"
headers = HTTP::Headers{
  "content-length" => ""
  "authorization" => ""
  "x-vtex-api-appkey" => ""
  "x-vtex-api-apptoken" => ""
  "accept" => ""
  "accept-enconding" => ""
  "x-vtex-operation-id" => ""
  "x-forwarded-proto" => ""
  "x-forwarded-for" => ""
  "x-vtex-cache-client-bypass" => ""
  "content-type" => ""
  "traceparent" => ""
}
reqBody = "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\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}}/:fulfillmentEndpoint/pvt/orders"),
    Headers =
    {
        { "authorization", "" },
        { "x-vtex-api-appkey", "" },
        { "x-vtex-api-apptoken", "" },
        { "accept", "" },
        { "accept-enconding", "" },
        { "x-vtex-operation-id", "" },
        { "x-forwarded-proto", "" },
        { "x-forwarded-for", "" },
        { "x-vtex-cache-client-bypass", "" },
        { "traceparent", "" },
    },
    Content = new StringContent("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\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}}/:fulfillmentEndpoint/pvt/orders");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-length", "");
request.AddHeader("authorization", "");
request.AddHeader("x-vtex-api-appkey", "");
request.AddHeader("x-vtex-api-apptoken", "");
request.AddHeader("accept", "");
request.AddHeader("accept-enconding", "");
request.AddHeader("x-vtex-operation-id", "");
request.AddHeader("x-forwarded-proto", "");
request.AddHeader("x-forwarded-for", "");
request.AddHeader("x-vtex-cache-client-bypass", "");
request.AddHeader("content-type", "");
request.AddHeader("traceparent", "");
request.AddParameter("", "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders"

	payload := strings.NewReader("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}")

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

	req.Header.Add("content-length", "")
	req.Header.Add("authorization", "")
	req.Header.Add("x-vtex-api-appkey", "")
	req.Header.Add("x-vtex-api-apptoken", "")
	req.Header.Add("accept", "")
	req.Header.Add("accept-enconding", "")
	req.Header.Add("x-vtex-operation-id", "")
	req.Header.Add("x-forwarded-proto", "")
	req.Header.Add("x-forwarded-for", "")
	req.Header.Add("x-vtex-cache-client-bypass", "")
	req.Header.Add("content-type", "")
	req.Header.Add("traceparent", "")

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

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

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

}
POST /baseUrl/:fulfillmentEndpoint/pvt/orders HTTP/1.1
Content-Length: 
Authorization: 
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Accept: 
Accept-Enconding: 
X-Vtex-Operation-Id: 
X-Forwarded-Proto: 
X-Forwarded-For: 
X-Vtex-Cache-Client-Bypass: 
Content-Type: 
Traceparent: 
Host: example.com

{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemsAttachment": [
        {
          "content": "",
          "name": ""
        }
      ],
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "listPrice": "",
          "startDateUtc": ""
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders")
  .setHeader("content-length", "")
  .setHeader("authorization", "")
  .setHeader("x-vtex-api-appkey", "")
  .setHeader("x-vtex-api-apptoken", "")
  .setHeader("accept", "")
  .setHeader("accept-enconding", "")
  .setHeader("x-vtex-operation-id", "")
  .setHeader("x-forwarded-proto", "")
  .setHeader("x-forwarded-for", "")
  .setHeader("x-vtex-cache-client-bypass", "")
  .setHeader("content-type", "")
  .setHeader("traceparent", "")
  .setBody("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:fulfillmentEndpoint/pvt/orders"))
    .header("content-length", "")
    .header("authorization", "")
    .header("x-vtex-api-appkey", "")
    .header("x-vtex-api-apptoken", "")
    .header("accept", "")
    .header("accept-enconding", "")
    .header("x-vtex-operation-id", "")
    .header("x-forwarded-proto", "")
    .header("x-forwarded-for", "")
    .header("x-vtex-cache-client-bypass", "")
    .header("content-type", "")
    .header("traceparent", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\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  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:fulfillmentEndpoint/pvt/orders")
  .post(body)
  .addHeader("content-length", "")
  .addHeader("authorization", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .addHeader("accept", "")
  .addHeader("accept-enconding", "")
  .addHeader("x-vtex-operation-id", "")
  .addHeader("x-forwarded-proto", "")
  .addHeader("x-forwarded-for", "")
  .addHeader("x-vtex-cache-client-bypass", "")
  .addHeader("content-type", "")
  .addHeader("traceparent", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:fulfillmentEndpoint/pvt/orders")
  .header("content-length", "")
  .header("authorization", "")
  .header("x-vtex-api-appkey", "")
  .header("x-vtex-api-apptoken", "")
  .header("accept", "")
  .header("accept-enconding", "")
  .header("x-vtex-operation-id", "")
  .header("x-forwarded-proto", "")
  .header("x-forwarded-for", "")
  .header("x-vtex-cache-client-bypass", "")
  .header("content-type", "")
  .header("traceparent", "")
  .body("{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  clientProfileData: {
    corporateDocument: '',
    corporateName: '',
    corporatePhone: '',
    document: '',
    documentType: '',
    email: '',
    firstName: '',
    isCorporate: false,
    lastName: '',
    phone: '',
    stateInscription: '',
    tradeName: ''
  },
  items: [
    {
      attachments: [],
      bundleItems: [
        {
          id: 0,
          name: '',
          price: 0,
          type: ''
        }
      ],
      commission: 0,
      freightCommission: 0,
      id: '',
      isGift: false,
      itemsAttachment: [
        {
          content: '',
          name: ''
        }
      ],
      measurementUnit: '',
      price: 0,
      priceTags: [
        {
          identifier: '',
          isPercentual: false,
          name: '',
          rawValue: 0,
          value: 0
        }
      ],
      quantity: 0,
      seller: '',
      unitMultiplier: 0
    }
  ],
  marketingData: {
    utmCampaign: '',
    utmMedium: '',
    utmSource: '',
    utmiCampaign: '',
    utmiPage: '',
    utmiPart: ''
  },
  marketplaceOrderId: '',
  marketplacePaymentValue: 0,
  marketplaceServicesEndpoint: '',
  openTextField: '',
  paymentData: {},
  shippingData: {
    address: {
      addressId: '',
      addressType: '',
      city: '',
      complement: '',
      country: '',
      geoCoordinates: [],
      neighborhood: '',
      number: '',
      postalCode: '',
      receiverName: '',
      reference: '',
      state: '',
      street: ''
    },
    logisticsInfo: [
      {
        deliveryWindow: {
          endDateUtc: '',
          listPrice: '',
          startDateUtc: ''
        },
        itemIndex: 0,
        lockTTL: '',
        price: 0,
        selectedSla: '',
        shippingEstimate: ''
      }
    ],
    updateStatus: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders');
xhr.setRequestHeader('content-length', '');
xhr.setRequestHeader('authorization', '');
xhr.setRequestHeader('x-vtex-api-appkey', '');
xhr.setRequestHeader('x-vtex-api-apptoken', '');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('accept-enconding', '');
xhr.setRequestHeader('x-vtex-operation-id', '');
xhr.setRequestHeader('x-forwarded-proto', '');
xhr.setRequestHeader('x-forwarded-for', '');
xhr.setRequestHeader('x-vtex-cache-client-bypass', '');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('traceparent', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders',
  headers: {
    'content-length': '',
    authorization: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    accept: '',
    'accept-enconding': '',
    'x-vtex-operation-id': '',
    'x-forwarded-proto': '',
    'x-forwarded-for': '',
    'x-vtex-cache-client-bypass': '',
    'content-type': '',
    traceparent: ''
  },
  data: {
    clientProfileData: {
      corporateDocument: '',
      corporateName: '',
      corporatePhone: '',
      document: '',
      documentType: '',
      email: '',
      firstName: '',
      isCorporate: false,
      lastName: '',
      phone: '',
      stateInscription: '',
      tradeName: ''
    },
    items: [
      {
        attachments: [],
        bundleItems: [{id: 0, name: '', price: 0, type: ''}],
        commission: 0,
        freightCommission: 0,
        id: '',
        isGift: false,
        itemsAttachment: [{content: '', name: ''}],
        measurementUnit: '',
        price: 0,
        priceTags: [{identifier: '', isPercentual: false, name: '', rawValue: 0, value: 0}],
        quantity: 0,
        seller: '',
        unitMultiplier: 0
      }
    ],
    marketingData: {
      utmCampaign: '',
      utmMedium: '',
      utmSource: '',
      utmiCampaign: '',
      utmiPage: '',
      utmiPart: ''
    },
    marketplaceOrderId: '',
    marketplacePaymentValue: 0,
    marketplaceServicesEndpoint: '',
    openTextField: '',
    paymentData: {},
    shippingData: {
      address: {
        addressId: '',
        addressType: '',
        city: '',
        complement: '',
        country: '',
        geoCoordinates: [],
        neighborhood: '',
        number: '',
        postalCode: '',
        receiverName: '',
        reference: '',
        state: '',
        street: ''
      },
      logisticsInfo: [
        {
          deliveryWindow: {endDateUtc: '', listPrice: '', startDateUtc: ''},
          itemIndex: 0,
          lockTTL: '',
          price: 0,
          selectedSla: '',
          shippingEstimate: ''
        }
      ],
      updateStatus: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders';
const options = {
  method: 'POST',
  headers: {
    'content-length': '',
    authorization: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    accept: '',
    'accept-enconding': '',
    'x-vtex-operation-id': '',
    'x-forwarded-proto': '',
    'x-forwarded-for': '',
    'x-vtex-cache-client-bypass': '',
    'content-type': '',
    traceparent: ''
  },
  body: '{"clientProfileData":{"corporateDocument":"","corporateName":"","corporatePhone":"","document":"","documentType":"","email":"","firstName":"","isCorporate":false,"lastName":"","phone":"","stateInscription":"","tradeName":""},"items":[{"attachments":[],"bundleItems":[{"id":0,"name":"","price":0,"type":""}],"commission":0,"freightCommission":0,"id":"","isGift":false,"itemsAttachment":[{"content":"","name":""}],"measurementUnit":"","price":0,"priceTags":[{"identifier":"","isPercentual":false,"name":"","rawValue":0,"value":0}],"quantity":0,"seller":"","unitMultiplier":0}],"marketingData":{"utmCampaign":"","utmMedium":"","utmSource":"","utmiCampaign":"","utmiPage":"","utmiPart":""},"marketplaceOrderId":"","marketplacePaymentValue":0,"marketplaceServicesEndpoint":"","openTextField":"","paymentData":{},"shippingData":{"address":{"addressId":"","addressType":"","city":"","complement":"","country":"","geoCoordinates":[],"neighborhood":"","number":"","postalCode":"","receiverName":"","reference":"","state":"","street":""},"logisticsInfo":[{"deliveryWindow":{"endDateUtc":"","listPrice":"","startDateUtc":""},"itemIndex":0,"lockTTL":"","price":0,"selectedSla":"","shippingEstimate":""}],"updateStatus":""}}'
};

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}}/:fulfillmentEndpoint/pvt/orders',
  method: 'POST',
  headers: {
    'content-length': '',
    authorization: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    accept: '',
    'accept-enconding': '',
    'x-vtex-operation-id': '',
    'x-forwarded-proto': '',
    'x-forwarded-for': '',
    'x-vtex-cache-client-bypass': '',
    'content-type': '',
    traceparent: ''
  },
  processData: false,
  data: '{\n  "clientProfileData": {\n    "corporateDocument": "",\n    "corporateName": "",\n    "corporatePhone": "",\n    "document": "",\n    "documentType": "",\n    "email": "",\n    "firstName": "",\n    "isCorporate": false,\n    "lastName": "",\n    "phone": "",\n    "stateInscription": "",\n    "tradeName": ""\n  },\n  "items": [\n    {\n      "attachments": [],\n      "bundleItems": [\n        {\n          "id": 0,\n          "name": "",\n          "price": 0,\n          "type": ""\n        }\n      ],\n      "commission": 0,\n      "freightCommission": 0,\n      "id": "",\n      "isGift": false,\n      "itemsAttachment": [\n        {\n          "content": "",\n          "name": ""\n        }\n      ],\n      "measurementUnit": "",\n      "price": 0,\n      "priceTags": [\n        {\n          "identifier": "",\n          "isPercentual": false,\n          "name": "",\n          "rawValue": 0,\n          "value": 0\n        }\n      ],\n      "quantity": 0,\n      "seller": "",\n      "unitMultiplier": 0\n    }\n  ],\n  "marketingData": {\n    "utmCampaign": "",\n    "utmMedium": "",\n    "utmSource": "",\n    "utmiCampaign": "",\n    "utmiPage": "",\n    "utmiPart": ""\n  },\n  "marketplaceOrderId": "",\n  "marketplacePaymentValue": 0,\n  "marketplaceServicesEndpoint": "",\n  "openTextField": "",\n  "paymentData": {},\n  "shippingData": {\n    "address": {\n      "addressId": "",\n      "addressType": "",\n      "city": "",\n      "complement": "",\n      "country": "",\n      "geoCoordinates": [],\n      "neighborhood": "",\n      "number": "",\n      "postalCode": "",\n      "receiverName": "",\n      "reference": "",\n      "state": "",\n      "street": ""\n    },\n    "logisticsInfo": [\n      {\n        "deliveryWindow": {\n          "endDateUtc": "",\n          "listPrice": "",\n          "startDateUtc": ""\n        },\n        "itemIndex": 0,\n        "lockTTL": "",\n        "price": 0,\n        "selectedSla": "",\n        "shippingEstimate": ""\n      }\n    ],\n    "updateStatus": ""\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  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:fulfillmentEndpoint/pvt/orders")
  .post(body)
  .addHeader("content-length", "")
  .addHeader("authorization", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .addHeader("accept", "")
  .addHeader("accept-enconding", "")
  .addHeader("x-vtex-operation-id", "")
  .addHeader("x-forwarded-proto", "")
  .addHeader("x-forwarded-for", "")
  .addHeader("x-vtex-cache-client-bypass", "")
  .addHeader("content-type", "")
  .addHeader("traceparent", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:fulfillmentEndpoint/pvt/orders',
  headers: {
    'content-length': '',
    authorization: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    accept: '',
    'accept-enconding': '',
    'x-vtex-operation-id': '',
    'x-forwarded-proto': '',
    'x-forwarded-for': '',
    'x-vtex-cache-client-bypass': '',
    'content-type': '',
    traceparent: ''
  }
};

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({
  clientProfileData: {
    corporateDocument: '',
    corporateName: '',
    corporatePhone: '',
    document: '',
    documentType: '',
    email: '',
    firstName: '',
    isCorporate: false,
    lastName: '',
    phone: '',
    stateInscription: '',
    tradeName: ''
  },
  items: [
    {
      attachments: [],
      bundleItems: [{id: 0, name: '', price: 0, type: ''}],
      commission: 0,
      freightCommission: 0,
      id: '',
      isGift: false,
      itemsAttachment: [{content: '', name: ''}],
      measurementUnit: '',
      price: 0,
      priceTags: [{identifier: '', isPercentual: false, name: '', rawValue: 0, value: 0}],
      quantity: 0,
      seller: '',
      unitMultiplier: 0
    }
  ],
  marketingData: {
    utmCampaign: '',
    utmMedium: '',
    utmSource: '',
    utmiCampaign: '',
    utmiPage: '',
    utmiPart: ''
  },
  marketplaceOrderId: '',
  marketplacePaymentValue: 0,
  marketplaceServicesEndpoint: '',
  openTextField: '',
  paymentData: {},
  shippingData: {
    address: {
      addressId: '',
      addressType: '',
      city: '',
      complement: '',
      country: '',
      geoCoordinates: [],
      neighborhood: '',
      number: '',
      postalCode: '',
      receiverName: '',
      reference: '',
      state: '',
      street: ''
    },
    logisticsInfo: [
      {
        deliveryWindow: {endDateUtc: '', listPrice: '', startDateUtc: ''},
        itemIndex: 0,
        lockTTL: '',
        price: 0,
        selectedSla: '',
        shippingEstimate: ''
      }
    ],
    updateStatus: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders',
  headers: {
    'content-length': '',
    authorization: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    accept: '',
    'accept-enconding': '',
    'x-vtex-operation-id': '',
    'x-forwarded-proto': '',
    'x-forwarded-for': '',
    'x-vtex-cache-client-bypass': '',
    'content-type': '',
    traceparent: ''
  },
  body: {
    clientProfileData: {
      corporateDocument: '',
      corporateName: '',
      corporatePhone: '',
      document: '',
      documentType: '',
      email: '',
      firstName: '',
      isCorporate: false,
      lastName: '',
      phone: '',
      stateInscription: '',
      tradeName: ''
    },
    items: [
      {
        attachments: [],
        bundleItems: [{id: 0, name: '', price: 0, type: ''}],
        commission: 0,
        freightCommission: 0,
        id: '',
        isGift: false,
        itemsAttachment: [{content: '', name: ''}],
        measurementUnit: '',
        price: 0,
        priceTags: [{identifier: '', isPercentual: false, name: '', rawValue: 0, value: 0}],
        quantity: 0,
        seller: '',
        unitMultiplier: 0
      }
    ],
    marketingData: {
      utmCampaign: '',
      utmMedium: '',
      utmSource: '',
      utmiCampaign: '',
      utmiPage: '',
      utmiPart: ''
    },
    marketplaceOrderId: '',
    marketplacePaymentValue: 0,
    marketplaceServicesEndpoint: '',
    openTextField: '',
    paymentData: {},
    shippingData: {
      address: {
        addressId: '',
        addressType: '',
        city: '',
        complement: '',
        country: '',
        geoCoordinates: [],
        neighborhood: '',
        number: '',
        postalCode: '',
        receiverName: '',
        reference: '',
        state: '',
        street: ''
      },
      logisticsInfo: [
        {
          deliveryWindow: {endDateUtc: '', listPrice: '', startDateUtc: ''},
          itemIndex: 0,
          lockTTL: '',
          price: 0,
          selectedSla: '',
          shippingEstimate: ''
        }
      ],
      updateStatus: ''
    }
  },
  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}}/:fulfillmentEndpoint/pvt/orders');

req.headers({
  'content-length': '',
  authorization: '',
  'x-vtex-api-appkey': '',
  'x-vtex-api-apptoken': '',
  accept: '',
  'accept-enconding': '',
  'x-vtex-operation-id': '',
  'x-forwarded-proto': '',
  'x-forwarded-for': '',
  'x-vtex-cache-client-bypass': '',
  'content-type': '',
  traceparent: ''
});

req.type('json');
req.send({
  clientProfileData: {
    corporateDocument: '',
    corporateName: '',
    corporatePhone: '',
    document: '',
    documentType: '',
    email: '',
    firstName: '',
    isCorporate: false,
    lastName: '',
    phone: '',
    stateInscription: '',
    tradeName: ''
  },
  items: [
    {
      attachments: [],
      bundleItems: [
        {
          id: 0,
          name: '',
          price: 0,
          type: ''
        }
      ],
      commission: 0,
      freightCommission: 0,
      id: '',
      isGift: false,
      itemsAttachment: [
        {
          content: '',
          name: ''
        }
      ],
      measurementUnit: '',
      price: 0,
      priceTags: [
        {
          identifier: '',
          isPercentual: false,
          name: '',
          rawValue: 0,
          value: 0
        }
      ],
      quantity: 0,
      seller: '',
      unitMultiplier: 0
    }
  ],
  marketingData: {
    utmCampaign: '',
    utmMedium: '',
    utmSource: '',
    utmiCampaign: '',
    utmiPage: '',
    utmiPart: ''
  },
  marketplaceOrderId: '',
  marketplacePaymentValue: 0,
  marketplaceServicesEndpoint: '',
  openTextField: '',
  paymentData: {},
  shippingData: {
    address: {
      addressId: '',
      addressType: '',
      city: '',
      complement: '',
      country: '',
      geoCoordinates: [],
      neighborhood: '',
      number: '',
      postalCode: '',
      receiverName: '',
      reference: '',
      state: '',
      street: ''
    },
    logisticsInfo: [
      {
        deliveryWindow: {
          endDateUtc: '',
          listPrice: '',
          startDateUtc: ''
        },
        itemIndex: 0,
        lockTTL: '',
        price: 0,
        selectedSla: '',
        shippingEstimate: ''
      }
    ],
    updateStatus: ''
  }
});

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}}/:fulfillmentEndpoint/pvt/orders',
  headers: {
    'content-length': '',
    authorization: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    accept: '',
    'accept-enconding': '',
    'x-vtex-operation-id': '',
    'x-forwarded-proto': '',
    'x-forwarded-for': '',
    'x-vtex-cache-client-bypass': '',
    'content-type': '',
    traceparent: ''
  },
  data: {
    clientProfileData: {
      corporateDocument: '',
      corporateName: '',
      corporatePhone: '',
      document: '',
      documentType: '',
      email: '',
      firstName: '',
      isCorporate: false,
      lastName: '',
      phone: '',
      stateInscription: '',
      tradeName: ''
    },
    items: [
      {
        attachments: [],
        bundleItems: [{id: 0, name: '', price: 0, type: ''}],
        commission: 0,
        freightCommission: 0,
        id: '',
        isGift: false,
        itemsAttachment: [{content: '', name: ''}],
        measurementUnit: '',
        price: 0,
        priceTags: [{identifier: '', isPercentual: false, name: '', rawValue: 0, value: 0}],
        quantity: 0,
        seller: '',
        unitMultiplier: 0
      }
    ],
    marketingData: {
      utmCampaign: '',
      utmMedium: '',
      utmSource: '',
      utmiCampaign: '',
      utmiPage: '',
      utmiPart: ''
    },
    marketplaceOrderId: '',
    marketplacePaymentValue: 0,
    marketplaceServicesEndpoint: '',
    openTextField: '',
    paymentData: {},
    shippingData: {
      address: {
        addressId: '',
        addressType: '',
        city: '',
        complement: '',
        country: '',
        geoCoordinates: [],
        neighborhood: '',
        number: '',
        postalCode: '',
        receiverName: '',
        reference: '',
        state: '',
        street: ''
      },
      logisticsInfo: [
        {
          deliveryWindow: {endDateUtc: '', listPrice: '', startDateUtc: ''},
          itemIndex: 0,
          lockTTL: '',
          price: 0,
          selectedSla: '',
          shippingEstimate: ''
        }
      ],
      updateStatus: ''
    }
  }
};

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

const url = '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders';
const options = {
  method: 'POST',
  headers: {
    'content-length': '',
    authorization: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    accept: '',
    'accept-enconding': '',
    'x-vtex-operation-id': '',
    'x-forwarded-proto': '',
    'x-forwarded-for': '',
    'x-vtex-cache-client-bypass': '',
    'content-type': '',
    traceparent: ''
  },
  body: '{"clientProfileData":{"corporateDocument":"","corporateName":"","corporatePhone":"","document":"","documentType":"","email":"","firstName":"","isCorporate":false,"lastName":"","phone":"","stateInscription":"","tradeName":""},"items":[{"attachments":[],"bundleItems":[{"id":0,"name":"","price":0,"type":""}],"commission":0,"freightCommission":0,"id":"","isGift":false,"itemsAttachment":[{"content":"","name":""}],"measurementUnit":"","price":0,"priceTags":[{"identifier":"","isPercentual":false,"name":"","rawValue":0,"value":0}],"quantity":0,"seller":"","unitMultiplier":0}],"marketingData":{"utmCampaign":"","utmMedium":"","utmSource":"","utmiCampaign":"","utmiPage":"","utmiPart":""},"marketplaceOrderId":"","marketplacePaymentValue":0,"marketplaceServicesEndpoint":"","openTextField":"","paymentData":{},"shippingData":{"address":{"addressId":"","addressType":"","city":"","complement":"","country":"","geoCoordinates":[],"neighborhood":"","number":"","postalCode":"","receiverName":"","reference":"","state":"","street":""},"logisticsInfo":[{"deliveryWindow":{"endDateUtc":"","listPrice":"","startDateUtc":""},"itemIndex":0,"lockTTL":"","price":0,"selectedSla":"","shippingEstimate":""}],"updateStatus":""}}'
};

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

NSDictionary *headers = @{ @"content-length": @"",
                           @"authorization": @"",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"",
                           @"accept": @"",
                           @"accept-enconding": @"",
                           @"x-vtex-operation-id": @"",
                           @"x-forwarded-proto": @"",
                           @"x-forwarded-for": @"",
                           @"x-vtex-cache-client-bypass": @"",
                           @"content-type": @"",
                           @"traceparent": @"" };
NSDictionary *parameters = @{ @"clientProfileData": @{ @"corporateDocument": @"", @"corporateName": @"", @"corporatePhone": @"", @"document": @"", @"documentType": @"", @"email": @"", @"firstName": @"", @"isCorporate": @NO, @"lastName": @"", @"phone": @"", @"stateInscription": @"", @"tradeName": @"" },
                              @"items": @[ @{ @"attachments": @[  ], @"bundleItems": @[ @{ @"id": @0, @"name": @"", @"price": @0, @"type": @"" } ], @"commission": @0, @"freightCommission": @0, @"id": @"", @"isGift": @NO, @"itemsAttachment": @[ @{ @"content": @"", @"name": @"" } ], @"measurementUnit": @"", @"price": @0, @"priceTags": @[ @{ @"identifier": @"", @"isPercentual": @NO, @"name": @"", @"rawValue": @0, @"value": @0 } ], @"quantity": @0, @"seller": @"", @"unitMultiplier": @0 } ],
                              @"marketingData": @{ @"utmCampaign": @"", @"utmMedium": @"", @"utmSource": @"", @"utmiCampaign": @"", @"utmiPage": @"", @"utmiPart": @"" },
                              @"marketplaceOrderId": @"",
                              @"marketplacePaymentValue": @0,
                              @"marketplaceServicesEndpoint": @"",
                              @"openTextField": @"",
                              @"paymentData": @{  },
                              @"shippingData": @{ @"address": @{ @"addressId": @"", @"addressType": @"", @"city": @"", @"complement": @"", @"country": @"", @"geoCoordinates": @[  ], @"neighborhood": @"", @"number": @"", @"postalCode": @"", @"receiverName": @"", @"reference": @"", @"state": @"", @"street": @"" }, @"logisticsInfo": @[ @{ @"deliveryWindow": @{ @"endDateUtc": @"", @"listPrice": @"", @"startDateUtc": @"" }, @"itemIndex": @0, @"lockTTL": @"", @"price": @0, @"selectedSla": @"", @"shippingEstimate": @"" } ], @"updateStatus": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:fulfillmentEndpoint/pvt/orders"]
                                                       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}}/:fulfillmentEndpoint/pvt/orders" in
let headers = Header.add_list (Header.init ()) [
  ("content-length", "");
  ("authorization", "");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
  ("accept", "");
  ("accept-enconding", "");
  ("x-vtex-operation-id", "");
  ("x-forwarded-proto", "");
  ("x-forwarded-for", "");
  ("x-vtex-cache-client-bypass", "");
  ("content-type", "");
  ("traceparent", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders",
  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([
    'clientProfileData' => [
        'corporateDocument' => '',
        'corporateName' => '',
        'corporatePhone' => '',
        'document' => '',
        'documentType' => '',
        'email' => '',
        'firstName' => '',
        'isCorporate' => null,
        'lastName' => '',
        'phone' => '',
        'stateInscription' => '',
        'tradeName' => ''
    ],
    'items' => [
        [
                'attachments' => [
                                
                ],
                'bundleItems' => [
                                [
                                                                'id' => 0,
                                                                'name' => '',
                                                                'price' => 0,
                                                                'type' => ''
                                ]
                ],
                'commission' => 0,
                'freightCommission' => 0,
                'id' => '',
                'isGift' => null,
                'itemsAttachment' => [
                                [
                                                                'content' => '',
                                                                'name' => ''
                                ]
                ],
                'measurementUnit' => '',
                'price' => 0,
                'priceTags' => [
                                [
                                                                'identifier' => '',
                                                                'isPercentual' => null,
                                                                'name' => '',
                                                                'rawValue' => 0,
                                                                'value' => 0
                                ]
                ],
                'quantity' => 0,
                'seller' => '',
                'unitMultiplier' => 0
        ]
    ],
    'marketingData' => [
        'utmCampaign' => '',
        'utmMedium' => '',
        'utmSource' => '',
        'utmiCampaign' => '',
        'utmiPage' => '',
        'utmiPart' => ''
    ],
    'marketplaceOrderId' => '',
    'marketplacePaymentValue' => 0,
    'marketplaceServicesEndpoint' => '',
    'openTextField' => '',
    'paymentData' => [
        
    ],
    'shippingData' => [
        'address' => [
                'addressId' => '',
                'addressType' => '',
                'city' => '',
                'complement' => '',
                'country' => '',
                'geoCoordinates' => [
                                
                ],
                'neighborhood' => '',
                'number' => '',
                'postalCode' => '',
                'receiverName' => '',
                'reference' => '',
                'state' => '',
                'street' => ''
        ],
        'logisticsInfo' => [
                [
                                'deliveryWindow' => [
                                                                'endDateUtc' => '',
                                                                'listPrice' => '',
                                                                'startDateUtc' => ''
                                ],
                                'itemIndex' => 0,
                                'lockTTL' => '',
                                'price' => 0,
                                'selectedSla' => '',
                                'shippingEstimate' => ''
                ]
        ],
        'updateStatus' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "accept-enconding: ",
    "authorization: ",
    "content-length: ",
    "content-type: ",
    "traceparent: ",
    "x-forwarded-for: ",
    "x-forwarded-proto: ",
    "x-vtex-api-appkey: ",
    "x-vtex-api-apptoken: ",
    "x-vtex-cache-client-bypass: ",
    "x-vtex-operation-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders', [
  'body' => '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemsAttachment": [
        {
          "content": "",
          "name": ""
        }
      ],
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "listPrice": "",
          "startDateUtc": ""
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}',
  'headers' => [
    'accept' => '',
    'accept-enconding' => '',
    'authorization' => '',
    'content-length' => '',
    'content-type' => '',
    'traceparent' => '',
    'x-forwarded-for' => '',
    'x-forwarded-proto' => '',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
    'x-vtex-cache-client-bypass' => '',
    'x-vtex-operation-id' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:fulfillmentEndpoint/pvt/orders');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-length' => '',
  'authorization' => '',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => '',
  'accept' => '',
  'accept-enconding' => '',
  'x-vtex-operation-id' => '',
  'x-forwarded-proto' => '',
  'x-forwarded-for' => '',
  'x-vtex-cache-client-bypass' => '',
  'content-type' => '',
  'traceparent' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'clientProfileData' => [
    'corporateDocument' => '',
    'corporateName' => '',
    'corporatePhone' => '',
    'document' => '',
    'documentType' => '',
    'email' => '',
    'firstName' => '',
    'isCorporate' => null,
    'lastName' => '',
    'phone' => '',
    'stateInscription' => '',
    'tradeName' => ''
  ],
  'items' => [
    [
        'attachments' => [
                
        ],
        'bundleItems' => [
                [
                                'id' => 0,
                                'name' => '',
                                'price' => 0,
                                'type' => ''
                ]
        ],
        'commission' => 0,
        'freightCommission' => 0,
        'id' => '',
        'isGift' => null,
        'itemsAttachment' => [
                [
                                'content' => '',
                                'name' => ''
                ]
        ],
        'measurementUnit' => '',
        'price' => 0,
        'priceTags' => [
                [
                                'identifier' => '',
                                'isPercentual' => null,
                                'name' => '',
                                'rawValue' => 0,
                                'value' => 0
                ]
        ],
        'quantity' => 0,
        'seller' => '',
        'unitMultiplier' => 0
    ]
  ],
  'marketingData' => [
    'utmCampaign' => '',
    'utmMedium' => '',
    'utmSource' => '',
    'utmiCampaign' => '',
    'utmiPage' => '',
    'utmiPart' => ''
  ],
  'marketplaceOrderId' => '',
  'marketplacePaymentValue' => 0,
  'marketplaceServicesEndpoint' => '',
  'openTextField' => '',
  'paymentData' => [
    
  ],
  'shippingData' => [
    'address' => [
        'addressId' => '',
        'addressType' => '',
        'city' => '',
        'complement' => '',
        'country' => '',
        'geoCoordinates' => [
                
        ],
        'neighborhood' => '',
        'number' => '',
        'postalCode' => '',
        'receiverName' => '',
        'reference' => '',
        'state' => '',
        'street' => ''
    ],
    'logisticsInfo' => [
        [
                'deliveryWindow' => [
                                'endDateUtc' => '',
                                'listPrice' => '',
                                'startDateUtc' => ''
                ],
                'itemIndex' => 0,
                'lockTTL' => '',
                'price' => 0,
                'selectedSla' => '',
                'shippingEstimate' => ''
        ]
    ],
    'updateStatus' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'clientProfileData' => [
    'corporateDocument' => '',
    'corporateName' => '',
    'corporatePhone' => '',
    'document' => '',
    'documentType' => '',
    'email' => '',
    'firstName' => '',
    'isCorporate' => null,
    'lastName' => '',
    'phone' => '',
    'stateInscription' => '',
    'tradeName' => ''
  ],
  'items' => [
    [
        'attachments' => [
                
        ],
        'bundleItems' => [
                [
                                'id' => 0,
                                'name' => '',
                                'price' => 0,
                                'type' => ''
                ]
        ],
        'commission' => 0,
        'freightCommission' => 0,
        'id' => '',
        'isGift' => null,
        'itemsAttachment' => [
                [
                                'content' => '',
                                'name' => ''
                ]
        ],
        'measurementUnit' => '',
        'price' => 0,
        'priceTags' => [
                [
                                'identifier' => '',
                                'isPercentual' => null,
                                'name' => '',
                                'rawValue' => 0,
                                'value' => 0
                ]
        ],
        'quantity' => 0,
        'seller' => '',
        'unitMultiplier' => 0
    ]
  ],
  'marketingData' => [
    'utmCampaign' => '',
    'utmMedium' => '',
    'utmSource' => '',
    'utmiCampaign' => '',
    'utmiPage' => '',
    'utmiPart' => ''
  ],
  'marketplaceOrderId' => '',
  'marketplacePaymentValue' => 0,
  'marketplaceServicesEndpoint' => '',
  'openTextField' => '',
  'paymentData' => [
    
  ],
  'shippingData' => [
    'address' => [
        'addressId' => '',
        'addressType' => '',
        'city' => '',
        'complement' => '',
        'country' => '',
        'geoCoordinates' => [
                
        ],
        'neighborhood' => '',
        'number' => '',
        'postalCode' => '',
        'receiverName' => '',
        'reference' => '',
        'state' => '',
        'street' => ''
    ],
    'logisticsInfo' => [
        [
                'deliveryWindow' => [
                                'endDateUtc' => '',
                                'listPrice' => '',
                                'startDateUtc' => ''
                ],
                'itemIndex' => 0,
                'lockTTL' => '',
                'price' => 0,
                'selectedSla' => '',
                'shippingEstimate' => ''
        ]
    ],
    'updateStatus' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:fulfillmentEndpoint/pvt/orders');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-length' => '',
  'authorization' => '',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => '',
  'accept' => '',
  'accept-enconding' => '',
  'x-vtex-operation-id' => '',
  'x-forwarded-proto' => '',
  'x-forwarded-for' => '',
  'x-vtex-cache-client-bypass' => '',
  'content-type' => '',
  'traceparent' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-length", "")
$headers.Add("authorization", "")
$headers.Add("x-vtex-api-appkey", "")
$headers.Add("x-vtex-api-apptoken", "")
$headers.Add("accept", "")
$headers.Add("accept-enconding", "")
$headers.Add("x-vtex-operation-id", "")
$headers.Add("x-forwarded-proto", "")
$headers.Add("x-forwarded-for", "")
$headers.Add("x-vtex-cache-client-bypass", "")
$headers.Add("content-type", "")
$headers.Add("traceparent", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders' -Method POST -Headers $headers -ContentType '' -Body '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemsAttachment": [
        {
          "content": "",
          "name": ""
        }
      ],
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "listPrice": "",
          "startDateUtc": ""
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}'
$headers=@{}
$headers.Add("content-length", "")
$headers.Add("authorization", "")
$headers.Add("x-vtex-api-appkey", "")
$headers.Add("x-vtex-api-apptoken", "")
$headers.Add("accept", "")
$headers.Add("accept-enconding", "")
$headers.Add("x-vtex-operation-id", "")
$headers.Add("x-forwarded-proto", "")
$headers.Add("x-forwarded-for", "")
$headers.Add("x-vtex-cache-client-bypass", "")
$headers.Add("content-type", "")
$headers.Add("traceparent", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:fulfillmentEndpoint/pvt/orders' -Method POST -Headers $headers -ContentType '' -Body '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemsAttachment": [
        {
          "content": "",
          "name": ""
        }
      ],
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "listPrice": "",
          "startDateUtc": ""
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}'
import http.client

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

payload = "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}"

headers = {
    'content-length': "",
    'authorization': "",
    'x-vtex-api-appkey': "",
    'x-vtex-api-apptoken': "",
    'accept': "",
    'accept-enconding': "",
    'x-vtex-operation-id': "",
    'x-forwarded-proto': "",
    'x-forwarded-for': "",
    'x-vtex-cache-client-bypass': "",
    'content-type': "",
    'traceparent': ""
}

conn.request("POST", "/baseUrl/:fulfillmentEndpoint/pvt/orders", payload, headers)

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

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

url = "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders"

payload = {
    "clientProfileData": {
        "corporateDocument": "",
        "corporateName": "",
        "corporatePhone": "",
        "document": "",
        "documentType": "",
        "email": "",
        "firstName": "",
        "isCorporate": False,
        "lastName": "",
        "phone": "",
        "stateInscription": "",
        "tradeName": ""
    },
    "items": [
        {
            "attachments": [],
            "bundleItems": [
                {
                    "id": 0,
                    "name": "",
                    "price": 0,
                    "type": ""
                }
            ],
            "commission": 0,
            "freightCommission": 0,
            "id": "",
            "isGift": False,
            "itemsAttachment": [
                {
                    "content": "",
                    "name": ""
                }
            ],
            "measurementUnit": "",
            "price": 0,
            "priceTags": [
                {
                    "identifier": "",
                    "isPercentual": False,
                    "name": "",
                    "rawValue": 0,
                    "value": 0
                }
            ],
            "quantity": 0,
            "seller": "",
            "unitMultiplier": 0
        }
    ],
    "marketingData": {
        "utmCampaign": "",
        "utmMedium": "",
        "utmSource": "",
        "utmiCampaign": "",
        "utmiPage": "",
        "utmiPart": ""
    },
    "marketplaceOrderId": "",
    "marketplacePaymentValue": 0,
    "marketplaceServicesEndpoint": "",
    "openTextField": "",
    "paymentData": {},
    "shippingData": {
        "address": {
            "addressId": "",
            "addressType": "",
            "city": "",
            "complement": "",
            "country": "",
            "geoCoordinates": [],
            "neighborhood": "",
            "number": "",
            "postalCode": "",
            "receiverName": "",
            "reference": "",
            "state": "",
            "street": ""
        },
        "logisticsInfo": [
            {
                "deliveryWindow": {
                    "endDateUtc": "",
                    "listPrice": "",
                    "startDateUtc": ""
                },
                "itemIndex": 0,
                "lockTTL": "",
                "price": 0,
                "selectedSla": "",
                "shippingEstimate": ""
            }
        ],
        "updateStatus": ""
    }
}
headers = {
    "content-length": "",
    "authorization": "",
    "x-vtex-api-appkey": "",
    "x-vtex-api-apptoken": "",
    "accept": "",
    "accept-enconding": "",
    "x-vtex-operation-id": "",
    "x-forwarded-proto": "",
    "x-forwarded-for": "",
    "x-vtex-cache-client-bypass": "",
    "content-type": "",
    "traceparent": ""
}

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

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

url <- "{{baseUrl}}/:fulfillmentEndpoint/pvt/orders"

payload <- "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('content-length' = '', 'authorization' = '', 'x-vtex-api-appkey' = '', 'x-vtex-api-apptoken' = '', 'accept-enconding' = '', 'x-vtex-operation-id' = '', 'x-forwarded-proto' = '', 'x-forwarded-for' = '', 'x-vtex-cache-client-bypass' = '', 'traceparent' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/:fulfillmentEndpoint/pvt/orders")

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

request = Net::HTTP::Post.new(url)
request["content-length"] = ''
request["authorization"] = ''
request["x-vtex-api-appkey"] = ''
request["x-vtex-api-apptoken"] = ''
request["accept"] = ''
request["accept-enconding"] = ''
request["x-vtex-operation-id"] = ''
request["x-forwarded-proto"] = ''
request["x-forwarded-for"] = ''
request["x-vtex-cache-client-bypass"] = ''
request["content-type"] = ''
request["traceparent"] = ''
request.body = "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}"

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

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

response = conn.post('/baseUrl/:fulfillmentEndpoint/pvt/orders') do |req|
  req.headers['content-length'] = ''
  req.headers['authorization'] = ''
  req.headers['x-vtex-api-appkey'] = ''
  req.headers['x-vtex-api-apptoken'] = ''
  req.headers['accept'] = ''
  req.headers['accept-enconding'] = ''
  req.headers['x-vtex-operation-id'] = ''
  req.headers['x-forwarded-proto'] = ''
  req.headers['x-forwarded-for'] = ''
  req.headers['x-vtex-cache-client-bypass'] = ''
  req.headers['traceparent'] = ''
  req.body = "{\n  \"clientProfileData\": {\n    \"corporateDocument\": \"\",\n    \"corporateName\": \"\",\n    \"corporatePhone\": \"\",\n    \"document\": \"\",\n    \"documentType\": \"\",\n    \"email\": \"\",\n    \"firstName\": \"\",\n    \"isCorporate\": false,\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"stateInscription\": \"\",\n    \"tradeName\": \"\"\n  },\n  \"items\": [\n    {\n      \"attachments\": [],\n      \"bundleItems\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"price\": 0,\n          \"type\": \"\"\n        }\n      ],\n      \"commission\": 0,\n      \"freightCommission\": 0,\n      \"id\": \"\",\n      \"isGift\": false,\n      \"itemsAttachment\": [\n        {\n          \"content\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"measurementUnit\": \"\",\n      \"price\": 0,\n      \"priceTags\": [\n        {\n          \"identifier\": \"\",\n          \"isPercentual\": false,\n          \"name\": \"\",\n          \"rawValue\": 0,\n          \"value\": 0\n        }\n      ],\n      \"quantity\": 0,\n      \"seller\": \"\",\n      \"unitMultiplier\": 0\n    }\n  ],\n  \"marketingData\": {\n    \"utmCampaign\": \"\",\n    \"utmMedium\": \"\",\n    \"utmSource\": \"\",\n    \"utmiCampaign\": \"\",\n    \"utmiPage\": \"\",\n    \"utmiPart\": \"\"\n  },\n  \"marketplaceOrderId\": \"\",\n  \"marketplacePaymentValue\": 0,\n  \"marketplaceServicesEndpoint\": \"\",\n  \"openTextField\": \"\",\n  \"paymentData\": {},\n  \"shippingData\": {\n    \"address\": {\n      \"addressId\": \"\",\n      \"addressType\": \"\",\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"geoCoordinates\": [],\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    },\n    \"logisticsInfo\": [\n      {\n        \"deliveryWindow\": {\n          \"endDateUtc\": \"\",\n          \"listPrice\": \"\",\n          \"startDateUtc\": \"\"\n        },\n        \"itemIndex\": 0,\n        \"lockTTL\": \"\",\n        \"price\": 0,\n        \"selectedSla\": \"\",\n        \"shippingEstimate\": \"\"\n      }\n    ],\n    \"updateStatus\": \"\"\n  }\n}"
end

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

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

    let payload = json!({
        "clientProfileData": json!({
            "corporateDocument": "",
            "corporateName": "",
            "corporatePhone": "",
            "document": "",
            "documentType": "",
            "email": "",
            "firstName": "",
            "isCorporate": false,
            "lastName": "",
            "phone": "",
            "stateInscription": "",
            "tradeName": ""
        }),
        "items": (
            json!({
                "attachments": (),
                "bundleItems": (
                    json!({
                        "id": 0,
                        "name": "",
                        "price": 0,
                        "type": ""
                    })
                ),
                "commission": 0,
                "freightCommission": 0,
                "id": "",
                "isGift": false,
                "itemsAttachment": (
                    json!({
                        "content": "",
                        "name": ""
                    })
                ),
                "measurementUnit": "",
                "price": 0,
                "priceTags": (
                    json!({
                        "identifier": "",
                        "isPercentual": false,
                        "name": "",
                        "rawValue": 0,
                        "value": 0
                    })
                ),
                "quantity": 0,
                "seller": "",
                "unitMultiplier": 0
            })
        ),
        "marketingData": json!({
            "utmCampaign": "",
            "utmMedium": "",
            "utmSource": "",
            "utmiCampaign": "",
            "utmiPage": "",
            "utmiPart": ""
        }),
        "marketplaceOrderId": "",
        "marketplacePaymentValue": 0,
        "marketplaceServicesEndpoint": "",
        "openTextField": "",
        "paymentData": json!({}),
        "shippingData": json!({
            "address": json!({
                "addressId": "",
                "addressType": "",
                "city": "",
                "complement": "",
                "country": "",
                "geoCoordinates": (),
                "neighborhood": "",
                "number": "",
                "postalCode": "",
                "receiverName": "",
                "reference": "",
                "state": "",
                "street": ""
            }),
            "logisticsInfo": (
                json!({
                    "deliveryWindow": json!({
                        "endDateUtc": "",
                        "listPrice": "",
                        "startDateUtc": ""
                    }),
                    "itemIndex": 0,
                    "lockTTL": "",
                    "price": 0,
                    "selectedSla": "",
                    "shippingEstimate": ""
                })
            ),
            "updateStatus": ""
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-length", "".parse().unwrap());
    headers.insert("authorization", "".parse().unwrap());
    headers.insert("x-vtex-api-appkey", "".parse().unwrap());
    headers.insert("x-vtex-api-apptoken", "".parse().unwrap());
    headers.insert("accept", "".parse().unwrap());
    headers.insert("accept-enconding", "".parse().unwrap());
    headers.insert("x-vtex-operation-id", "".parse().unwrap());
    headers.insert("x-forwarded-proto", "".parse().unwrap());
    headers.insert("x-forwarded-for", "".parse().unwrap());
    headers.insert("x-vtex-cache-client-bypass", "".parse().unwrap());
    headers.insert("content-type", "".parse().unwrap());
    headers.insert("traceparent", "".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}}/:fulfillmentEndpoint/pvt/orders \
  --header 'accept: ' \
  --header 'accept-enconding: ' \
  --header 'authorization: ' \
  --header 'content-length: ' \
  --header 'content-type: ' \
  --header 'traceparent: ' \
  --header 'x-forwarded-for: ' \
  --header 'x-forwarded-proto: ' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: ' \
  --header 'x-vtex-cache-client-bypass: ' \
  --header 'x-vtex-operation-id: ' \
  --data '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemsAttachment": [
        {
          "content": "",
          "name": ""
        }
      ],
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "listPrice": "",
          "startDateUtc": ""
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}'
echo '{
  "clientProfileData": {
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  },
  "items": [
    {
      "attachments": [],
      "bundleItems": [
        {
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        }
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemsAttachment": [
        {
          "content": "",
          "name": ""
        }
      ],
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        {
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        }
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  },
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": {},
  "shippingData": {
    "address": {
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    },
    "logisticsInfo": [
      {
        "deliveryWindow": {
          "endDateUtc": "",
          "listPrice": "",
          "startDateUtc": ""
        },
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      }
    ],
    "updateStatus": ""
  }
}' |  \
  http POST {{baseUrl}}/:fulfillmentEndpoint/pvt/orders \
  accept:'' \
  accept-enconding:'' \
  authorization:'' \
  content-length:'' \
  content-type:'' \
  traceparent:'' \
  x-forwarded-for:'' \
  x-forwarded-proto:'' \
  x-vtex-api-appkey:'' \
  x-vtex-api-apptoken:'' \
  x-vtex-cache-client-bypass:'' \
  x-vtex-operation-id:''
wget --quiet \
  --method POST \
  --header 'content-length: ' \
  --header 'authorization: ' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: ' \
  --header 'accept: ' \
  --header 'accept-enconding: ' \
  --header 'x-vtex-operation-id: ' \
  --header 'x-forwarded-proto: ' \
  --header 'x-forwarded-for: ' \
  --header 'x-vtex-cache-client-bypass: ' \
  --header 'content-type: ' \
  --header 'traceparent: ' \
  --body-data '{\n  "clientProfileData": {\n    "corporateDocument": "",\n    "corporateName": "",\n    "corporatePhone": "",\n    "document": "",\n    "documentType": "",\n    "email": "",\n    "firstName": "",\n    "isCorporate": false,\n    "lastName": "",\n    "phone": "",\n    "stateInscription": "",\n    "tradeName": ""\n  },\n  "items": [\n    {\n      "attachments": [],\n      "bundleItems": [\n        {\n          "id": 0,\n          "name": "",\n          "price": 0,\n          "type": ""\n        }\n      ],\n      "commission": 0,\n      "freightCommission": 0,\n      "id": "",\n      "isGift": false,\n      "itemsAttachment": [\n        {\n          "content": "",\n          "name": ""\n        }\n      ],\n      "measurementUnit": "",\n      "price": 0,\n      "priceTags": [\n        {\n          "identifier": "",\n          "isPercentual": false,\n          "name": "",\n          "rawValue": 0,\n          "value": 0\n        }\n      ],\n      "quantity": 0,\n      "seller": "",\n      "unitMultiplier": 0\n    }\n  ],\n  "marketingData": {\n    "utmCampaign": "",\n    "utmMedium": "",\n    "utmSource": "",\n    "utmiCampaign": "",\n    "utmiPage": "",\n    "utmiPart": ""\n  },\n  "marketplaceOrderId": "",\n  "marketplacePaymentValue": 0,\n  "marketplaceServicesEndpoint": "",\n  "openTextField": "",\n  "paymentData": {},\n  "shippingData": {\n    "address": {\n      "addressId": "",\n      "addressType": "",\n      "city": "",\n      "complement": "",\n      "country": "",\n      "geoCoordinates": [],\n      "neighborhood": "",\n      "number": "",\n      "postalCode": "",\n      "receiverName": "",\n      "reference": "",\n      "state": "",\n      "street": ""\n    },\n    "logisticsInfo": [\n      {\n        "deliveryWindow": {\n          "endDateUtc": "",\n          "listPrice": "",\n          "startDateUtc": ""\n        },\n        "itemIndex": 0,\n        "lockTTL": "",\n        "price": 0,\n        "selectedSla": "",\n        "shippingEstimate": ""\n      }\n    ],\n    "updateStatus": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/:fulfillmentEndpoint/pvt/orders
import Foundation

let headers = [
  "content-length": "",
  "authorization": "",
  "x-vtex-api-appkey": "",
  "x-vtex-api-apptoken": "",
  "accept": "",
  "accept-enconding": "",
  "x-vtex-operation-id": "",
  "x-forwarded-proto": "",
  "x-forwarded-for": "",
  "x-vtex-cache-client-bypass": "",
  "content-type": "",
  "traceparent": ""
]
let parameters = [
  "clientProfileData": [
    "corporateDocument": "",
    "corporateName": "",
    "corporatePhone": "",
    "document": "",
    "documentType": "",
    "email": "",
    "firstName": "",
    "isCorporate": false,
    "lastName": "",
    "phone": "",
    "stateInscription": "",
    "tradeName": ""
  ],
  "items": [
    [
      "attachments": [],
      "bundleItems": [
        [
          "id": 0,
          "name": "",
          "price": 0,
          "type": ""
        ]
      ],
      "commission": 0,
      "freightCommission": 0,
      "id": "",
      "isGift": false,
      "itemsAttachment": [
        [
          "content": "",
          "name": ""
        ]
      ],
      "measurementUnit": "",
      "price": 0,
      "priceTags": [
        [
          "identifier": "",
          "isPercentual": false,
          "name": "",
          "rawValue": 0,
          "value": 0
        ]
      ],
      "quantity": 0,
      "seller": "",
      "unitMultiplier": 0
    ]
  ],
  "marketingData": [
    "utmCampaign": "",
    "utmMedium": "",
    "utmSource": "",
    "utmiCampaign": "",
    "utmiPage": "",
    "utmiPart": ""
  ],
  "marketplaceOrderId": "",
  "marketplacePaymentValue": 0,
  "marketplaceServicesEndpoint": "",
  "openTextField": "",
  "paymentData": [],
  "shippingData": [
    "address": [
      "addressId": "",
      "addressType": "",
      "city": "",
      "complement": "",
      "country": "",
      "geoCoordinates": [],
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    ],
    "logisticsInfo": [
      [
        "deliveryWindow": [
          "endDateUtc": "",
          "listPrice": "",
          "startDateUtc": ""
        ],
        "itemIndex": 0,
        "lockTTL": "",
        "price": 0,
        "selectedSla": "",
        "shippingEstimate": ""
      ]
    ],
    "updateStatus": ""
  ]
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "clientProfileData": {
    "corporateDocument": null,
    "corporateName": null,
    "corporatePhone": null,
    "document": "3244239851",
    "documentType": null,
    "email": "32172239852@gmail.com.br",
    "firstName": "John",
    "isCorporate": false,
    "lastName": "Smith",
    "phone": "399271258",
    "stateInscription": null,
    "tradeName": null,
    "userProfileId": null
  },
  "items": [
    {
      "Seller": "1",
      "attachments": [],
      "bundleItems": [],
      "commission": 0,
      "freightCommission": 0,
      "id": "2002495",
      "isGift": false,
      "itemAttachment": {
        "content": {},
        "name": null
      },
      "measurementUnit": null,
      "price": 9990,
      "priceTags": [],
      "quantity": 1,
      "unitMultiplier": 0
    }
  ],
  "marketingData": {
    "utmCampaign": "freeshipping",
    "utmMedium": "",
    "utmSource": "buscape",
    "utmiCampaign": "artscase for iphone 5",
    "utmiPage": "_",
    "utmiPart": "BuscaFullText"
  },
  "marketplaceOrderId": "959311095",
  "marketplacePaymentValue": 11080,
  "marketplaceServicesEndpoint": "https://marketplaceservicesendpoint/",
  "openTextField": null,
  "paymentData": null,
  "shippingData": {
    "address": {
      "addressId": "Home",
      "addressType": "Residencial",
      "city": "Americana",
      "complement": null,
      "country": "BRA",
      "geoCoordinates": [],
      "neighborhood": "SÃO JOSÉ",
      "number": "311",
      "postalCode": "13476103",
      "receiverName": "John Smith",
      "reference": "Bairro Praia Azul / Posto de Saúde 17",
      "state": "SP",
      "street": "JOÃO DAMÁZIO GOMES"
    },
    "logisticsInfo": [
      {
        "deliveryWindow": null,
        "itemIndex": 0,
        "lockTTL": "8d",
        "price": 1090,
        "selectedSla": "Regular",
        "shippingEstimate": "7d"
      }
    ],
    "updateStatus": "updated"
  }
}
POST Send invoice
{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice
HEADERS

Accept
Content-Type
QUERY PARAMS

marketplaceServicesEndpoint
marketplaceOrderId
BODY json

{
  "courier": "",
  "invoiceNumber": "",
  "invoiceValue": 0,
  "issuanceDate": "",
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}");

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

(client/post "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice" {:headers {:accept ""}
                                                                                                                :content-type :json
                                                                                                                :form-params {:courier ""
                                                                                                                              :invoiceNumber ""
                                                                                                                              :invoiceValue 0
                                                                                                                              :issuanceDate ""
                                                                                                                              :items [{:id ""
                                                                                                                                       :price 0
                                                                                                                                       :quantity 0}]
                                                                                                                              :trackingNumber ""
                                                                                                                              :trackingUrl ""
                                                                                                                              :type ""}})
require "http/client"

url = "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
reqBody = "{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice"

	payload := strings.NewReader("{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
POST /baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 228

{
  "courier": "",
  "invoiceNumber": "",
  "invoiceValue": 0,
  "issuanceDate": "",
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice"))
    .header("accept", "")
    .header("content-type", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice")
  .header("accept", "")
  .header("content-type", "")
  .body("{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  courier: '',
  invoiceNumber: '',
  invoiceValue: 0,
  issuanceDate: '',
  items: [
    {
      id: '',
      price: 0,
      quantity: 0
    }
  ],
  trackingNumber: '',
  trackingUrl: '',
  type: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice',
  headers: {accept: '', 'content-type': ''},
  data: {
    courier: '',
    invoiceNumber: '',
    invoiceValue: 0,
    issuanceDate: '',
    items: [{id: '', price: 0, quantity: 0}],
    trackingNumber: '',
    trackingUrl: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"courier":"","invoiceNumber":"","invoiceValue":0,"issuanceDate":"","items":[{"id":"","price":0,"quantity":0}],"trackingNumber":"","trackingUrl":"","type":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': ''
  },
  processData: false,
  data: '{\n  "courier": "",\n  "invoiceNumber": "",\n  "invoiceValue": 0,\n  "issuanceDate": "",\n  "items": [\n    {\n      "id": "",\n      "price": 0,\n      "quantity": 0\n    }\n  ],\n  "trackingNumber": "",\n  "trackingUrl": "",\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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({
  courier: '',
  invoiceNumber: '',
  invoiceValue: 0,
  issuanceDate: '',
  items: [{id: '', price: 0, quantity: 0}],
  trackingNumber: '',
  trackingUrl: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice',
  headers: {accept: '', 'content-type': ''},
  body: {
    courier: '',
    invoiceNumber: '',
    invoiceValue: 0,
    issuanceDate: '',
    items: [{id: '', price: 0, quantity: 0}],
    trackingNumber: '',
    trackingUrl: '',
    type: ''
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice');

req.headers({
  accept: '',
  'content-type': ''
});

req.type('json');
req.send({
  courier: '',
  invoiceNumber: '',
  invoiceValue: 0,
  issuanceDate: '',
  items: [
    {
      id: '',
      price: 0,
      quantity: 0
    }
  ],
  trackingNumber: '',
  trackingUrl: '',
  type: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice',
  headers: {accept: '', 'content-type': ''},
  data: {
    courier: '',
    invoiceNumber: '',
    invoiceValue: 0,
    issuanceDate: '',
    items: [{id: '', price: 0, quantity: 0}],
    trackingNumber: '',
    trackingUrl: '',
    type: ''
  }
};

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

const url = '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"courier":"","invoiceNumber":"","invoiceValue":0,"issuanceDate":"","items":[{"id":"","price":0,"quantity":0}],"trackingNumber":"","trackingUrl":"","type":""}'
};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"courier": @"",
                              @"invoiceNumber": @"",
                              @"invoiceValue": @0,
                              @"issuanceDate": @"",
                              @"items": @[ @{ @"id": @"", @"price": @0, @"quantity": @0 } ],
                              @"trackingNumber": @"",
                              @"trackingUrl": @"",
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice"]
                                                       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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice",
  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([
    'courier' => '',
    'invoiceNumber' => '',
    'invoiceValue' => 0,
    'issuanceDate' => '',
    'items' => [
        [
                'id' => '',
                'price' => 0,
                'quantity' => 0
        ]
    ],
    'trackingNumber' => '',
    'trackingUrl' => '',
    'type' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice', [
  'body' => '{
  "courier": "",
  "invoiceNumber": "",
  "invoiceValue": 0,
  "issuanceDate": "",
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'courier' => '',
  'invoiceNumber' => '',
  'invoiceValue' => 0,
  'issuanceDate' => '',
  'items' => [
    [
        'id' => '',
        'price' => 0,
        'quantity' => 0
    ]
  ],
  'trackingNumber' => '',
  'trackingUrl' => '',
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'courier' => '',
  'invoiceNumber' => '',
  'invoiceValue' => 0,
  'issuanceDate' => '',
  'items' => [
    [
        'id' => '',
        'price' => 0,
        'quantity' => 0
    ]
  ],
  'trackingNumber' => '',
  'trackingUrl' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice' -Method POST -Headers $headers -ContentType '' -Body '{
  "courier": "",
  "invoiceNumber": "",
  "invoiceValue": 0,
  "issuanceDate": "",
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": ""
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice' -Method POST -Headers $headers -ContentType '' -Body '{
  "courier": "",
  "invoiceNumber": "",
  "invoiceValue": 0,
  "issuanceDate": "",
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": ""
}'
import http.client

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

payload = "{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}"

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("POST", "/baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice", payload, headers)

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

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

url = "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice"

payload = {
    "courier": "",
    "invoiceNumber": "",
    "invoiceValue": 0,
    "issuanceDate": "",
    "items": [
        {
            "id": "",
            "price": 0,
            "quantity": 0
        }
    ],
    "trackingNumber": "",
    "trackingUrl": "",
    "type": ""
}
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice"

payload <- "{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}"

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

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

response = conn.post('/baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"courier\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceValue\": 0,\n  \"issuanceDate\": \"\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice";

    let payload = json!({
        "courier": "",
        "invoiceNumber": "",
        "invoiceValue": 0,
        "issuanceDate": "",
        "items": (
            json!({
                "id": "",
                "price": 0,
                "quantity": 0
            })
        ),
        "trackingNumber": "",
        "trackingUrl": "",
        "type": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "courier": "",
  "invoiceNumber": "",
  "invoiceValue": 0,
  "issuanceDate": "",
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": ""
}'
echo '{
  "courier": "",
  "invoiceNumber": "",
  "invoiceValue": 0,
  "issuanceDate": "",
  "items": [
    {
      "id": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": ""
}' |  \
  http POST {{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "courier": "",\n  "invoiceNumber": "",\n  "invoiceValue": 0,\n  "issuanceDate": "",\n  "items": [\n    {\n      "id": "",\n      "price": 0,\n      "quantity": 0\n    }\n  ],\n  "trackingNumber": "",\n  "trackingUrl": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = [
  "courier": "",
  "invoiceNumber": "",
  "invoiceValue": 0,
  "issuanceDate": "",
  "items": [
    [
      "id": "",
      "price": 0,
      "quantity": 0
    ]
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "date": "2021-06-09T15:22:56.7612218-02:00",
  "orderId": "1138342255777-01",
  "receipt": "527b1ae251264ef1b7a9b597cd8f16b9"
}
POST Send tracking information
{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber
HEADERS

Accept
Content-Type
QUERY PARAMS

marketplaceServicesEndpoint
marketplaceOrderId
invoiceNumber
BODY json

{
  "courier": "",
  "dispatchedDate": "",
  "trackingNumber": "",
  "trackingUrl": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\n}");

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

(client/post "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber" {:headers {:accept ""}
                                                                                                                               :content-type :json
                                                                                                                               :form-params {:courier ""
                                                                                                                                             :dispatchedDate ""
                                                                                                                                             :trackingNumber ""
                                                                                                                                             :trackingUrl ""}})
require "http/client"

url = "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
reqBody = "{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber"

	payload := strings.NewReader("{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
POST /baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 88

{
  "courier": "",
  "dispatchedDate": "",
  "trackingNumber": "",
  "trackingUrl": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber"))
    .header("accept", "")
    .header("content-type", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\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  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber")
  .header("accept", "")
  .header("content-type", "")
  .body("{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  courier: '',
  dispatchedDate: '',
  trackingNumber: '',
  trackingUrl: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber',
  headers: {accept: '', 'content-type': ''},
  data: {courier: '', dispatchedDate: '', trackingNumber: '', trackingUrl: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"courier":"","dispatchedDate":"","trackingNumber":"","trackingUrl":""}'
};

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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': ''
  },
  processData: false,
  data: '{\n  "courier": "",\n  "dispatchedDate": "",\n  "trackingNumber": "",\n  "trackingUrl": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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({courier: '', dispatchedDate: '', trackingNumber: '', trackingUrl: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber',
  headers: {accept: '', 'content-type': ''},
  body: {courier: '', dispatchedDate: '', trackingNumber: '', trackingUrl: ''},
  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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber');

req.headers({
  accept: '',
  'content-type': ''
});

req.type('json');
req.send({
  courier: '',
  dispatchedDate: '',
  trackingNumber: '',
  trackingUrl: ''
});

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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber',
  headers: {accept: '', 'content-type': ''},
  data: {courier: '', dispatchedDate: '', trackingNumber: '', trackingUrl: ''}
};

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

const url = '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"courier":"","dispatchedDate":"","trackingNumber":"","trackingUrl":""}'
};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"courier": @"",
                              @"dispatchedDate": @"",
                              @"trackingNumber": @"",
                              @"trackingUrl": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber"]
                                                       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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber",
  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([
    'courier' => '',
    'dispatchedDate' => '',
    'trackingNumber' => '',
    'trackingUrl' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber', [
  'body' => '{
  "courier": "",
  "dispatchedDate": "",
  "trackingNumber": "",
  "trackingUrl": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'courier' => '',
  'dispatchedDate' => '',
  'trackingNumber' => '',
  'trackingUrl' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'courier' => '',
  'dispatchedDate' => '',
  'trackingNumber' => '',
  'trackingUrl' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber' -Method POST -Headers $headers -ContentType '' -Body '{
  "courier": "",
  "dispatchedDate": "",
  "trackingNumber": "",
  "trackingUrl": ""
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber' -Method POST -Headers $headers -ContentType '' -Body '{
  "courier": "",
  "dispatchedDate": "",
  "trackingNumber": "",
  "trackingUrl": ""
}'
import http.client

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

payload = "{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\n}"

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("POST", "/baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber", payload, headers)

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

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

url = "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber"

payload = {
    "courier": "",
    "dispatchedDate": "",
    "trackingNumber": "",
    "trackingUrl": ""
}
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber"

payload <- "{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\n}"

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

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

response = conn.post('/baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"courier\": \"\",\n  \"dispatchedDate\": \"\",\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber";

    let payload = json!({
        "courier": "",
        "dispatchedDate": "",
        "trackingNumber": "",
        "trackingUrl": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "courier": "",
  "dispatchedDate": "",
  "trackingNumber": "",
  "trackingUrl": ""
}'
echo '{
  "courier": "",
  "dispatchedDate": "",
  "trackingNumber": "",
  "trackingUrl": ""
}' |  \
  http POST {{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "courier": "",\n  "dispatchedDate": "",\n  "trackingNumber": "",\n  "trackingUrl": ""\n}' \
  --output-document \
  - {{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = [
  "courier": "",
  "dispatchedDate": "",
  "trackingNumber": "",
  "trackingUrl": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "date": "2021-06-09T15:22:56.7612218-02:00",
  "orderId": "1138342255777-01",
  "receipt": "527b1ae251264ef1b7a9b597cd8f16b9"
}
POST Update tracking status
{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking
HEADERS

Accept
Content-Type
QUERY PARAMS

marketplaceServicesEndpoint
marketplaceOrderId
invoiceNumber
BODY json

{
  "events": [
    {
      "city": "",
      "date": "",
      "description": "",
      "state": ""
    }
  ],
  "isDelivered": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}");

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

(client/post "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking" {:headers {:accept ""}
                                                                                                                                        :content-type :json
                                                                                                                                        :form-params {:events [{:city ""
                                                                                                                                                                :date ""
                                                                                                                                                                :description ""
                                                                                                                                                                :state ""}]
                                                                                                                                                      :isDelivered false}})
require "http/client"

url = "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
reqBody = "{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking"

	payload := strings.NewReader("{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
POST /baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 136

{
  "events": [
    {
      "city": "",
      "date": "",
      "description": "",
      "state": ""
    }
  ],
  "isDelivered": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking"))
    .header("accept", "")
    .header("content-type", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking")
  .header("accept", "")
  .header("content-type", "")
  .body("{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}")
  .asString();
const data = JSON.stringify({
  events: [
    {
      city: '',
      date: '',
      description: '',
      state: ''
    }
  ],
  isDelivered: 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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking',
  headers: {accept: '', 'content-type': ''},
  data: {events: [{city: '', date: '', description: '', state: ''}], isDelivered: false}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"events":[{"city":"","date":"","description":"","state":""}],"isDelivered":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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': ''
  },
  processData: false,
  data: '{\n  "events": [\n    {\n      "city": "",\n      "date": "",\n      "description": "",\n      "state": ""\n    }\n  ],\n  "isDelivered": false\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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({events: [{city: '', date: '', description: '', state: ''}], isDelivered: false}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking',
  headers: {accept: '', 'content-type': ''},
  body: {events: [{city: '', date: '', description: '', state: ''}], isDelivered: 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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking');

req.headers({
  accept: '',
  'content-type': ''
});

req.type('json');
req.send({
  events: [
    {
      city: '',
      date: '',
      description: '',
      state: ''
    }
  ],
  isDelivered: 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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking',
  headers: {accept: '', 'content-type': ''},
  data: {events: [{city: '', date: '', description: '', state: ''}], isDelivered: false}
};

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

const url = '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"events":[{"city":"","date":"","description":"","state":""}],"isDelivered":false}'
};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"events": @[ @{ @"city": @"", @"date": @"", @"description": @"", @"state": @"" } ],
                              @"isDelivered": @NO };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking"]
                                                       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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking",
  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([
    'events' => [
        [
                'city' => '',
                'date' => '',
                'description' => '',
                'state' => ''
        ]
    ],
    'isDelivered' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking', [
  'body' => '{
  "events": [
    {
      "city": "",
      "date": "",
      "description": "",
      "state": ""
    }
  ],
  "isDelivered": false
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'events' => [
    [
        'city' => '',
        'date' => '',
        'description' => '',
        'state' => ''
    ]
  ],
  'isDelivered' => null
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'events' => [
    [
        'city' => '',
        'date' => '',
        'description' => '',
        'state' => ''
    ]
  ],
  'isDelivered' => null
]));
$request->setRequestUrl('{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking' -Method POST -Headers $headers -ContentType '' -Body '{
  "events": [
    {
      "city": "",
      "date": "",
      "description": "",
      "state": ""
    }
  ],
  "isDelivered": false
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking' -Method POST -Headers $headers -ContentType '' -Body '{
  "events": [
    {
      "city": "",
      "date": "",
      "description": "",
      "state": ""
    }
  ],
  "isDelivered": false
}'
import http.client

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

payload = "{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}"

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("POST", "/baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking", payload, headers)

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

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

url = "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking"

payload = {
    "events": [
        {
            "city": "",
            "date": "",
            "description": "",
            "state": ""
        }
    ],
    "isDelivered": False
}
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking"

payload <- "{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}"

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

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

response = conn.post('/baseUrl/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"events\": [\n    {\n      \"city\": \"\",\n      \"date\": \"\",\n      \"description\": \"\",\n      \"state\": \"\"\n    }\n  ],\n  \"isDelivered\": false\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking";

    let payload = json!({
        "events": (
            json!({
                "city": "",
                "date": "",
                "description": "",
                "state": ""
            })
        ),
        "isDelivered": false
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "events": [
    {
      "city": "",
      "date": "",
      "description": "",
      "state": ""
    }
  ],
  "isDelivered": false
}'
echo '{
  "events": [
    {
      "city": "",
      "date": "",
      "description": "",
      "state": ""
    }
  ],
  "isDelivered": false
}' |  \
  http POST {{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "events": [\n    {\n      "city": "",\n      "date": "",\n      "description": "",\n      "state": ""\n    }\n  ],\n  "isDelivered": false\n}' \
  --output-document \
  - {{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = [
  "events": [
    [
      "city": "",
      "date": "",
      "description": "",
      "state": ""
    ]
  ],
  "isDelivered": false
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:marketplaceServicesEndpoint/pvt/orders/:marketplaceOrderId/invoice/:invoiceNumber/tracking")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "date": "2021-06-09T15:22:56.7612218-02:00",
  "orderId": "1138342255777-01",
  "receipt": "527b1ae251264ef1b7a9b597cd8f16b9"
}