POST cancelShipment
{{baseUrl}}/shipment/:shipmentId/cancel
QUERY PARAMS

shipmentId
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/post "{{baseUrl}}/shipment/:shipmentId/cancel")
require "http/client"

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

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

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

func main() {

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

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

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

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

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

}
POST /baseUrl/shipment/:shipmentId/cancel HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/shipment/:shipmentId/cancel")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/shipment/:shipmentId/cancel"))
    .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}}/shipment/:shipmentId/cancel")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/shipment/:shipmentId/cancel")
  .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}}/shipment/:shipmentId/cancel');

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

const options = {method: 'POST', url: '{{baseUrl}}/shipment/:shipmentId/cancel'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/shipment/:shipmentId/cancel';
const options = {method: 'POST'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/shipment/:shipmentId/cancel")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/shipment/:shipmentId/cancel',
  headers: {}
};

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

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

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

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

const options = {method: 'POST', url: '{{baseUrl}}/shipment/:shipmentId/cancel'};

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

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

const req = unirest('POST', '{{baseUrl}}/shipment/:shipmentId/cancel');

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}}/shipment/:shipmentId/cancel'};

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

const url = '{{baseUrl}}/shipment/:shipmentId/cancel';
const options = {method: 'POST'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/shipment/:shipmentId/cancel"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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

let uri = Uri.of_string "{{baseUrl}}/shipment/:shipmentId/cancel" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/shipment/:shipmentId/cancel');

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/shipment/:shipmentId/cancel');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/shipment/:shipmentId/cancel' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/shipment/:shipmentId/cancel' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/shipment/:shipmentId/cancel")

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

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

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

response = requests.post(url)

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

url <- "{{baseUrl}}/shipment/:shipmentId/cancel"

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

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

url = URI("{{baseUrl}}/shipment/:shipmentId/cancel")

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

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

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

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

response = conn.post('/baseUrl/shipment/:shipmentId/cancel') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/shipment/:shipmentId/cancel
http POST {{baseUrl}}/shipment/:shipmentId/cancel
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/shipment/:shipmentId/cancel
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/shipment/:shipmentId/cancel")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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

dataTask.resume()
POST createFromShippingQuote
{{baseUrl}}/shipment/create_from_shipping_quote
BODY json

{
  "additionalOptions": [
    {
      "additionalCost": {
        "currency": "",
        "value": ""
      },
      "optionType": ""
    }
  ],
  "labelCustomMessage": "",
  "labelSize": "",
  "rateId": "",
  "returnTo": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shippingQuoteId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\n}");

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

(client/post "{{baseUrl}}/shipment/create_from_shipping_quote" {:content-type :json
                                                                                :form-params {:additionalOptions [{:additionalCost {:currency ""
                                                                                                                                    :value ""}
                                                                                                                   :optionType ""}]
                                                                                              :labelCustomMessage ""
                                                                                              :labelSize ""
                                                                                              :rateId ""
                                                                                              :returnTo {:companyName ""
                                                                                                         :contactAddress {:addressLine1 ""
                                                                                                                          :addressLine2 ""
                                                                                                                          :city ""
                                                                                                                          :countryCode ""
                                                                                                                          :county ""
                                                                                                                          :postalCode ""
                                                                                                                          :stateOrProvince ""}
                                                                                                         :fullName ""
                                                                                                         :primaryPhone {:phoneNumber ""}}
                                                                                              :shippingQuoteId ""}})
require "http/client"

url = "{{baseUrl}}/shipment/create_from_shipping_quote"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\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}}/shipment/create_from_shipping_quote"),
    Content = new StringContent("{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\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}}/shipment/create_from_shipping_quote");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/shipment/create_from_shipping_quote"

	payload := strings.NewReader("{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/shipment/create_from_shipping_quote HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 548

{
  "additionalOptions": [
    {
      "additionalCost": {
        "currency": "",
        "value": ""
      },
      "optionType": ""
    }
  ],
  "labelCustomMessage": "",
  "labelSize": "",
  "rateId": "",
  "returnTo": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shippingQuoteId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/shipment/create_from_shipping_quote")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/shipment/create_from_shipping_quote"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\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  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/shipment/create_from_shipping_quote")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/shipment/create_from_shipping_quote")
  .header("content-type", "application/json")
  .body("{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  additionalOptions: [
    {
      additionalCost: {
        currency: '',
        value: ''
      },
      optionType: ''
    }
  ],
  labelCustomMessage: '',
  labelSize: '',
  rateId: '',
  returnTo: {
    companyName: '',
    contactAddress: {
      addressLine1: '',
      addressLine2: '',
      city: '',
      countryCode: '',
      county: '',
      postalCode: '',
      stateOrProvince: ''
    },
    fullName: '',
    primaryPhone: {
      phoneNumber: ''
    }
  },
  shippingQuoteId: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/shipment/create_from_shipping_quote',
  headers: {'content-type': 'application/json'},
  data: {
    additionalOptions: [{additionalCost: {currency: '', value: ''}, optionType: ''}],
    labelCustomMessage: '',
    labelSize: '',
    rateId: '',
    returnTo: {
      companyName: '',
      contactAddress: {
        addressLine1: '',
        addressLine2: '',
        city: '',
        countryCode: '',
        county: '',
        postalCode: '',
        stateOrProvince: ''
      },
      fullName: '',
      primaryPhone: {phoneNumber: ''}
    },
    shippingQuoteId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/shipment/create_from_shipping_quote';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalOptions":[{"additionalCost":{"currency":"","value":""},"optionType":""}],"labelCustomMessage":"","labelSize":"","rateId":"","returnTo":{"companyName":"","contactAddress":{"addressLine1":"","addressLine2":"","city":"","countryCode":"","county":"","postalCode":"","stateOrProvince":""},"fullName":"","primaryPhone":{"phoneNumber":""}},"shippingQuoteId":""}'
};

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}}/shipment/create_from_shipping_quote',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalOptions": [\n    {\n      "additionalCost": {\n        "currency": "",\n        "value": ""\n      },\n      "optionType": ""\n    }\n  ],\n  "labelCustomMessage": "",\n  "labelSize": "",\n  "rateId": "",\n  "returnTo": {\n    "companyName": "",\n    "contactAddress": {\n      "addressLine1": "",\n      "addressLine2": "",\n      "city": "",\n      "countryCode": "",\n      "county": "",\n      "postalCode": "",\n      "stateOrProvince": ""\n    },\n    "fullName": "",\n    "primaryPhone": {\n      "phoneNumber": ""\n    }\n  },\n  "shippingQuoteId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/shipment/create_from_shipping_quote")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({
  additionalOptions: [{additionalCost: {currency: '', value: ''}, optionType: ''}],
  labelCustomMessage: '',
  labelSize: '',
  rateId: '',
  returnTo: {
    companyName: '',
    contactAddress: {
      addressLine1: '',
      addressLine2: '',
      city: '',
      countryCode: '',
      county: '',
      postalCode: '',
      stateOrProvince: ''
    },
    fullName: '',
    primaryPhone: {phoneNumber: ''}
  },
  shippingQuoteId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/shipment/create_from_shipping_quote',
  headers: {'content-type': 'application/json'},
  body: {
    additionalOptions: [{additionalCost: {currency: '', value: ''}, optionType: ''}],
    labelCustomMessage: '',
    labelSize: '',
    rateId: '',
    returnTo: {
      companyName: '',
      contactAddress: {
        addressLine1: '',
        addressLine2: '',
        city: '',
        countryCode: '',
        county: '',
        postalCode: '',
        stateOrProvince: ''
      },
      fullName: '',
      primaryPhone: {phoneNumber: ''}
    },
    shippingQuoteId: ''
  },
  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}}/shipment/create_from_shipping_quote');

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

