POST Order invoice notification
{{baseUrl}}/api/orders/pvt/document/:orderId/invoices
HEADERS

Content-Type
Accept
QUERY PARAMS

orderId
BODY json

{
  "cfop": "",
  "courier": "",
  "extraValue": 0,
  "invoiceKey": "",
  "invoiceNumber": "",
  "invoiceUrl": "",
  "invoiceValue": "",
  "issuedDate": "",
  "items": [
    {
      "itemIndex": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": "",
  "volumes": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/orders/pvt/document/:orderId/invoices");

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  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}");

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

(client/post "{{baseUrl}}/api/orders/pvt/document/:orderId/invoices" {:headers {:accept ""}
                                                                                      :content-type :json
                                                                                      :form-params {:cfop ""
                                                                                                    :courier ""
                                                                                                    :extraValue 0
                                                                                                    :invoiceKey ""
                                                                                                    :invoiceNumber ""
                                                                                                    :invoiceUrl ""
                                                                                                    :invoiceValue ""
                                                                                                    :issuedDate ""
                                                                                                    :items [{:itemIndex ""
                                                                                                             :price 0
                                                                                                             :quantity 0}]
                                                                                                    :trackingNumber ""
                                                                                                    :trackingUrl ""
                                                                                                    :type ""
                                                                                                    :volumes 0}})
require "http/client"

url = "{{baseUrl}}/api/orders/pvt/document/:orderId/invoices"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}
reqBody = "{\n  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/orders/pvt/document/:orderId/invoices"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/orders/pvt/document/:orderId/invoices");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
request.AddParameter("", "{\n  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/orders/pvt/document/:orderId/invoices"

	payload := strings.NewReader("{\n  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\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/orders/pvt/document/:orderId/invoices HTTP/1.1
Content-Type: 
Accept: 
Host: example.com
Content-Length: 323

{
  "cfop": "",
  "courier": "",
  "extraValue": 0,
  "invoiceKey": "",
  "invoiceNumber": "",
  "invoiceUrl": "",
  "invoiceValue": "",
  "issuedDate": "",
  "items": [
    {
      "itemIndex": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": "",
  "volumes": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/orders/pvt/document/:orderId/invoices")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .setBody("{\n  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/orders/pvt/document/:orderId/invoices"))
    .header("content-type", "")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/orders/pvt/document/:orderId/invoices")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/orders/pvt/document/:orderId/invoices")
  .header("content-type", "")
  .header("accept", "")
  .body("{\n  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}")
  .asString();
const data = JSON.stringify({
  cfop: '',
  courier: '',
  extraValue: 0,
  invoiceKey: '',
  invoiceNumber: '',
  invoiceUrl: '',
  invoiceValue: '',
  issuedDate: '',
  items: [
    {
      itemIndex: '',
      price: 0,
      quantity: 0
    }
  ],
  trackingNumber: '',
  trackingUrl: '',
  type: '',
  volumes: 0
});

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

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

xhr.open('POST', '{{baseUrl}}/api/orders/pvt/document/:orderId/invoices');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/orders/pvt/document/:orderId/invoices',
  headers: {'content-type': '', accept: ''},
  data: {
    cfop: '',
    courier: '',
    extraValue: 0,
    invoiceKey: '',
    invoiceNumber: '',
    invoiceUrl: '',
    invoiceValue: '',
    issuedDate: '',
    items: [{itemIndex: '', price: 0, quantity: 0}],
    trackingNumber: '',
    trackingUrl: '',
    type: '',
    volumes: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/orders/pvt/document/:orderId/invoices';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"cfop":"","courier":"","extraValue":0,"invoiceKey":"","invoiceNumber":"","invoiceUrl":"","invoiceValue":"","issuedDate":"","items":[{"itemIndex":"","price":0,"quantity":0}],"trackingNumber":"","trackingUrl":"","type":"","volumes":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/orders/pvt/document/:orderId/invoices',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  },
  processData: false,
  data: '{\n  "cfop": "",\n  "courier": "",\n  "extraValue": 0,\n  "invoiceKey": "",\n  "invoiceNumber": "",\n  "invoiceUrl": "",\n  "invoiceValue": "",\n  "issuedDate": "",\n  "items": [\n    {\n      "itemIndex": "",\n      "price": 0,\n      "quantity": 0\n    }\n  ],\n  "trackingNumber": "",\n  "trackingUrl": "",\n  "type": "",\n  "volumes": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/orders/pvt/document/:orderId/invoices")
  .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/orders/pvt/document/:orderId/invoices',
  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({
  cfop: '',
  courier: '',
  extraValue: 0,
  invoiceKey: '',
  invoiceNumber: '',
  invoiceUrl: '',
  invoiceValue: '',
  issuedDate: '',
  items: [{itemIndex: '', price: 0, quantity: 0}],
  trackingNumber: '',
  trackingUrl: '',
  type: '',
  volumes: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/orders/pvt/document/:orderId/invoices',
  headers: {'content-type': '', accept: ''},
  body: {
    cfop: '',
    courier: '',
    extraValue: 0,
    invoiceKey: '',
    invoiceNumber: '',
    invoiceUrl: '',
    invoiceValue: '',
    issuedDate: '',
    items: [{itemIndex: '', price: 0, quantity: 0}],
    trackingNumber: '',
    trackingUrl: '',
    type: '',
    volumes: 0
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/api/orders/pvt/document/:orderId/invoices');

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

req.type('json');
req.send({
  cfop: '',
  courier: '',
  extraValue: 0,
  invoiceKey: '',
  invoiceNumber: '',
  invoiceUrl: '',
  invoiceValue: '',
  issuedDate: '',
  items: [
    {
      itemIndex: '',
      price: 0,
      quantity: 0
    }
  ],
  trackingNumber: '',
  trackingUrl: '',
  type: '',
  volumes: 0
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/orders/pvt/document/:orderId/invoices',
  headers: {'content-type': '', accept: ''},
  data: {
    cfop: '',
    courier: '',
    extraValue: 0,
    invoiceKey: '',
    invoiceNumber: '',
    invoiceUrl: '',
    invoiceValue: '',
    issuedDate: '',
    items: [{itemIndex: '', price: 0, quantity: 0}],
    trackingNumber: '',
    trackingUrl: '',
    type: '',
    volumes: 0
  }
};

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

const url = '{{baseUrl}}/api/orders/pvt/document/:orderId/invoices';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"cfop":"","courier":"","extraValue":0,"invoiceKey":"","invoiceNumber":"","invoiceUrl":"","invoiceValue":"","issuedDate":"","items":[{"itemIndex":"","price":0,"quantity":0}],"trackingNumber":"","trackingUrl":"","type":"","volumes":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"cfop": @"",
                              @"courier": @"",
                              @"extraValue": @0,
                              @"invoiceKey": @"",
                              @"invoiceNumber": @"",
                              @"invoiceUrl": @"",
                              @"invoiceValue": @"",
                              @"issuedDate": @"",
                              @"items": @[ @{ @"itemIndex": @"", @"price": @0, @"quantity": @0 } ],
                              @"trackingNumber": @"",
                              @"trackingUrl": @"",
                              @"type": @"",
                              @"volumes": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/orders/pvt/document/:orderId/invoices"]
                                                       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/orders/pvt/document/:orderId/invoices" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/orders/pvt/document/:orderId/invoices",
  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([
    'cfop' => '',
    'courier' => '',
    'extraValue' => 0,
    'invoiceKey' => '',
    'invoiceNumber' => '',
    'invoiceUrl' => '',
    'invoiceValue' => '',
    'issuedDate' => '',
    'items' => [
        [
                'itemIndex' => '',
                'price' => 0,
                'quantity' => 0
        ]
    ],
    'trackingNumber' => '',
    'trackingUrl' => '',
    'type' => '',
    'volumes' => 0
  ]),
  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/orders/pvt/document/:orderId/invoices', [
  'body' => '{
  "cfop": "",
  "courier": "",
  "extraValue": 0,
  "invoiceKey": "",
  "invoiceNumber": "",
  "invoiceUrl": "",
  "invoiceValue": "",
  "issuedDate": "",
  "items": [
    {
      "itemIndex": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": "",
  "volumes": 0
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/orders/pvt/document/:orderId/invoices');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'cfop' => '',
  'courier' => '',
  'extraValue' => 0,
  'invoiceKey' => '',
  'invoiceNumber' => '',
  'invoiceUrl' => '',
  'invoiceValue' => '',
  'issuedDate' => '',
  'items' => [
    [
        'itemIndex' => '',
        'price' => 0,
        'quantity' => 0
    ]
  ],
  'trackingNumber' => '',
  'trackingUrl' => '',
  'type' => '',
  'volumes' => 0
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'cfop' => '',
  'courier' => '',
  'extraValue' => 0,
  'invoiceKey' => '',
  'invoiceNumber' => '',
  'invoiceUrl' => '',
  'invoiceValue' => '',
  'issuedDate' => '',
  'items' => [
    [
        'itemIndex' => '',
        'price' => 0,
        'quantity' => 0
    ]
  ],
  'trackingNumber' => '',
  'trackingUrl' => '',
  'type' => '',
  'volumes' => 0
]));
$request->setRequestUrl('{{baseUrl}}/api/orders/pvt/document/:orderId/invoices');
$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/orders/pvt/document/:orderId/invoices' -Method POST -Headers $headers -ContentType '' -Body '{
  "cfop": "",
  "courier": "",
  "extraValue": 0,
  "invoiceKey": "",
  "invoiceNumber": "",
  "invoiceUrl": "",
  "invoiceValue": "",
  "issuedDate": "",
  "items": [
    {
      "itemIndex": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": "",
  "volumes": 0
}'
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/orders/pvt/document/:orderId/invoices' -Method POST -Headers $headers -ContentType '' -Body '{
  "cfop": "",
  "courier": "",
  "extraValue": 0,
  "invoiceKey": "",
  "invoiceNumber": "",
  "invoiceUrl": "",
  "invoiceValue": "",
  "issuedDate": "",
  "items": [
    {
      "itemIndex": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": "",
  "volumes": 0
}'
import http.client

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

payload = "{\n  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}"

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

conn.request("POST", "/baseUrl/api/orders/pvt/document/:orderId/invoices", payload, headers)

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

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

url = "{{baseUrl}}/api/orders/pvt/document/:orderId/invoices"

payload = {
    "cfop": "",
    "courier": "",
    "extraValue": 0,
    "invoiceKey": "",
    "invoiceNumber": "",
    "invoiceUrl": "",
    "invoiceValue": "",
    "issuedDate": "",
    "items": [
        {
            "itemIndex": "",
            "price": 0,
            "quantity": 0
        }
    ],
    "trackingNumber": "",
    "trackingUrl": "",
    "type": "",
    "volumes": 0
}
headers = {
    "content-type": "",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/api/orders/pvt/document/:orderId/invoices"

payload <- "{\n  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/api/orders/pvt/document/:orderId/invoices")

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  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}"

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

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

response = conn.post('/baseUrl/api/orders/pvt/document/:orderId/invoices') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"cfop\": \"\",\n  \"courier\": \"\",\n  \"extraValue\": 0,\n  \"invoiceKey\": \"\",\n  \"invoiceNumber\": \"\",\n  \"invoiceUrl\": \"\",\n  \"invoiceValue\": \"\",\n  \"issuedDate\": \"\",\n  \"items\": [\n    {\n      \"itemIndex\": \"\",\n      \"price\": 0,\n      \"quantity\": 0\n    }\n  ],\n  \"trackingNumber\": \"\",\n  \"trackingUrl\": \"\",\n  \"type\": \"\",\n  \"volumes\": 0\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/orders/pvt/document/:orderId/invoices";

    let payload = json!({
        "cfop": "",
        "courier": "",
        "extraValue": 0,
        "invoiceKey": "",
        "invoiceNumber": "",
        "invoiceUrl": "",
        "invoiceValue": "",
        "issuedDate": "",
        "items": (
            json!({
                "itemIndex": "",
                "price": 0,
                "quantity": 0
            })
        ),
        "trackingNumber": "",
        "trackingUrl": "",
        "type": "",
        "volumes": 0
    });

    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/orders/pvt/document/:orderId/invoices \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "cfop": "",
  "courier": "",
  "extraValue": 0,
  "invoiceKey": "",
  "invoiceNumber": "",
  "invoiceUrl": "",
  "invoiceValue": "",
  "issuedDate": "",
  "items": [
    {
      "itemIndex": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": "",
  "volumes": 0
}'
echo '{
  "cfop": "",
  "courier": "",
  "extraValue": 0,
  "invoiceKey": "",
  "invoiceNumber": "",
  "invoiceUrl": "",
  "invoiceValue": "",
  "issuedDate": "",
  "items": [
    {
      "itemIndex": "",
      "price": 0,
      "quantity": 0
    }
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": "",
  "volumes": 0
}' |  \
  http POST {{baseUrl}}/api/orders/pvt/document/:orderId/invoices \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --body-data '{\n  "cfop": "",\n  "courier": "",\n  "extraValue": 0,\n  "invoiceKey": "",\n  "invoiceNumber": "",\n  "invoiceUrl": "",\n  "invoiceValue": "",\n  "issuedDate": "",\n  "items": [\n    {\n      "itemIndex": "",\n      "price": 0,\n      "quantity": 0\n    }\n  ],\n  "trackingNumber": "",\n  "trackingUrl": "",\n  "type": "",\n  "volumes": 0\n}' \
  --output-document \
  - {{baseUrl}}/api/orders/pvt/document/:orderId/invoices
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]
let parameters = [
  "cfop": "",
  "courier": "",
  "extraValue": 0,
  "invoiceKey": "",
  "invoiceNumber": "",
  "invoiceUrl": "",
  "invoiceValue": "",
  "issuedDate": "",
  "items": [
    [
      "itemIndex": "",
      "price": 0,
      "quantity": 0
    ]
  ],
  "trackingNumber": "",
  "trackingUrl": "",
  "type": "",
  "volumes": 0
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/orders/pvt/document/:orderId/invoices")! 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-02-07T15:22:56.7612218-02:00",
  "orderId": "123543123",
  "receipt": "38e0e47da2934847b489216d208cfd91"
}
POST Cancel order
{{baseUrl}}/api/orders/pvt/document/:orderId/cancel
HEADERS

Content-Type
Accept
QUERY PARAMS

orderId
BODY json

{
  "reason": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"reason\": \"\"\n}");

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

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

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

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

func main() {

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

	payload := strings.NewReader("{\n  \"reason\": \"\"\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/orders/pvt/document/:orderId/cancel HTTP/1.1
Content-Type: 
Accept: 
Host: example.com
Content-Length: 18

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/orders/pvt/document/:orderId/cancel';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  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}}/api/orders/pvt/document/:orderId/cancel',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  },
  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}}/api/orders/pvt/document/:orderId/cancel")
  .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/orders/pvt/document/:orderId/cancel',
  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({reason: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/orders/pvt/document/:orderId/cancel',
  headers: {'content-type': '', accept: ''},
  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}}/api/orders/pvt/document/:orderId/cancel');

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

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}}/api/orders/pvt/document/:orderId/cancel',
  headers: {'content-type': '', accept: ''},
  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}}/api/orders/pvt/document/:orderId/cancel';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"reason":""}'
};

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

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

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

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

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

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

$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}}/api/orders/pvt/document/:orderId/cancel');
$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/orders/pvt/document/:orderId/cancel' -Method POST -Headers $headers -ContentType '' -Body '{
  "reason": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/orders/pvt/document/:orderId/cancel' -Method POST -Headers $headers -ContentType '' -Body '{
  "reason": ""
}'
import http.client

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

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

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

conn.request("POST", "/baseUrl/api/orders/pvt/document/:orderId/cancel", payload, headers)

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

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

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

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

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

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

url <- "{{baseUrl}}/api/orders/pvt/document/:orderId/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}}/api/orders/pvt/document/:orderId/cancel")

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  \"reason\": \"\"\n}"

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

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

response = conn.post('/baseUrl/api/orders/pvt/document/:orderId/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}}/api/orders/pvt/document/:orderId/cancel";

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

    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/orders/pvt/document/:orderId/cancel \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "reason": ""
}'
echo '{
  "reason": ""
}' |  \
  http POST {{baseUrl}}/api/orders/pvt/document/:orderId/cancel \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --body-data '{\n  "reason": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/orders/pvt/document/:orderId/cancel
import Foundation

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/orders/pvt/document/: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": "2014-02-07T15:22:56.7612218-02:00",
  "orderId": "123543123",
  "receipt": "38e0e47da2934847b489216d208cfd91"
}
GET Get order
{{baseUrl}}/api/orders/pvt/document/:orderId
HEADERS

Content-Type
Accept
QUERY PARAMS

orderId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/orders/pvt/document/:orderId");

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);

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

(client/get "{{baseUrl}}/api/orders/pvt/document/:orderId" {:headers {:content-type ""
                                                                                      :accept ""}})
require "http/client"

url = "{{baseUrl}}/api/orders/pvt/document/:orderId"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/orders/pvt/document/:orderId"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/orders/pvt/document/:orderId");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/orders/pvt/document/:orderId"

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

	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))

}
GET /baseUrl/api/orders/pvt/document/:orderId HTTP/1.1
Content-Type: 
Accept: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/orders/pvt/document/:orderId")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/orders/pvt/document/:orderId"))
    .header("content-type", "")
    .header("accept", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/orders/pvt/document/:orderId")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/orders/pvt/document/:orderId")
  .header("content-type", "")
  .header("accept", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/api/orders/pvt/document/:orderId');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/orders/pvt/document/:orderId',
  headers: {'content-type': '', accept: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/orders/pvt/document/:orderId';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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/orders/pvt/document/:orderId',
  method: 'GET',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/orders/pvt/document/:orderId")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/orders/pvt/document/:orderId',
  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.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/orders/pvt/document/:orderId',
  headers: {'content-type': '', accept: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/orders/pvt/document/:orderId');

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/orders/pvt/document/:orderId',
  headers: {'content-type': '', accept: ''}
};

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

const url = '{{baseUrl}}/api/orders/pvt/document/:orderId';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/orders/pvt/document/:orderId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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/orders/pvt/document/:orderId" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/orders/pvt/document/:orderId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  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('GET', '{{baseUrl}}/api/orders/pvt/document/:orderId', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/orders/pvt/document/:orderId');
$request->setMethod(HTTP_METH_GET);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/orders/pvt/document/:orderId');
$request->setRequestMethod('GET');
$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/orders/pvt/document/:orderId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/orders/pvt/document/:orderId' -Method GET -Headers $headers
import http.client

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

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

conn.request("GET", "/baseUrl/api/orders/pvt/document/:orderId", headers=headers)

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

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

url = "{{baseUrl}}/api/orders/pvt/document/:orderId"

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

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/orders/pvt/document/:orderId"

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

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

url = URI("{{baseUrl}}/api/orders/pvt/document/:orderId")

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

request = Net::HTTP::Get.new(url)
request["content-type"] = ''
request["accept"] = ''

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

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

response = conn.get('/baseUrl/api/orders/pvt/document/:orderId') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/orders/pvt/document/:orderId";

    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.get(url)
        .headers(headers)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/orders/pvt/document/:orderId \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/api/orders/pvt/document/:orderId \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'content-type: ' \
  --header 'accept: ' \
  --output-document \
  - {{baseUrl}}/api/orders/pvt/document/:orderId
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/orders/pvt/document/:orderId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

{
  "affiliateId": "",
  "allowCancellation": false,
  "allowEdition": false,
  "approvedBy": null,
  "authorizedDate": "2019-01-28T20:33:04+00:00",
  "callCenterOperatorData": null,
  "cancelReason": null,
  "cancelledBy": null,
  "changesAttachment": {
    "changesData": [
      {
        "discountValue": 3290,
        "incrementValue": 0,
        "itemsAdded": [],
        "itemsRemoved": [
          {
            "id": "1234568358",
            "name": "Bay Max L",
            "price": 3290,
            "quantity": 1,
            "unitMultiplier": null
          }
        ],
        "reason": "Blah",
        "receipt": {
          "date": "2019-02-06T20:46:04.4003606+00:00",
          "orderId": "v5195004lux-01",
          "receipt": "029f9ab8-751a-4b1e-bf81-7dd25d14b49b"
        }
      }
    ],
    "id": "changeAttachment"
  },
  "clientProfileData": {
    "corporateDocument": null,
    "corporateName": null,
    "corporatePhone": null,
    "customerClass": null,
    "document": "11047867702",
    "documentType": "cpf",
    "email": "rodrigo.cunha@vtex.com.br",
    "firstName": "Rodrigo",
    "id": "clientProfileData",
    "isCorporate": false,
    "lastName": "VTEX",
    "phone": "+5521972321094",
    "stateInscription": null,
    "tradeName": null,
    "userProfileId": "5a3692de-358a-4bea-8885-044bce33bb93"
  },
  "commercialConditionData": null,
  "creationDate": "2019-01-28T20:09:43.899958+00:00",
  "customData": null,
  "emailTracked": "a27499cad31f42b7a771ae34f57c8358@ct.vtex.com.br",
  "followUpEmail": "7bf3a59bbc56402c810bda9521ba449e@ct.vtex.com.br",
  "giftRegistryData": null,
  "hostname": "luxstore",
  "invoiceData": null,
  "invoicedDate": null,
  "isCheckedIn": false,
  "isCompleted": true,
  "items": [
    {
      "additionalInfo": {
        "brandId": "2000023",
        "brandName": "VTEX",
        "categoriesIds": "/1/",
        "commercialConditionId": "5",
        "dimension": {
          "cubicweight": 0.7031,
          "height": 15,
          "length": 15,
          "weight": 15,
          "width": 15
        },
        "offeringInfo": null,
        "offeringType": null,
        "offeringTypeId": null,
        "productClusterId": "135,142"
      },
      "attachments": [],
      "bundleItems": [],
      "commission": 0,
      "components": [],
      "detailUrl": "/bay-max-9429485/p",
      "ean": null,
      "freightCommission": 0,
      "id": "1234568358",
      "imageUrl": "http://luxstore.vteximg.com.br/arquivos/ids/159263-55-55/image-cc1aed75cbfa424a85a94900be3eacec.jpg?v=636795432619830000",
      "isGift": false,
      "itemAttachment": {
        "content": {},
        "name": null
      },
      "listPrice": 3290,
      "lockId": "00-v5195004lux-01",
      "manualPrice": null,
      "measurementUnit": "un",
      "name": "Bay Max L",
      "offerings": [],
      "params": [],
      "parentAssemblyBinding": null,
      "parentItemIndex": null,
      "preSaleDate": null,
      "price": 3290,
      "priceDefinitions": null,
      "priceTags": [],
      "priceValidUntil": null,
      "productId": "9429485",
      "quantity": 1,
      "refId": "BIGHEROBML",
      "rewardValue": 0,
      "seller": "1",
      "sellerSku": "1234568358",
      "sellingPrice": 3290,
      "shippingPrice": null,
      "tax": 0,
      "taxCode": null,
      "uniqueId": "87F0945396994B349158C7D9C9941442",
      "unitMultiplier": 1
    }
  ],
  "lastChange": "2019-02-06T20:46:11.7010747+00:00",
  "lastMessage": null,
  "marketingData": null,
  "marketplace": {
    "baseURL": "http://oms.vtexinternal.com.br/api/oms?an=luxstore",
    "isCertified": null,
    "name": "luxstore"
  },
  "marketplaceItems": [],
  "marketplaceOrderId": "",
  "marketplaceServicesEndpoint": "http://oms.vtexinternal.com.br/api/oms?an=luxstore",
  "merchantName": null,
  "openTextField": null,
  "orderFormId": "caae7471333e403f959fa5fd66951340",
  "orderGroup": null,
  "orderId": "v5195004lux-01",
  "origin": "Marketplace",
  "packageAttachment": {
    "packages": []
  },
  "paymentData": {
    "transactions": [
      {
        "isActive": true,
        "merchantName": "luxstore",
        "payments": [
          {
            "cardHolder": null,
            "connectorResponses": {},
            "dueDate": "2019-02-02",
            "firstDigits": null,
            "giftCardCaption": null,
            "giftCardId": null,
            "giftCardName": null,
            "group": "bankInvoice",
            "id": "D3DEECAB3C6C4B9EAF8EF4C1FE062FF3",
            "installments": 1,
            "lastDigits": null,
            "paymentSystem": "6",
            "paymentSystemName": "Boleto Bancário",
            "redemptionCode": null,
            "referenceValue": 4450,
            "tid": null,
            "url": "https://luxstore.vtexpayments.com.br:443/BankIssuedInvoice/Transaction/418213DE29634837A63DD693A937A696/Payment/D3DEECAB3C6C4B9EAF8EF4C1FE062FF3/Installment/{Installment}",
            "value": 4450
          }
        ],
        "transactionId": "418213DE29634837A63DD693A937A696"
      }
    ]
  },
  "ratesAndBenefitsData": {
    "id": "ratesAndBenefitsData",
    "rateAndBenefitsIdentifiers": []
  },
  "roundingError": 0,
  "salesChannel": "1",
  "sellerOrderId": "00-v5195004lux-01",
  "sellers": [
    {
      "id": "1",
      "logo": "",
      "name": "Loja do Suporte"
    }
  ],
  "sequence": "502556",
  "shippingData": {
    "address": {
      "addressId": "-1425945657910",
      "addressType": "residential",
      "city": "Rio de Janeiro",
      "complement": "3",
      "country": "BRA",
      "geoCoordinates": [],
      "neighborhood": "Botafogo",
      "number": "300",
      "postalCode": "22250-040",
      "receiverName": "Rodrigo Cunha",
      "reference": null,
      "state": "RJ",
      "street": "Praia de Botafogo"
    },
    "id": "shippingData",
    "logisticsInfo": [
      {
        "addressId": "-1425945657910",
        "deliveryChannel": "delivery",
        "deliveryCompany": "Todos os CEPS",
        "deliveryIds": [
          {
            "courierId": "197a56f",
            "courierName": "Todos os CEPS",
            "dockId": "1",
            "quantity": 1,
            "warehouseId": "1_1"
          }
        ],
        "deliveryWindow": null,
        "itemIndex": 0,
        "listPrice": 1160,
        "lockTTL": "10d",
        "pickupStoreInfo": {
          "additionalInfo": null,
          "address": null,
          "dockId": null,
          "friendlyName": null,
          "isPickupStore": false
        },
        "polygonName": null,
        "price": 1160,
        "selectedSla": "Normal",
        "sellingPrice": 1160,
        "shippingEstimate": "5bd",
        "shippingEstimateDate": "2019-02-04T20:33:46.4595004+00:00",
        "shipsTo": [
          "BRA"
        ],
        "slas": [
          {
            "deliveryChannel": "delivery",
            "deliveryWindow": null,
            "id": "Normal",
            "name": "Normal",
            "pickupStoreInfo": {
              "additionalInfo": null,
              "address": null,
              "dockId": null,
              "friendlyName": null,
              "isPickupStore": false
            },
            "polygonName": null,
            "price": 1160,
            "shippingEstimate": "5bd"
          },
          {
            "deliveryChannel": "delivery",
            "deliveryWindow": null,
            "id": "Expressa",
            "name": "Expressa",
            "pickupStoreInfo": {
              "additionalInfo": null,
              "address": null,
              "dockId": null,
              "friendlyName": null,
              "isPickupStore": false
            },
            "polygonName": null,
            "price": 1160,
            "shippingEstimate": "5bd"
          },
          {
            "deliveryChannel": "delivery",
            "deliveryWindow": null,
            "id": "Quebra Kit",
            "name": "Quebra Kit",
            "pickupStoreInfo": {
              "additionalInfo": null,
              "address": null,
              "dockId": null,
              "friendlyName": null,
              "isPickupStore": false
            },
            "polygonName": null,
            "price": 1392,
            "shippingEstimate": "2bd"
          },
          {
            "deliveryChannel": "delivery",
            "deliveryWindow": null,
            "id": "Sob Encomenda",
            "name": "Sob Encomenda",
            "pickupStoreInfo": {
              "additionalInfo": null,
              "address": null,
              "dockId": null,
              "friendlyName": null,
              "isPickupStore": false
            },
            "polygonName": null,
            "price": 1392,
            "shippingEstimate": "32bd"
          }
        ]
      }
    ],
    "selectedAddresses": [
      {
        "addressId": "-1425945657910",
        "addressType": "residential",
        "city": "Rio de Janeiro",
        "complement": "10",
        "country": "BRA",
        "geoCoordinates": [],
        "neighborhood": "Botafogo",
        "number": "518",
        "postalCode": "22250-040",
        "receiverName": "Rodrigo Cunha",
        "reference": null,
        "state": "RJ",
        "street": "Praia de Botafogo"
      }
    ],
    "trackingHints": null
  },
  "status": "handling",
  "statusDescription": "Preparando Entrega",
  "storePreferencesData": {
    "countryCode": "BRA",
    "currencyCode": "BRL",
    "currencyFormatInfo": {
      "CurrencyDecimalDigits": 2,
      "CurrencyDecimalSeparator": ",",
      "CurrencyGroupSeparator": ".",
      "CurrencyGroupSize": 3,
      "StartsWithCurrencySymbol": true
    },
    "currencyLocale": 1046,
    "currencySymbol": "R$",
    "timeZone": "E. South America Standard Time"
  },
  "totals": [
    {
      "id": "Items",
      "name": "Total dos Itens",
      "value": 3290
    },
    {
      "id": "Discounts",
      "name": "Total dos Descontos",
      "value": 0
    },
    {
      "id": "Shipping",
      "name": "Total do Frete",
      "value": 1160
    },
    {
      "id": "Tax",
      "name": "Total da Taxa",
      "value": 0
    },
    {
      "id": "Change",
      "name": "Total das mudanças",
      "value": -3290
    }
  ],
  "value": 1160
}
POST List orders
{{baseUrl}}/api/orders/extendsearch/orders
HEADERS

Content-Type
Accept
BODY json

{
  "f_creationDate": "",
  "page": 0,
  "per_page": 0,
  "q": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/orders/extendsearch/orders");

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  \"f_creationDate\": \"\",\n  \"page\": 0,\n  \"per_page\": 0,\n  \"q\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/orders/extendsearch/orders" {:headers {:accept ""}
                                                                           :content-type :json
                                                                           :form-params {:f_creationDate ""
                                                                                         :page 0
                                                                                         :per_page 0
                                                                                         :q ""}})
require "http/client"

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

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

func main() {

	url := "{{baseUrl}}/api/orders/extendsearch/orders"

	payload := strings.NewReader("{\n  \"f_creationDate\": \"\",\n  \"page\": 0,\n  \"per_page\": 0,\n  \"q\": \"\"\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/orders/extendsearch/orders HTTP/1.1
Content-Type: 
Accept: 
Host: example.com
Content-Length: 67

{
  "f_creationDate": "",
  "page": 0,
  "per_page": 0,
  "q": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/orders/extendsearch/orders")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .setBody("{\n  \"f_creationDate\": \"\",\n  \"page\": 0,\n  \"per_page\": 0,\n  \"q\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/orders/extendsearch/orders"))
    .header("content-type", "")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"f_creationDate\": \"\",\n  \"page\": 0,\n  \"per_page\": 0,\n  \"q\": \"\"\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  \"f_creationDate\": \"\",\n  \"page\": 0,\n  \"per_page\": 0,\n  \"q\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/orders/extendsearch/orders")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/orders/extendsearch/orders")
  .header("content-type", "")
  .header("accept", "")
  .body("{\n  \"f_creationDate\": \"\",\n  \"page\": 0,\n  \"per_page\": 0,\n  \"q\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  f_creationDate: '',
  page: 0,
  per_page: 0,
  q: ''
});

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/orders/extendsearch/orders');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/orders/extendsearch/orders',
  headers: {'content-type': '', accept: ''},
  data: {f_creationDate: '', page: 0, per_page: 0, q: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/orders/extendsearch/orders';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"f_creationDate":"","page":0,"per_page":0,"q":""}'
};

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/orders/extendsearch/orders',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  },
  processData: false,
  data: '{\n  "f_creationDate": "",\n  "page": 0,\n  "per_page": 0,\n  "q": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"f_creationDate\": \"\",\n  \"page\": 0,\n  \"per_page\": 0,\n  \"q\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/orders/extendsearch/orders")
  .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/orders/extendsearch/orders',
  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({f_creationDate: '', page: 0, per_page: 0, q: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/orders/extendsearch/orders',
  headers: {'content-type': '', accept: ''},
  body: {f_creationDate: '', page: 0, per_page: 0, q: ''},
  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/orders/extendsearch/orders');

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

req.type('json');
req.send({
  f_creationDate: '',
  page: 0,
  per_page: 0,
  q: ''
});

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/orders/extendsearch/orders',
  headers: {'content-type': '', accept: ''},
  data: {f_creationDate: '', page: 0, per_page: 0, q: ''}
};

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

const url = '{{baseUrl}}/api/orders/extendsearch/orders';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"f_creationDate":"","page":0,"per_page":0,"q":""}'
};

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 = @{ @"f_creationDate": @"",
                              @"page": @0,
                              @"per_page": @0,
                              @"q": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/orders/extendsearch/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}}/api/orders/extendsearch/orders" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"f_creationDate\": \"\",\n  \"page\": 0,\n  \"per_page\": 0,\n  \"q\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/orders/extendsearch/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([
    'f_creationDate' => '',
    'page' => 0,
    'per_page' => 0,
    'q' => ''
  ]),
  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/orders/extendsearch/orders', [
  'body' => '{
  "f_creationDate": "",
  "page": 0,
  "per_page": 0,
  "q": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'f_creationDate' => '',
  'page' => 0,
  'per_page' => 0,
  'q' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'f_creationDate' => '',
  'page' => 0,
  'per_page' => 0,
  'q' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/orders/extendsearch/orders');
