POST /api/v/5/source/api/priceestimate/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6 HTTP/1.1
Content-Type: application/json
Host: api.print.io
Content-Length: 326

{
  "ShipToAddress": {
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016"
  },
  "Items": [{
    "Quanity": 1,
    "SKU": "CanvsWrp-ImgWrp-10x10",
    "ShipType": "standard"
  }],
  "Payment": {
    "CurrencyCode": "USD"
  }
}
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://api.print.io/api/v/5/source/api/priceestimate/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6",
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "processData": false,
  "data": "{\n  \"ShipToAddress\": {\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\"\n  },\n  \"Items\": [{\n    \"Quanity\": 1,\n    \"SKU\": \"CanvsWrp-ImgWrp-10x10\",\n    \"ShipType\": \"standard\"\n  }],\n  \"Payment\": {\n    \"CurrencyCode\": \"USD\"\n  }\n}"
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
fetch("https://api.print.io/api/v/5/source/api/priceestimate/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": {
    "ShipToAddress": {
      "Line1": "79 Madison Ave",
      "Line2": "Suite 228",
      "City": "New York",
      "State": "NY",
      "CountryCode": "US",
      "PostalCode": "10016"
    },
    "Items": [
      {
        "Quanity": 1,
        "SKU": "CanvsWrp-ImgWrp-10x10",
        "ShipType": "standard"
      }
    ],
    "Payment": {
      "CurrencyCode": "USD"
    }
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.log(err);
});
var data = JSON.stringify({
  "ShipToAddress": {
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016"
  },
  "Items": [
    {
      "Quanity": 1,
      "SKU": "CanvsWrp-ImgWrp-10x10",
      "ShipType": "standard"
    }
  ],
  "Payment": {
    "CurrencyCode": "USD"
  }
});

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

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

xhr.open("POST", "https://api.print.io/api/v/5/source/api/priceestimate/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6");
xhr.setRequestHeader("content-type", "application/json");

xhr.send(data);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.print.io/api/v/5/source/api/priceestimate/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\n  \"ShipToAddress\": {\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\"\n  },\n  \"Items\": [{\n    \"Quanity\": 1,\n    \"SKU\": \"CanvsWrp-ImgWrp-10x10\",\n    \"ShipType\": \"standard\"\n  }],\n  \"Payment\": {\n    \"CurrencyCode\": \"USD\"\n  }\n}",
  CURLOPT_HTTPHEADER => array(
    "content-type: application/json"
  ),
));

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
<?php

$request = new HttpRequest();
$request->setUrl('https://api.print.io/api/v/5/source/api/priceestimate/');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData(array(
  'recipeid' => 'f255af6f-9614-4fe2-aa8b-1b77b936d9d6'
));

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

$request->setBody('{
  "ShipToAddress": {
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016"
  },
  "Items": [{
    "Quanity": 1,
    "SKU": "CanvsWrp-ImgWrp-10x10",
    "ShipType": "standard"
  }],
  "Payment": {
    "CurrencyCode": "USD"
  }
}');

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{
  "ShipToAddress": {
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016"
  },
  "Items": [{
    "Quanity": 1,
    "SKU": "CanvsWrp-ImgWrp-10x10",
    "ShipType": "standard"
  }],
  "Payment": {
    "CurrencyCode": "USD"
  }
}');

$request->setRequestUrl('https://api.print.io/api/v/5/source/api/priceestimate/');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString(array(
  'recipeid' => 'f255af6f-9614-4fe2-aa8b-1b77b936d9d6'
)));

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

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

echo $response->getBody();
import http.client

conn = http.client.HTTPSConnection("api.print.io")

payload = "{\n  \"ShipToAddress\": {\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\"\n  },\n  \"Items\": [{\n    \"Quanity\": 1,\n    \"SKU\": \"CanvsWrp-ImgWrp-10x10\",\n    \"ShipType\": \"standard\"\n  }],\n  \"Payment\": {\n    \"CurrencyCode\": \"USD\"\n  }\n}"

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

conn.request("POST", "/api/v/5/source/api/priceestimate/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6", payload, headers)

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

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

url = "https://api.print.io/api/v/5/source/api/priceestimate/"

querystring = {"recipeid":"f255af6f-9614-4fe2-aa8b-1b77b936d9d6"}

payload = "{\n  \"ShipToAddress\": {\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\"\n  },\n  \"Items\": [{\n    \"Quanity\": 1,\n    \"SKU\": \"CanvsWrp-ImgWrp-10x10\",\n    \"ShipType\": \"standard\"\n  }],\n  \"Payment\": {\n    \"CurrencyCode\": \"USD\"\n  }\n}"
headers = {'content-type': 'application/json'}

response = requests.request("POST", url, data=payload, headers=headers, params=querystring)

print(response.text)
curl --request POST \
  --url 'https://api.print.io/api/v/5/source/api/priceestimate/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6' \
  --header 'content-type: application/json' \
  --data '{
  "ShipToAddress": {
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016"
  },
  "Items": [{
    "Quanity": 1,
    "SKU": "CanvsWrp-ImgWrp-10x10",
    "ShipType": "standard"
  }],
  "Payment": {
    "CurrencyCode": "USD"
  }
}'
echo '{
  "ShipToAddress": {
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016"
  },
  "Items": [{
    "Quanity": 1,
    "SKU": "CanvsWrp-ImgWrp-10x10",
    "ShipType": "standard"
  }],
  "Payment": {
    "CurrencyCode": "USD"
  }
}' |  \
  http POST 'https://api.print.io/api/v/5/source/api/priceestimate/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "ShipToAddress": {\n    "Line1": "79 Madison Ave",\n    "Line2": "Suite 228",\n    "City": "New York",\n    "State": "NY",\n    "CountryCode": "US",\n    "PostalCode": "10016"\n  },\n  "Items": [{\n    "Quanity": 1,\n    "SKU": "CanvsWrp-ImgWrp-10x10",\n    "ShipType": "standard"\n  }],\n  "Payment": {\n    "CurrencyCode": "USD"\n  }\n}' \
  --output-document \
  - 'https://api.print.io/api/v/5/source/api/priceestimate/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6'