req.type('json');
req.send({
  additionalOptions: [
    {
      additionalCost: {
        currency: '',
        value: ''
      },
      optionType: ''
    }
  ],
  labelCustomMessage: '',
  labelSize: '',
  rateId: '',
  returnTo: {
    companyName: '',
    contactAddress: {
      addressLine1: '',
      addressLine2: '',
      city: '',
      countryCode: '',
      county: '',
      postalCode: '',
      stateOrProvince: ''
    },
    fullName: '',
    primaryPhone: {
      phoneNumber: ''
    }
  },
  shippingQuoteId: ''
});

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}}/shipment/create_from_shipping_quote',
  headers: {'content-type': 'application/json'},
  data: {
    additionalOptions: [{additionalCost: {currency: '', value: ''}, optionType: ''}],
    labelCustomMessage: '',
    labelSize: '',
    rateId: '',
    returnTo: {
      companyName: '',
      contactAddress: {
        addressLine1: '',
        addressLine2: '',
        city: '',
        countryCode: '',
        county: '',
        postalCode: '',
        stateOrProvince: ''
      },
      fullName: '',
      primaryPhone: {phoneNumber: ''}
    },
    shippingQuoteId: ''
  }
};

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

const url = '{{baseUrl}}/shipment/create_from_shipping_quote';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalOptions":[{"additionalCost":{"currency":"","value":""},"optionType":""}],"labelCustomMessage":"","labelSize":"","rateId":"","returnTo":{"companyName":"","contactAddress":{"addressLine1":"","addressLine2":"","city":"","countryCode":"","county":"","postalCode":"","stateOrProvince":""},"fullName":"","primaryPhone":{"phoneNumber":""}},"shippingQuoteId":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"additionalOptions": @[ @{ @"additionalCost": @{ @"currency": @"", @"value": @"" }, @"optionType": @"" } ],
                              @"labelCustomMessage": @"",
                              @"labelSize": @"",
                              @"rateId": @"",
                              @"returnTo": @{ @"companyName": @"", @"contactAddress": @{ @"addressLine1": @"", @"addressLine2": @"", @"city": @"", @"countryCode": @"", @"county": @"", @"postalCode": @"", @"stateOrProvince": @"" }, @"fullName": @"", @"primaryPhone": @{ @"phoneNumber": @"" } },
                              @"shippingQuoteId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/shipment/create_from_shipping_quote"]
                                                       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}}/shipment/create_from_shipping_quote" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/shipment/create_from_shipping_quote",
  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([
    'additionalOptions' => [
        [
                'additionalCost' => [
                                'currency' => '',
                                'value' => ''
                ],
                'optionType' => ''
        ]
    ],
    'labelCustomMessage' => '',
    'labelSize' => '',
    'rateId' => '',
    'returnTo' => [
        'companyName' => '',
        'contactAddress' => [
                'addressLine1' => '',
                'addressLine2' => '',
                'city' => '',
                'countryCode' => '',
                'county' => '',
                'postalCode' => '',
                'stateOrProvince' => ''
        ],
        'fullName' => '',
        'primaryPhone' => [
                'phoneNumber' => ''
        ]
    ],
    'shippingQuoteId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/shipment/create_from_shipping_quote', [
  'body' => '{
  "additionalOptions": [
    {
      "additionalCost": {
        "currency": "",
        "value": ""
      },
      "optionType": ""
    }
  ],
  "labelCustomMessage": "",
  "labelSize": "",
  "rateId": "",
  "returnTo": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shippingQuoteId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalOptions' => [
    [
        'additionalCost' => [
                'currency' => '',
                'value' => ''
        ],
        'optionType' => ''
    ]
  ],
  'labelCustomMessage' => '',
  'labelSize' => '',
  'rateId' => '',
  'returnTo' => [
    'companyName' => '',
    'contactAddress' => [
        'addressLine1' => '',
        'addressLine2' => '',
        'city' => '',
        'countryCode' => '',
        'county' => '',
        'postalCode' => '',
        'stateOrProvince' => ''
    ],
    'fullName' => '',
    'primaryPhone' => [
        'phoneNumber' => ''
    ]
  ],
  'shippingQuoteId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalOptions' => [
    [
        'additionalCost' => [
                'currency' => '',
                'value' => ''
        ],
        'optionType' => ''
    ]
  ],
  'labelCustomMessage' => '',
  'labelSize' => '',
  'rateId' => '',
  'returnTo' => [
    'companyName' => '',
    'contactAddress' => [
        'addressLine1' => '',
        'addressLine2' => '',
        'city' => '',
        'countryCode' => '',
        'county' => '',
        'postalCode' => '',
        'stateOrProvince' => ''
    ],
    'fullName' => '',
    'primaryPhone' => [
        'phoneNumber' => ''
    ]
  ],
  'shippingQuoteId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/shipment/create_from_shipping_quote');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/shipment/create_from_shipping_quote' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalOptions": [
    {
      "additionalCost": {
        "currency": "",
        "value": ""
      },
      "optionType": ""
    }
  ],
  "labelCustomMessage": "",
  "labelSize": "",
  "rateId": "",
  "returnTo": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shippingQuoteId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/shipment/create_from_shipping_quote' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalOptions": [
    {
      "additionalCost": {
        "currency": "",
        "value": ""
      },
      "optionType": ""
    }
  ],
  "labelCustomMessage": "",
  "labelSize": "",
  "rateId": "",
  "returnTo": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shippingQuoteId": ""
}'
import http.client

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