$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/orders/extendsearch/orders' -Method POST -Headers $headers -ContentType '' -Body '{
  "f_creationDate": "",
  "page": 0,
  "per_page": 0,
  "q": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/orders/extendsearch/orders' -Method POST -Headers $headers -ContentType '' -Body '{
  "f_creationDate": "",
  "page": 0,
  "per_page": 0,
  "q": ""
}'
import http.client

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

payload = "{\n  \"f_creationDate\": \"\",\n  \"page\": 0,\n  \"per_page\": 0,\n  \"q\": \"\"\n}"

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

conn.request("POST", "/baseUrl/api/orders/extendsearch/orders", payload, headers)

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

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

url = "{{baseUrl}}/api/orders/extendsearch/orders"

payload = {
    "f_creationDate": "",
    "page": 0,
    "per_page": 0,
    "q": ""
}
headers = {
    "content-type": "",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/api/orders/extendsearch/orders"

payload <- "{\n  \"f_creationDate\": \"\",\n  \"page\": 0,\n  \"per_page\": 0,\n  \"q\": \"\"\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/orders/extendsearch/orders")

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  \"f_creationDate\": \"\",\n  \"page\": 0,\n  \"per_page\": 0,\n  \"q\": \"\"\n}"

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

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

response = conn.post('/baseUrl/api/orders/extendsearch/orders') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"f_creationDate\": \"\",\n  \"page\": 0,\n  \"per_page\": 0,\n  \"q\": \"\"\n}"
end

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

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

    let payload = json!({
        "f_creationDate": "",
        "page": 0,
        "per_page": 0,
        "q": ""
    });

    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/orders/extendsearch/orders \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "f_creationDate": "",
  "page": 0,
  "per_page": 0,
  "q": ""
}'
echo '{
  "f_creationDate": "",
  "page": 0,
  "per_page": 0,
  "q": ""
}' |  \
  http POST {{baseUrl}}/api/orders/extendsearch/orders \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --body-data '{\n  "f_creationDate": "",\n  "page": 0,\n  "per_page": 0,\n  "q": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/orders/extendsearch/orders
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]
let parameters = [
  "f_creationDate": "",
  "page": 0,
  "per_page": 0,
  "q": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/orders/extendsearch/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; charset=utf-8
RESPONSE BODY json

{
  "facets": [],
  "list": [
    {
      "ShippingEstimatedDate": null,
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "",
      "authorizedDate": "2019-02-07T21:29:54+00:00",
      "callCenterOperatorName": null,
      "clientName": "J C",
      "creationDate": "2019-02-04T10:29:11+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": " Lux Store 96 Sua Nota Fiscal foi emitida. Referente ao Pedido #v502559llux-01 Olá, J. Estamos empacotando seu produto para providenci",
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": null,
      "orderId": "v502559llux-01",
      "orderIsComplete": true,
      "origin": "Marketplace",
      "paymentNames": "Boleto Bancário",
      "salesChannel": "1",
      "sequence": "502559",
      "status": "invoiced",
      "statusDescription": "Faturado",
      "totalItems": 1,
      "totalValue": 7453,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": "2019-02-04T20:33:46+00:00",
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "",
      "authorizedDate": "2019-01-28T20:33:04+00:00",
      "callCenterOperatorName": null,
      "clientName": "Rodrigo VTEX",
      "creationDate": "2019-01-28T20:09:43+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": " Lux Store Seu pedido foi alterado! Pedido realizado em: 28/01/2019 Olá, Rodrigo. Seu pedido foi alterado. Seguem informações abaixo: ",
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": null,
      "orderId": "v502556llux-01",
      "orderIsComplete": true,
      "origin": "Marketplace",
      "paymentNames": "Boleto Bancário",
      "salesChannel": "1",
      "sequence": "502556",
      "status": "handling",
      "statusDescription": "Preparando Entrega",
      "totalItems": 1,
      "totalValue": 1160,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": "2019-01-31T12:36:30+00:00",
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "",
      "authorizedDate": "2019-01-24T12:36:01+00:00",
      "callCenterOperatorName": null,
      "clientName": "test test",
      "creationDate": "2019-01-24T12:35:19+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": " Lux Store 96 Sua Nota Fiscal foi emitida. Referente ao Pedido #v502553llux-01 Olá, test. Estamos empacotando seu produto para provide",
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": null,
      "orderId": "v502553llux-01",
      "orderIsComplete": true,
      "origin": "Marketplace",
      "paymentNames": "Mastercard",
      "salesChannel": "1",
      "sequence": "502554",
      "status": "ready-for-handling",
      "statusDescription": "Pronto para o manuseio",
      "totalItems": 1,
      "totalValue": 10150,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": "2019-01-30T16:40:55+00:00",
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "",
      "authorizedDate": "2019-01-23T16:40:27+00:00",
      "callCenterOperatorName": null,
      "clientName": "test test",
      "creationDate": "2019-01-23T16:39:45+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": " Lux Store 96 Seu pagamento foi aprovado. Referente ao Pedido #v502550llux-01 Olá, test. Estamos providenciando a emissão da Nota Fisc",
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": null,
      "orderId": "v502550llux-01",
      "orderIsComplete": true,
      "origin": "Marketplace",
      "paymentNames": "Mastercard",
      "salesChannel": "1",
      "sequence": "502551",
      "status": "ready-for-handling",
      "statusDescription": "Pronto para o manuseio",
      "totalItems": 1,
      "totalValue": 10150,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": "2019-01-30T16:35:30+00:00",
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "",
      "authorizedDate": "2019-01-23T16:35:04+00:00",
      "callCenterOperatorName": null,
      "clientName": "test test",
      "creationDate": "2019-01-23T16:34:20+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": " Lux Store 96 Seu pagamento foi aprovado. Referente ao Pedido #v502547llux-01 Olá, test. Estamos providenciando a emissão da Nota Fisc",
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": null,
      "orderId": "v502547llux-01",
      "orderIsComplete": true,
      "origin": "Marketplace",
      "paymentNames": "Mastercard",
      "salesChannel": "1",
      "sequence": "502548",
      "status": "ready-for-handling",
      "statusDescription": "Pronto para o manuseio",
      "totalItems": 1,
      "totalValue": 10150,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": null,
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "",
      "authorizedDate": null,
      "callCenterOperatorName": null,
      "clientName": "test test",
      "creationDate": "2018-12-28T18:15:28+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": " Lux Store 96 Seu pedido foi cancelado. Referente ao Pedido #v502544llux-01 Resumo Itens R$ 89,90 Total R$ 89,90 Produto Alavanca De M",
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": null,
      "orderId": "v502544llux-01",
      "orderIsComplete": true,
      "origin": "Marketplace",
      "paymentNames": "Boleto Bancário",
      "salesChannel": "1",
      "sequence": "502544",
      "status": "canceled",
      "statusDescription": "Cancelado",
      "totalItems": 1,
      "totalValue": 8990,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": null,
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "",
      "authorizedDate": null,
      "callCenterOperatorName": null,
      "clientName": "Douglas Rodrigues",
      "creationDate": "2018-12-18T18:48:17+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": " Lux Store 96 Seu pedido foi cancelado. Referente ao Pedido #v502541llux-01 Resumo Itens R$ 32,90 Total R$ 32,90 Produto Bay Max L 1 u",
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": null,
      "orderId": "v502541llux-01",
      "orderIsComplete": true,
      "origin": "Marketplace",
      "paymentNames": "Boleto Bancário",
      "salesChannel": "1",
      "sequence": "502541",
      "status": "canceled",
      "statusDescription": "Cancelado",
      "totalItems": 1,
      "totalValue": 3290,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": "2018-12-19T18:22:26+00:00",
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "",
      "authorizedDate": "2018-12-12T18:22:22+00:00",
      "callCenterOperatorName": null,
      "clientName": "test test",
      "creationDate": "2018-12-12T18:21:47+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": " Lux Store 96 Seu pagamento foi aprovado. Referente ao Pedido #v502538llux-01 Olá, test. Estamos providenciando a emissão da Nota Fisc",
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": null,
      "orderId": "v502538llux-01",
      "orderIsComplete": true,
      "origin": "Marketplace",
      "paymentNames": "Mastercard",
      "salesChannel": "1",
      "sequence": "502538",
      "status": "ready-for-handling",
      "statusDescription": "Pronto para o manuseio",
      "totalItems": 1,
      "totalValue": 8990,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": null,
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "SCP",
      "authorizedDate": "2018-11-30T17:34:42+00:00",
      "callCenterOperatorName": null,
      "clientName": "roberta grecco",
      "creationDate": "2018-11-30T17:34:01+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": "cancelamento teste shp ",
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": "880102018018-01",
      "orderId": "SCP-880102018018-01",
      "orderIsComplete": true,
      "origin": "Fulfillment",
      "paymentNames": "",
      "salesChannel": "1",
      "sequence": "502537",
      "status": "canceled",
      "statusDescription": "Cancelado",
      "totalItems": 1,
      "totalValue": 1250,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": null,
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "SCP",
      "authorizedDate": "2018-11-30T17:29:22+00:00",
      "callCenterOperatorName": null,
      "clientName": "roberta grecco",
      "creationDate": "2018-11-30T17:28:35+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": null,
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": "880091692043-01",
      "orderId": "SCP-880091692043-01",
      "orderIsComplete": true,
      "origin": "Fulfillment",
      "paymentNames": "",
      "salesChannel": "1",
      "sequence": "502536",
      "status": "invoiced",
      "statusDescription": "Faturado",
      "totalItems": 1,
      "totalValue": 1250,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": null,
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "SCP",
      "authorizedDate": "2018-11-30T17:18:44+00:00",
      "callCenterOperatorName": null,
      "clientName": "roberta grecco",
      "creationDate": "2018-11-30T17:18:00+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": "Teste de cancelamento do ShopFácil ",
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": "880091058221-01",
      "orderId": "SCP-880091058221-01",
      "orderIsComplete": true,
      "origin": "Fulfillment",
      "paymentNames": "",
      "salesChannel": "1",
      "sequence": "502535",
      "status": "canceled",
      "statusDescription": "Cancelado",
      "totalItems": 1,
      "totalValue": 1250,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": "2018-12-07T17:11:39+00:00",
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "SCP",
      "authorizedDate": "2018-11-30T17:11:42+00:00",
      "callCenterOperatorName": null,
      "clientName": "roberta grecco",
      "creationDate": "2018-11-30T17:10:59+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": null,
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": "880090643370-01",
      "orderId": "SCP-880090643370-01",
      "orderIsComplete": true,
      "origin": "Fulfillment",
      "paymentNames": "",
      "salesChannel": "1",
      "sequence": "502534",
      "status": "ready-for-handling",
      "statusDescription": "Pronto para o manuseio",
      "totalItems": 1,
      "totalValue": 1250,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": null,
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "SCP",
      "authorizedDate": null,
      "callCenterOperatorName": null,
      "clientName": "roberta grecco",
      "creationDate": "2018-11-30T17:10:45+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": null,
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": "880090622238-01",
      "orderId": "SCP-880090622238-01",
      "orderIsComplete": true,
      "origin": "Fulfillment",
      "paymentNames": "",
      "salesChannel": "1",
      "sequence": "502533",
      "status": "canceled",
      "statusDescription": "Cancelado",
      "totalItems": 1,
      "totalValue": 1250,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": null,
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "MNC",
      "authorizedDate": "2018-11-20T21:13:06+00:00",
      "callCenterOperatorName": null,
      "clientName": "Carlos VTEX",
      "creationDate": "2018-11-20T21:09:01+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": null,
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": "877730530419-01",
      "orderId": "MNC-877730530419-01",
      "orderIsComplete": true,
      "origin": "Fulfillment",
      "paymentNames": "",
      "salesChannel": "1",
      "sequence": "502532",
      "status": "canceled",
      "statusDescription": "Cancelado",
      "totalItems": 1,
      "totalValue": 11150,
      "workflowInErrorState": false,
      "workflowInRetry": false
    },
    {
      "ShippingEstimatedDate": "2018-11-23T16:58:48+00:00",
      "ShippingEstimatedDateMax": null,
      "ShippingEstimatedDateMin": null,
      "affiliateId": "SCP",
      "authorizedDate": "2018-11-16T16:58:53+00:00",
      "callCenterOperatorName": null,
      "clientName": "roberta grecco",
      "creationDate": "2018-11-16T16:58:18+00:00",
      "currencyCode": "BRL",
      "items": null,
      "lastMessageUnread": null,
      "listId": null,
      "listType": null,
      "marketPlaceOrderId": "876733475998-01",
      "orderId": "SCP-876733475998-01",
      "orderIsComplete": true,
      "origin": "Fulfillment",
      "paymentNames": "",
      "salesChannel": "1",
      "sequence": "502531",
      "status": "ready-for-handling",
      "statusDescription": "Pronto para o manuseio",
      "totalItems": 1,
      "totalValue": 1250,
      "workflowInErrorState": false,
      "workflowInRetry": false
    }
  ],
  "paging": {
    "currentPage": 1,
    "pages": 6,
    "perPage": 15,
    "total": 84
  },
  "stats": {
    "stats": {
      "totalItems": {
        "Count": 84,
        "Facets": {
          "currencyCode": {
            "BRL": {
              "Count": 84,
              "Facets": null,
              "Max": 89,
              "Mean": 2.2261904761904763,
              "Min": 1,
              "Missing": 0,
              "StdDev": 9.660940100525016,
              "Sum": 187,
              "SumOfSquares": 8163
            }
          },
          "origin": {
            "Fulfillment": {
              "Count": 68,
              "Facets": null,
              "Max": 1,
              "Mean": 1,
              "Min": 1,
              "Missing": 0,
              "StdDev": 0,
              "Sum": 68,
              "SumOfSquares": 68
            },
            "Marketplace": {
              "Count": 16,
              "Facets": null,
              "Max": 89,
              "Mean": 7.4375,
              "Min": 1,
              "Missing": 0,
              "StdDev": 21.92401651157926,
              "Sum": 119,
              "SumOfSquares": 8095
            }
          }
        },
        "Max": 89,
        "Mean": 2.2261904761904763,
        "Min": 1,
        "Missing": 0,
        "StdDev": 9.660940100525016,
        "Sum": 187,
        "SumOfSquares": 8163
      },
      "totalValue": {
        "Count": 84,
        "Facets": {
          "currencyCode": {
            "BRL": {
              "Count": 84,
              "Facets": null,
              "Max": 21526180,
              "Mean": 262672.75,
              "Min": 1160,
              "Missing": 0,
              "StdDev": 2348087.3869179883,
              "Sum": 22064511,
              "SumOfSquares": 463417439039853
            }
          },
          "origin": {
            "Fulfillment": {
              "Count": 68,
              "Facets": null,
              "Max": 11150,
              "Mean": 1395.5882352941176,
              "Min": 1250,
              "Missing": 0,
              "StdDev": 1200.5513439298484,
              "Sum": 94900,
              "SumOfSquares": 229010000
            },
            "Marketplace": {
              "Count": 16,
              "Facets": null,
              "Max": 21526180,
              "Mean": 1373100.6875,
              "Min": 1160,
              "Missing": 0,
              "StdDev": 5374326.141087491,
              "Sum": 21969611,
              "SumOfSquares": 463417210029853
            }
          }
        },
        "Max": 21526180,
        "Mean": 262672.75,
        "Min": 1160,
        "Missing": 0,
        "StdDev": 2348087.3869179883,
        "Sum": 22064511,
        "SumOfSquares": 463417439039853
      }
    }
  }
}
POST Start handling order
{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling
HEADERS

Content-Type
Accept
QUERY PARAMS

orderId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling");

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);

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

(client/post "{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling" {:headers {:content-type ""
                                                                                                              :accept ""}})
require "http/client"

url = "{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}

response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling"

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

	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/orders/pvt/document/:orderId/actions/start-handling HTTP/1.1
Content-Type: 
Accept: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling"))
    .header("content-type", "")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling")
  .post(null)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling")
  .header("content-type", "")
  .header("accept", "")
  .asString();
const data = null;

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

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

xhr.open('POST', '{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling',
  headers: {'content-type': '', accept: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling';
const options = {method: 'POST', headers: {'content-type': '', accept: ''}};

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/orders/pvt/document/:orderId/actions/start-handling',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling")
  .post(null)
  .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/orders/pvt/document/:orderId/actions/start-handling',
  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.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling',
  headers: {'content-type': '', accept: ''}
};

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/orders/pvt/document/:orderId/actions/start-handling');

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

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/orders/pvt/document/:orderId/actions/start-handling',
  headers: {'content-type': '', accept: ''}
};

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

const url = '{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling';
const options = {method: 'POST', headers: {'content-type': '', accept: ''}};

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": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];

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/orders/pvt/document/:orderId/actions/start-handling" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  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/orders/pvt/document/:orderId/actions/start-handling', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling');
$request->setMethod(HTTP_METH_POST);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling');
$request->setRequestMethod('POST');
$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/orders/pvt/document/:orderId/actions/start-handling' -Method POST -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling' -Method POST -Headers $headers
import http.client

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

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

conn.request("POST", "/baseUrl/api/orders/pvt/document/:orderId/actions/start-handling", headers=headers)

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

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

url = "{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling"

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

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

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

url <- "{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling"

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

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

url = URI("{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request["accept"] = ''

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

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

response = conn.post('/baseUrl/api/orders/pvt/document/:orderId/actions/start-handling') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling";

    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)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling \
  --header 'accept: ' \
  --header 'content-type: '
http POST {{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --output-document \
  - {{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/orders/pvt/document/:orderId/actions/start-handling")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

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 Send payment notification
{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment
HEADERS

Content-Type
Accept
QUERY PARAMS

orderId
paymentId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment");

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);

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

(client/post "{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment" {:headers {:content-type ""
                                                                                                                         :accept ""}})
require "http/client"

url = "{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}

response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment"

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

	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/orders/pvt/document/:orderId/payment/:paymentId/notify-payment HTTP/1.1
Content-Type: 
Accept: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment"))
    .header("content-type", "")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment")
  .post(null)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment")
  .header("content-type", "")
  .header("accept", "")
  .asString();
const data = null;

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

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

xhr.open('POST', '{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment',
  headers: {'content-type': '', accept: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment';
const options = {method: 'POST', headers: {'content-type': '', accept: ''}};

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/orders/pvt/document/:orderId/payment/:paymentId/notify-payment',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment")
  .post(null)
  .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/orders/pvt/document/:orderId/payment/:paymentId/notify-payment',
  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.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment',
  headers: {'content-type': '', accept: ''}
};

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/orders/pvt/document/:orderId/payment/:paymentId/notify-payment');

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

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/orders/pvt/document/:orderId/payment/:paymentId/notify-payment',
  headers: {'content-type': '', accept: ''}
};

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

const url = '{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment';
const options = {method: 'POST', headers: {'content-type': '', accept: ''}};

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": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];

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/orders/pvt/document/:orderId/payment/:paymentId/notify-payment" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  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/orders/pvt/document/:orderId/payment/:paymentId/notify-payment', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment');
$request->setMethod(HTTP_METH_POST);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment');
$request->setRequestMethod('POST');
$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/orders/pvt/document/:orderId/payment/:paymentId/notify-payment' -Method POST -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment' -Method POST -Headers $headers
import http.client

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

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

conn.request("POST", "/baseUrl/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment", headers=headers)

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

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

url = "{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment"

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

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

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

url <- "{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment"

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

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

url = URI("{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request["accept"] = ''

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

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

response = conn.post('/baseUrl/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment";

    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)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment \
  --header 'accept: ' \
  --header 'content-type: '
http POST {{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --output-document \
  - {{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/orders/pvt/document/:orderId/payment/:paymentId/notify-payment")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

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()