payload = "{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/shipment/create_from_shipping_quote"

payload = {
    "additionalOptions": [
        {
            "additionalCost": {
                "currency": "",
                "value": ""
            },
            "optionType": ""
        }
    ],
    "labelCustomMessage": "",
    "labelSize": "",
    "rateId": "",
    "returnTo": {
        "companyName": "",
        "contactAddress": {
            "addressLine1": "",
            "addressLine2": "",
            "city": "",
            "countryCode": "",
            "county": "",
            "postalCode": "",
            "stateOrProvince": ""
        },
        "fullName": "",
        "primaryPhone": { "phoneNumber": "" }
    },
    "shippingQuoteId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/shipment/create_from_shipping_quote"

payload <- "{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\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}}/shipment/create_from_shipping_quote")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\n}"

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

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

response = conn.post('/baseUrl/shipment/create_from_shipping_quote') do |req|
  req.body = "{\n  \"additionalOptions\": [\n    {\n      \"additionalCost\": {\n        \"currency\": \"\",\n        \"value\": \"\"\n      },\n      \"optionType\": \"\"\n    }\n  ],\n  \"labelCustomMessage\": \"\",\n  \"labelSize\": \"\",\n  \"rateId\": \"\",\n  \"returnTo\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shippingQuoteId\": \"\"\n}"
end

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

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

    let payload = json!({
        "additionalOptions": (
            json!({
                "additionalCost": json!({
                    "currency": "",
                    "value": ""
                }),
                "optionType": ""
            })
        ),
        "labelCustomMessage": "",
        "labelSize": "",
        "rateId": "",
        "returnTo": json!({
            "companyName": "",
            "contactAddress": json!({
                "addressLine1": "",
                "addressLine2": "",
                "city": "",
                "countryCode": "",
                "county": "",
                "postalCode": "",
                "stateOrProvince": ""
            }),
            "fullName": "",
            "primaryPhone": json!({"phoneNumber": ""})
        }),
        "shippingQuoteId": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/shipment/create_from_shipping_quote \
  --header 'content-type: application/json' \
  --data '{
  "additionalOptions": [
    {
      "additionalCost": {
        "currency": "",
        "value": ""
      },
      "optionType": ""
    }
  ],
  "labelCustomMessage": "",
  "labelSize": "",
  "rateId": "",
  "returnTo": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shippingQuoteId": ""
}'
echo '{
  "additionalOptions": [
    {
      "additionalCost": {
        "currency": "",
        "value": ""
      },
      "optionType": ""
    }
  ],
  "labelCustomMessage": "",
  "labelSize": "",
  "rateId": "",
  "returnTo": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shippingQuoteId": ""
}' |  \
  http POST {{baseUrl}}/shipment/create_from_shipping_quote \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalOptions": [\n    {\n      "additionalCost": {\n        "currency": "",\n        "value": ""\n      },\n      "optionType": ""\n    }\n  ],\n  "labelCustomMessage": "",\n  "labelSize": "",\n  "rateId": "",\n  "returnTo": {\n    "companyName": "",\n    "contactAddress": {\n      "addressLine1": "",\n      "addressLine2": "",\n      "city": "",\n      "countryCode": "",\n      "county": "",\n      "postalCode": "",\n      "stateOrProvince": ""\n    },\n    "fullName": "",\n    "primaryPhone": {\n      "phoneNumber": ""\n    }\n  },\n  "shippingQuoteId": ""\n}' \
  --output-document \
  - {{baseUrl}}/shipment/create_from_shipping_quote
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalOptions": [
    [
      "additionalCost": [
        "currency": "",
        "value": ""
      ],
      "optionType": ""
    ]
  ],
  "labelCustomMessage": "",
  "labelSize": "",
  "rateId": "",
  "returnTo": [
    "companyName": "",
    "contactAddress": [
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    ],
    "fullName": "",
    "primaryPhone": ["phoneNumber": ""]
  ],
  "shippingQuoteId": ""
] as [String : Any]

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

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

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

dataTask.resume()
GET downloadLabelFile
{{baseUrl}}/shipment/:shipmentId/download_label_file
QUERY PARAMS

shipmentId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/shipment/:shipmentId/download_label_file");

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

(client/get "{{baseUrl}}/shipment/:shipmentId/download_label_file")
require "http/client"

url = "{{baseUrl}}/shipment/:shipmentId/download_label_file"

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

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

func main() {

	url := "{{baseUrl}}/shipment/:shipmentId/download_label_file"

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

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

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

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

}
GET /baseUrl/shipment/:shipmentId/download_label_file HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/shipment/:shipmentId/download_label_file"))
    .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}}/shipment/:shipmentId/download_label_file")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/shipment/:shipmentId/download_label_file")
  .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}}/shipment/:shipmentId/download_label_file');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/shipment/:shipmentId/download_label_file'
};

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/shipment/:shipmentId/download_label_file")
  .get()
  .build()

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

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

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/shipment/:shipmentId/download_label_file'
};

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

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

const req = unirest('GET', '{{baseUrl}}/shipment/:shipmentId/download_label_file');

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}}/shipment/:shipmentId/download_label_file'
};

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

const url = '{{baseUrl}}/shipment/:shipmentId/download_label_file';
const options = {method: 'GET'};

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

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

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

let uri = Uri.of_string "{{baseUrl}}/shipment/:shipmentId/download_label_file" in

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

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

curl_close($curl);

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

echo $response->getBody();
setUrl('{{baseUrl}}/shipment/:shipmentId/download_label_file');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/shipment/:shipmentId/download_label_file")

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

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

url = "{{baseUrl}}/shipment/:shipmentId/download_label_file"

response = requests.get(url)

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

url <- "{{baseUrl}}/shipment/:shipmentId/download_label_file"

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

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

url = URI("{{baseUrl}}/shipment/:shipmentId/download_label_file")

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

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

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

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

response = conn.get('/baseUrl/shipment/:shipmentId/download_label_file') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

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

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

dataTask.resume()
GET getShipment
{{baseUrl}}/shipment/:shipmentId
QUERY PARAMS

shipmentId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/shipment/:shipmentId");

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

(client/get "{{baseUrl}}/shipment/:shipmentId")
require "http/client"

url = "{{baseUrl}}/shipment/:shipmentId"

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

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

func main() {

	url := "{{baseUrl}}/shipment/:shipmentId"

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

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

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

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

}
GET /baseUrl/shipment/:shipmentId HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/shipment/:shipmentId"))
    .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}}/shipment/:shipmentId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/shipment/:shipmentId")
  .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}}/shipment/:shipmentId');

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

const options = {method: 'GET', url: '{{baseUrl}}/shipment/:shipmentId'};

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

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

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

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

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

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/shipment/:shipmentId'};

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

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

const req = unirest('GET', '{{baseUrl}}/shipment/:shipmentId');

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}}/shipment/:shipmentId'};

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

const url = '{{baseUrl}}/shipment/:shipmentId';
const options = {method: 'GET'};

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

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

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

let uri = Uri.of_string "{{baseUrl}}/shipment/:shipmentId" in

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("GET", "/baseUrl/shipment/:shipmentId")

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

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

url = "{{baseUrl}}/shipment/:shipmentId"

response = requests.get(url)

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

url <- "{{baseUrl}}/shipment/:shipmentId"

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

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

url = URI("{{baseUrl}}/shipment/:shipmentId")

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

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

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

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

response = conn.get('/baseUrl/shipment/:shipmentId') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

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

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

dataTask.resume()
POST createShippingQuote
{{baseUrl}}/shipping_quote
HEADERS

X-EBAY-C-MARKETPLACE-ID
BODY json

{
  "orders": [
    {
      "channel": "",
      "orderId": ""
    }
  ],
  "packageSpecification": {
    "dimensions": {
      "height": "",
      "length": "",
      "unit": "",
      "width": ""
    },
    "weight": {
      "unit": "",
      "value": ""
    }
  },
  "shipFrom": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shipTo": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\n}");

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

(client/post "{{baseUrl}}/shipping_quote" {:headers {:x-ebay-c-marketplace-id ""}
                                                           :content-type :json
                                                           :form-params {:orders [{:channel ""
                                                                                   :orderId ""}]
                                                                         :packageSpecification {:dimensions {:height ""
                                                                                                             :length ""
                                                                                                             :unit ""
                                                                                                             :width ""}
                                                                                                :weight {:unit ""
                                                                                                         :value ""}}
                                                                         :shipFrom {:companyName ""
                                                                                    :contactAddress {:addressLine1 ""
                                                                                                     :addressLine2 ""
                                                                                                     :city ""
                                                                                                     :countryCode ""
                                                                                                     :county ""
                                                                                                     :postalCode ""
                                                                                                     :stateOrProvince ""}
                                                                                    :fullName ""
                                                                                    :primaryPhone {:phoneNumber ""}}
                                                                         :shipTo {}}})
require "http/client"

url = "{{baseUrl}}/shipping_quote"
headers = HTTP::Headers{
  "x-ebay-c-marketplace-id" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\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}}/shipping_quote"),
    Headers =
    {
        { "x-ebay-c-marketplace-id", "" },
    },
    Content = new StringContent("{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\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}}/shipping_quote");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-ebay-c-marketplace-id", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\n}")

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

	req.Header.Add("x-ebay-c-marketplace-id", "")
	req.Header.Add("content-type", "application/json")

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

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

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

}
POST /baseUrl/shipping_quote HTTP/1.1
X-Ebay-C-Marketplace-Id: 
Content-Type: application/json
Host: example.com
Content-Length: 598

{
  "orders": [
    {
      "channel": "",
      "orderId": ""
    }
  ],
  "packageSpecification": {
    "dimensions": {
      "height": "",
      "length": "",
      "unit": "",
      "width": ""
    },
    "weight": {
      "unit": "",
      "value": ""
    }
  },
  "shipFrom": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shipTo": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/shipping_quote")
  .setHeader("x-ebay-c-marketplace-id", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/shipping_quote"))
    .header("x-ebay-c-marketplace-id", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\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  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/shipping_quote")
  .post(body)
  .addHeader("x-ebay-c-marketplace-id", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/shipping_quote")
  .header("x-ebay-c-marketplace-id", "")
  .header("content-type", "application/json")
  .body("{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\n}")
  .asString();
const data = JSON.stringify({
  orders: [
    {
      channel: '',
      orderId: ''
    }
  ],
  packageSpecification: {
    dimensions: {
      height: '',
      length: '',
      unit: '',
      width: ''
    },
    weight: {
      unit: '',
      value: ''
    }
  },
  shipFrom: {
    companyName: '',
    contactAddress: {
      addressLine1: '',
      addressLine2: '',
      city: '',
      countryCode: '',
      county: '',
      postalCode: '',
      stateOrProvince: ''
    },
    fullName: '',
    primaryPhone: {
      phoneNumber: ''
    }
  },
  shipTo: {}
});

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

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

xhr.open('POST', '{{baseUrl}}/shipping_quote');
xhr.setRequestHeader('x-ebay-c-marketplace-id', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/shipping_quote',
  headers: {'x-ebay-c-marketplace-id': '', 'content-type': 'application/json'},
  data: {
    orders: [{channel: '', orderId: ''}],
    packageSpecification: {
      dimensions: {height: '', length: '', unit: '', width: ''},
      weight: {unit: '', value: ''}
    },
    shipFrom: {
      companyName: '',
      contactAddress: {
        addressLine1: '',
        addressLine2: '',
        city: '',
        countryCode: '',
        county: '',
        postalCode: '',
        stateOrProvince: ''
      },
      fullName: '',
      primaryPhone: {phoneNumber: ''}
    },
    shipTo: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/shipping_quote';
const options = {
  method: 'POST',
  headers: {'x-ebay-c-marketplace-id': '', 'content-type': 'application/json'},
  body: '{"orders":[{"channel":"","orderId":""}],"packageSpecification":{"dimensions":{"height":"","length":"","unit":"","width":""},"weight":{"unit":"","value":""}},"shipFrom":{"companyName":"","contactAddress":{"addressLine1":"","addressLine2":"","city":"","countryCode":"","county":"","postalCode":"","stateOrProvince":""},"fullName":"","primaryPhone":{"phoneNumber":""}},"shipTo":{}}'
};

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}}/shipping_quote',
  method: 'POST',
  headers: {
    'x-ebay-c-marketplace-id': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "orders": [\n    {\n      "channel": "",\n      "orderId": ""\n    }\n  ],\n  "packageSpecification": {\n    "dimensions": {\n      "height": "",\n      "length": "",\n      "unit": "",\n      "width": ""\n    },\n    "weight": {\n      "unit": "",\n      "value": ""\n    }\n  },\n  "shipFrom": {\n    "companyName": "",\n    "contactAddress": {\n      "addressLine1": "",\n      "addressLine2": "",\n      "city": "",\n      "countryCode": "",\n      "county": "",\n      "postalCode": "",\n      "stateOrProvince": ""\n    },\n    "fullName": "",\n    "primaryPhone": {\n      "phoneNumber": ""\n    }\n  },\n  "shipTo": {}\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/shipping_quote")
  .post(body)
  .addHeader("x-ebay-c-marketplace-id", "")
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/shipping_quote',
  headers: {
    'x-ebay-c-marketplace-id': '',
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  orders: [{channel: '', orderId: ''}],
  packageSpecification: {
    dimensions: {height: '', length: '', unit: '', width: ''},
    weight: {unit: '', value: ''}
  },
  shipFrom: {
    companyName: '',
    contactAddress: {
      addressLine1: '',
      addressLine2: '',
      city: '',
      countryCode: '',
      county: '',
      postalCode: '',
      stateOrProvince: ''
    },
    fullName: '',
    primaryPhone: {phoneNumber: ''}
  },
  shipTo: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/shipping_quote',
  headers: {'x-ebay-c-marketplace-id': '', 'content-type': 'application/json'},
  body: {
    orders: [{channel: '', orderId: ''}],
    packageSpecification: {
      dimensions: {height: '', length: '', unit: '', width: ''},
      weight: {unit: '', value: ''}
    },
    shipFrom: {
      companyName: '',
      contactAddress: {
        addressLine1: '',
        addressLine2: '',
        city: '',
        countryCode: '',
        county: '',
        postalCode: '',
        stateOrProvince: ''
      },
      fullName: '',
      primaryPhone: {phoneNumber: ''}
    },
    shipTo: {}
  },
  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}}/shipping_quote');

req.headers({
  'x-ebay-c-marketplace-id': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  orders: [
    {
      channel: '',
      orderId: ''
    }
  ],
  packageSpecification: {
    dimensions: {
      height: '',
      length: '',
      unit: '',
      width: ''
    },
    weight: {
      unit: '',
      value: ''
    }
  },
  shipFrom: {
    companyName: '',
    contactAddress: {
      addressLine1: '',
      addressLine2: '',
      city: '',
      countryCode: '',
      county: '',
      postalCode: '',
      stateOrProvince: ''
    },
    fullName: '',
    primaryPhone: {
      phoneNumber: ''
    }
  },
  shipTo: {}
});

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}}/shipping_quote',
  headers: {'x-ebay-c-marketplace-id': '', 'content-type': 'application/json'},
  data: {
    orders: [{channel: '', orderId: ''}],
    packageSpecification: {
      dimensions: {height: '', length: '', unit: '', width: ''},
      weight: {unit: '', value: ''}
    },
    shipFrom: {
      companyName: '',
      contactAddress: {
        addressLine1: '',
        addressLine2: '',
        city: '',
        countryCode: '',
        county: '',
        postalCode: '',
        stateOrProvince: ''
      },
      fullName: '',
      primaryPhone: {phoneNumber: ''}
    },
    shipTo: {}
  }
};

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

const url = '{{baseUrl}}/shipping_quote';
const options = {
  method: 'POST',
  headers: {'x-ebay-c-marketplace-id': '', 'content-type': 'application/json'},
  body: '{"orders":[{"channel":"","orderId":""}],"packageSpecification":{"dimensions":{"height":"","length":"","unit":"","width":""},"weight":{"unit":"","value":""}},"shipFrom":{"companyName":"","contactAddress":{"addressLine1":"","addressLine2":"","city":"","countryCode":"","county":"","postalCode":"","stateOrProvince":""},"fullName":"","primaryPhone":{"phoneNumber":""}},"shipTo":{}}'
};

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

NSDictionary *headers = @{ @"x-ebay-c-marketplace-id": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"orders": @[ @{ @"channel": @"", @"orderId": @"" } ],
                              @"packageSpecification": @{ @"dimensions": @{ @"height": @"", @"length": @"", @"unit": @"", @"width": @"" }, @"weight": @{ @"unit": @"", @"value": @"" } },
                              @"shipFrom": @{ @"companyName": @"", @"contactAddress": @{ @"addressLine1": @"", @"addressLine2": @"", @"city": @"", @"countryCode": @"", @"county": @"", @"postalCode": @"", @"stateOrProvince": @"" }, @"fullName": @"", @"primaryPhone": @{ @"phoneNumber": @"" } },
                              @"shipTo": @{  } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/shipping_quote"]
                                                       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}}/shipping_quote" in
let headers = Header.add_list (Header.init ()) [
  ("x-ebay-c-marketplace-id", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/shipping_quote",
  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([
    'orders' => [
        [
                'channel' => '',
                'orderId' => ''
        ]
    ],
    'packageSpecification' => [
        'dimensions' => [
                'height' => '',
                'length' => '',
                'unit' => '',
                'width' => ''
        ],
        'weight' => [
                'unit' => '',
                'value' => ''
        ]
    ],
    'shipFrom' => [
        'companyName' => '',
        'contactAddress' => [
                'addressLine1' => '',
                'addressLine2' => '',
                'city' => '',
                'countryCode' => '',
                'county' => '',
                'postalCode' => '',
                'stateOrProvince' => ''
        ],
        'fullName' => '',
        'primaryPhone' => [
                'phoneNumber' => ''
        ]
    ],
    'shipTo' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-ebay-c-marketplace-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/shipping_quote', [
  'body' => '{
  "orders": [
    {
      "channel": "",
      "orderId": ""
    }
  ],
  "packageSpecification": {
    "dimensions": {
      "height": "",
      "length": "",
      "unit": "",
      "width": ""
    },
    "weight": {
      "unit": "",
      "value": ""
    }
  },
  "shipFrom": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shipTo": {}
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-ebay-c-marketplace-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-ebay-c-marketplace-id' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'orders' => [
    [
        'channel' => '',
        'orderId' => ''
    ]
  ],
  'packageSpecification' => [
    'dimensions' => [
        'height' => '',
        'length' => '',
        'unit' => '',
        'width' => ''
    ],
    'weight' => [
        'unit' => '',
        'value' => ''
    ]
  ],
  'shipFrom' => [
    'companyName' => '',
    'contactAddress' => [
        'addressLine1' => '',
        'addressLine2' => '',
        'city' => '',
        'countryCode' => '',
        'county' => '',
        'postalCode' => '',
        'stateOrProvince' => ''
    ],
    'fullName' => '',
    'primaryPhone' => [
        'phoneNumber' => ''
    ]
  ],
  'shipTo' => [
    
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'orders' => [
    [
        'channel' => '',
        'orderId' => ''
    ]
  ],
  'packageSpecification' => [
    'dimensions' => [
        'height' => '',
        'length' => '',
        'unit' => '',
        'width' => ''
    ],
    'weight' => [
        'unit' => '',
        'value' => ''
    ]
  ],
  'shipFrom' => [
    'companyName' => '',
    'contactAddress' => [
        'addressLine1' => '',
        'addressLine2' => '',
        'city' => '',
        'countryCode' => '',
        'county' => '',
        'postalCode' => '',
        'stateOrProvince' => ''
    ],
    'fullName' => '',
    'primaryPhone' => [
        'phoneNumber' => ''
    ]
  ],
  'shipTo' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/shipping_quote');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-ebay-c-marketplace-id' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-ebay-c-marketplace-id", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/shipping_quote' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "orders": [
    {
      "channel": "",
      "orderId": ""
    }
  ],
  "packageSpecification": {
    "dimensions": {
      "height": "",
      "length": "",
      "unit": "",
      "width": ""
    },
    "weight": {
      "unit": "",
      "value": ""
    }
  },
  "shipFrom": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shipTo": {}
}'
$headers=@{}
$headers.Add("x-ebay-c-marketplace-id", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/shipping_quote' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "orders": [
    {
      "channel": "",
      "orderId": ""
    }
  ],
  "packageSpecification": {
    "dimensions": {
      "height": "",
      "length": "",
      "unit": "",
      "width": ""
    },
    "weight": {
      "unit": "",
      "value": ""
    }
  },
  "shipFrom": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shipTo": {}
}'
import http.client

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

payload = "{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\n}"

headers = {
    'x-ebay-c-marketplace-id': "",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/shipping_quote"

payload = {
    "orders": [
        {
            "channel": "",
            "orderId": ""
        }
    ],
    "packageSpecification": {
        "dimensions": {
            "height": "",
            "length": "",
            "unit": "",
            "width": ""
        },
        "weight": {
            "unit": "",
            "value": ""
        }
    },
    "shipFrom": {
        "companyName": "",
        "contactAddress": {
            "addressLine1": "",
            "addressLine2": "",
            "city": "",
            "countryCode": "",
            "county": "",
            "postalCode": "",
            "stateOrProvince": ""
        },
        "fullName": "",
        "primaryPhone": { "phoneNumber": "" }
    },
    "shipTo": {}
}
headers = {
    "x-ebay-c-marketplace-id": "",
    "content-type": "application/json"
}

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

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

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

payload <- "{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-ebay-c-marketplace-id' = ''), content_type("application/json"), encode = encode)

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

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

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

request = Net::HTTP::Post.new(url)
request["x-ebay-c-marketplace-id"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\n}"

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

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

response = conn.post('/baseUrl/shipping_quote') do |req|
  req.headers['x-ebay-c-marketplace-id'] = ''
  req.body = "{\n  \"orders\": [\n    {\n      \"channel\": \"\",\n      \"orderId\": \"\"\n    }\n  ],\n  \"packageSpecification\": {\n    \"dimensions\": {\n      \"height\": \"\",\n      \"length\": \"\",\n      \"unit\": \"\",\n      \"width\": \"\"\n    },\n    \"weight\": {\n      \"unit\": \"\",\n      \"value\": \"\"\n    }\n  },\n  \"shipFrom\": {\n    \"companyName\": \"\",\n    \"contactAddress\": {\n      \"addressLine1\": \"\",\n      \"addressLine2\": \"\",\n      \"city\": \"\",\n      \"countryCode\": \"\",\n      \"county\": \"\",\n      \"postalCode\": \"\",\n      \"stateOrProvince\": \"\"\n    },\n    \"fullName\": \"\",\n    \"primaryPhone\": {\n      \"phoneNumber\": \"\"\n    }\n  },\n  \"shipTo\": {}\n}"
end

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

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

    let payload = json!({
        "orders": (
            json!({
                "channel": "",
                "orderId": ""
            })
        ),
        "packageSpecification": json!({
            "dimensions": json!({
                "height": "",
                "length": "",
                "unit": "",
                "width": ""
            }),
            "weight": json!({
                "unit": "",
                "value": ""
            })
        }),
        "shipFrom": json!({
            "companyName": "",
            "contactAddress": json!({
                "addressLine1": "",
                "addressLine2": "",
                "city": "",
                "countryCode": "",
                "county": "",
                "postalCode": "",
                "stateOrProvince": ""
            }),
            "fullName": "",
            "primaryPhone": json!({"phoneNumber": ""})
        }),
        "shipTo": json!({})
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/shipping_quote \
  --header 'content-type: application/json' \
  --header 'x-ebay-c-marketplace-id: ' \
  --data '{
  "orders": [
    {
      "channel": "",
      "orderId": ""
    }
  ],
  "packageSpecification": {
    "dimensions": {
      "height": "",
      "length": "",
      "unit": "",
      "width": ""
    },
    "weight": {
      "unit": "",
      "value": ""
    }
  },
  "shipFrom": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shipTo": {}
}'
echo '{
  "orders": [
    {
      "channel": "",
      "orderId": ""
    }
  ],
  "packageSpecification": {
    "dimensions": {
      "height": "",
      "length": "",
      "unit": "",
      "width": ""
    },
    "weight": {
      "unit": "",
      "value": ""
    }
  },
  "shipFrom": {
    "companyName": "",
    "contactAddress": {
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    },
    "fullName": "",
    "primaryPhone": {
      "phoneNumber": ""
    }
  },
  "shipTo": {}
}' |  \
  http POST {{baseUrl}}/shipping_quote \
  content-type:application/json \
  x-ebay-c-marketplace-id:''
wget --quiet \
  --method POST \
  --header 'x-ebay-c-marketplace-id: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "orders": [\n    {\n      "channel": "",\n      "orderId": ""\n    }\n  ],\n  "packageSpecification": {\n    "dimensions": {\n      "height": "",\n      "length": "",\n      "unit": "",\n      "width": ""\n    },\n    "weight": {\n      "unit": "",\n      "value": ""\n    }\n  },\n  "shipFrom": {\n    "companyName": "",\n    "contactAddress": {\n      "addressLine1": "",\n      "addressLine2": "",\n      "city": "",\n      "countryCode": "",\n      "county": "",\n      "postalCode": "",\n      "stateOrProvince": ""\n    },\n    "fullName": "",\n    "primaryPhone": {\n      "phoneNumber": ""\n    }\n  },\n  "shipTo": {}\n}' \
  --output-document \
  - {{baseUrl}}/shipping_quote
import Foundation

let headers = [
  "x-ebay-c-marketplace-id": "",
  "content-type": "application/json"
]
let parameters = [
  "orders": [
    [
      "channel": "",
      "orderId": ""
    ]
  ],
  "packageSpecification": [
    "dimensions": [
      "height": "",
      "length": "",
      "unit": "",
      "width": ""
    ],
    "weight": [
      "unit": "",
      "value": ""
    ]
  ],
  "shipFrom": [
    "companyName": "",
    "contactAddress": [
      "addressLine1": "",
      "addressLine2": "",
      "city": "",
      "countryCode": "",
      "county": "",
      "postalCode": "",
      "stateOrProvince": ""
    ],
    "fullName": "",
    "primaryPhone": ["phoneNumber": ""]
  ],
  "shipTo": []
] as [String : Any]

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

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

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

dataTask.resume()
GET getShippingQuote
{{baseUrl}}/shipping_quote/:shippingQuoteId
QUERY PARAMS

shippingQuoteId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/shipping_quote/:shippingQuoteId");

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

(client/get "{{baseUrl}}/shipping_quote/:shippingQuoteId")
require "http/client"

url = "{{baseUrl}}/shipping_quote/:shippingQuoteId"

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

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

func main() {

	url := "{{baseUrl}}/shipping_quote/:shippingQuoteId"

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

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

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

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

}
GET /baseUrl/shipping_quote/:shippingQuoteId HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/shipping_quote/:shippingQuoteId"))
    .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}}/shipping_quote/:shippingQuoteId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/shipping_quote/:shippingQuoteId")
  .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}}/shipping_quote/:shippingQuoteId');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/shipping_quote/:shippingQuoteId'
};

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

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

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

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

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

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

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/shipping_quote/:shippingQuoteId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/shipping_quote/:shippingQuoteId');

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}}/shipping_quote/:shippingQuoteId'
};

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

const url = '{{baseUrl}}/shipping_quote/:shippingQuoteId';
const options = {method: 'GET'};

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

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

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

let uri = Uri.of_string "{{baseUrl}}/shipping_quote/:shippingQuoteId" in

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("GET", "/baseUrl/shipping_quote/:shippingQuoteId")

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

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

url = "{{baseUrl}}/shipping_quote/:shippingQuoteId"

response = requests.get(url)

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

url <- "{{baseUrl}}/shipping_quote/:shippingQuoteId"

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

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

url = URI("{{baseUrl}}/shipping_quote/:shippingQuoteId")

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

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

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

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

response = conn.get('/baseUrl/shipping_quote/:shippingQuoteId') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

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

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

dataTask.resume()