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

{
  "ShipToAddress": {
    "FirstName": "John",
    "LastName": "Doe",
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016",
    "IsBusinessAddress": false,
    "Phone": "0000000000",
    "Email": "mail@test.com"
  },
  "BillingAddress": {
    "FirstName": "John",
    "LastName": "Doe",
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016",
    "IsBusinessAddress": false,
    "Phone": "0000000000",
    "Email": "mail@test.com"
  },
  "Items": [
    {
      "Quantity": 1,
      "SKU": "CanvsWrp-ImgWrp-10x10",
      "ShipType": "standard",
      "Images": [
        {
          "Url": "https://placekitten.com/3000/3000"
        }
      ]
    }
  ],
  "Payment": {
    "PartnerBillingKey":"oeO2j1ZbfU0TaDPRrhStEyp68ZRbXK8UfWfq7BKICGY="
  },
  "IsInTestMode": true,
  "Meta": {
    "tag":"test order",
    "my value":"42"
  }
}
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6",
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "data": "{\n  \"ShipToAddress\": {\n    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"0000000000\",\n    \"Email\": \"mail@test.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"0000000000\",\n    \"Email\": \"mail@test.com\"\n  },\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"CanvsWrp-ImgWrp-10x10\",\n      \"ShipType\": \"standard\",\n      \"Images\": [\n        {\n          \"Url\": \"https://placekitten.com/3000/3000\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"PartnerBillingKey\":\"oeO2j1ZbfU0TaDPRrhStEyp68ZRbXK8UfWfq7BKICGY=\"\n  },\n  \"IsInTestMode\": true,\n  \"Meta\": {\n    \"tag\":\"test order\",\n    \"my value\":\"42\"\n  }\n}"
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
fetch("https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\n  \"ShipToAddress\": {\n    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"0000000000\",\n    \"Email\": \"mail@test.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"0000000000\",\n    \"Email\": \"mail@test.com\"\n  },\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"CanvsWrp-ImgWrp-10x10\",\n      \"ShipType\": \"standard\",\n      \"Images\": [\n        {\n          \"Url\": \"https://placekitten.com/3000/3000\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"PartnerBillingKey\":\"oeO2j1ZbfU0TaDPRrhStEyp68ZRbXK8UfWfq7BKICGY=\"\n  },\n  \"IsInTestMode\": true,\n  \"Meta\": {\n    \"tag\":\"test order\",\n    \"my value\":\"42\"\n  }\n}"
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.log(err);
});
var data = "{\n  \"ShipToAddress\": {\n    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"0000000000\",\n    \"Email\": \"mail@test.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"0000000000\",\n    \"Email\": \"mail@test.com\"\n  },\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"CanvsWrp-ImgWrp-10x10\",\n      \"ShipType\": \"standard\",\n      \"Images\": [\n        {\n          \"Url\": \"https://placekitten.com/3000/3000\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"PartnerBillingKey\":\"oeO2j1ZbfU0TaDPRrhStEyp68ZRbXK8UfWfq7BKICGY=\"\n  },\n  \"IsInTestMode\": true,\n  \"Meta\": {\n    \"tag\":\"test order\",\n    \"my value\":\"42\"\n  }\n}";

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/orders/?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/orders/?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    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"0000000000\",\n    \"Email\": \"mail@test.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"0000000000\",\n    \"Email\": \"mail@test.com\"\n  },\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"CanvsWrp-ImgWrp-10x10\",\n      \"ShipType\": \"standard\",\n      \"Images\": [\n        {\n          \"Url\": \"https://placekitten.com/3000/3000\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"PartnerBillingKey\":\"oeO2j1ZbfU0TaDPRrhStEyp68ZRbXK8UfWfq7BKICGY=\"\n  },\n  \"IsInTestMode\": true,\n  \"Meta\": {\n    \"tag\":\"test order\",\n    \"my value\":\"42\"\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/orders/');
$request->setMethod(HTTP_METH_POST);

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

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

$request->setBody('{
  "ShipToAddress": {
    "FirstName": "John",
    "LastName": "Doe",
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016",
    "IsBusinessAddress": false,
    "Phone": "0000000000",
    "Email": "mail@test.com"
  },
  "BillingAddress": {
    "FirstName": "John",
    "LastName": "Doe",
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016",
    "IsBusinessAddress": false,
    "Phone": "0000000000",
    "Email": "mail@test.com"
  },
  "Items": [
    {
      "Quantity": 1,
      "SKU": "CanvsWrp-ImgWrp-10x10",
      "ShipType": "standard",
      "Images": [
        {
          "Url": "https://placekitten.com/3000/3000"
        }
      ]
    }
  ],
  "Payment": {
    "PartnerBillingKey":"oeO2j1ZbfU0TaDPRrhStEyp68ZRbXK8UfWfq7BKICGY="
  },
  "IsInTestMode": true,
  "Meta": {
    "tag":"test order",
    "my value":"42"
  }
}');

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": {
    "FirstName": "John",
    "LastName": "Doe",
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016",
    "IsBusinessAddress": false,
    "Phone": "0000000000",
    "Email": "mail@test.com"
  },
  "BillingAddress": {
    "FirstName": "John",
    "LastName": "Doe",
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016",
    "IsBusinessAddress": false,
    "Phone": "0000000000",
    "Email": "mail@test.com"
  },
  "Items": [
    {
      "Quantity": 1,
      "SKU": "CanvsWrp-ImgWrp-10x10",
      "ShipType": "standard",
      "Images": [
        {
          "Url": "https://placekitten.com/3000/3000"
        }
      ]
    }
  ],
  "Payment": {
    "PartnerBillingKey":"oeO2j1ZbfU0TaDPRrhStEyp68ZRbXK8UfWfq7BKICGY="
  },
  "IsInTestMode": true,
  "Meta": {
    "tag":"test order",
    "my value":"42"
  }
}');

$request->setRequestUrl('https://api.print.io/api/v/5/source/api/orders/');
$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    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"0000000000\",\n    \"Email\": \"mail@test.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"0000000000\",\n    \"Email\": \"mail@test.com\"\n  },\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"CanvsWrp-ImgWrp-10x10\",\n      \"ShipType\": \"standard\",\n      \"Images\": [\n        {\n          \"Url\": \"https://placekitten.com/3000/3000\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"PartnerBillingKey\":\"oeO2j1ZbfU0TaDPRrhStEyp68ZRbXK8UfWfq7BKICGY=\"\n  },\n  \"IsInTestMode\": true,\n  \"Meta\": {\n    \"tag\":\"test order\",\n    \"my value\":\"42\"\n  }\n}"

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

conn.request("POST", "/api/v/5/source/api/orders/?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/orders/"

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

payload = "{\n  \"ShipToAddress\": {\n    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"0000000000\",\n    \"Email\": \"mail@test.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"Line1\": \"79 Madison Ave\",\n    \"Line2\": \"Suite 228\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10016\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"0000000000\",\n    \"Email\": \"mail@test.com\"\n  },\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"CanvsWrp-ImgWrp-10x10\",\n      \"ShipType\": \"standard\",\n      \"Images\": [\n        {\n          \"Url\": \"https://placekitten.com/3000/3000\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"PartnerBillingKey\":\"oeO2j1ZbfU0TaDPRrhStEyp68ZRbXK8UfWfq7BKICGY=\"\n  },\n  \"IsInTestMode\": true,\n  \"Meta\": {\n    \"tag\":\"test order\",\n    \"my value\":\"42\"\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/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6' \
  --header 'content-type: application/json' \
  --data '{
  "ShipToAddress": {
    "FirstName": "John",
    "LastName": "Doe",
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016",
    "IsBusinessAddress": false,
    "Phone": "0000000000",
    "Email": "mail@test.com"
  },
  "BillingAddress": {
    "FirstName": "John",
    "LastName": "Doe",
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016",
    "IsBusinessAddress": false,
    "Phone": "0000000000",
    "Email": "mail@test.com"
  },
  "Items": [
    {
      "Quantity": 1,
      "SKU": "CanvsWrp-ImgWrp-10x10",
      "ShipType": "standard",
      "Images": [
        {
          "Url": "https://placekitten.com/3000/3000"
        }
      ]
    }
  ],
  "Payment": {
    "PartnerBillingKey":"oeO2j1ZbfU0TaDPRrhStEyp68ZRbXK8UfWfq7BKICGY="
  },
  "IsInTestMode": true,
  "Meta": {
    "tag":"test order",
    "my value":"42"
  }
}'
echo '{
  "ShipToAddress": {
    "FirstName": "John",
    "LastName": "Doe",
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016",
    "IsBusinessAddress": false,
    "Phone": "0000000000",
    "Email": "mail@test.com"
  },
  "BillingAddress": {
    "FirstName": "John",
    "LastName": "Doe",
    "Line1": "79 Madison Ave",
    "Line2": "Suite 228",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10016",
    "IsBusinessAddress": false,
    "Phone": "0000000000",
    "Email": "mail@test.com"
  },
  "Items": [
    {
      "Quantity": 1,
      "SKU": "CanvsWrp-ImgWrp-10x10",
      "ShipType": "standard",
      "Images": [
        {
          "Url": "https://placekitten.com/3000/3000"
        }
      ]
    }
  ],
  "Payment": {
    "PartnerBillingKey":"oeO2j1ZbfU0TaDPRrhStEyp68ZRbXK8UfWfq7BKICGY="
  },
  "IsInTestMode": true,
  "Meta": {
    "tag":"test order",
    "my value":"42"
  }
}' |  \
  http POST 'https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "ShipToAddress": {\n    "FirstName": "John",\n    "LastName": "Doe",\n    "Line1": "79 Madison Ave",\n    "Line2": "Suite 228",\n    "City": "New York",\n    "State": "NY",\n    "CountryCode": "US",\n    "PostalCode": "10016",\n    "IsBusinessAddress": false,\n    "Phone": "0000000000",\n    "Email": "mail@test.com"\n  },\n  "BillingAddress": {\n    "FirstName": "John",\n    "LastName": "Doe",\n    "Line1": "79 Madison Ave",\n    "Line2": "Suite 228",\n    "City": "New York",\n    "State": "NY",\n    "CountryCode": "US",\n    "PostalCode": "10016",\n    "IsBusinessAddress": false,\n    "Phone": "0000000000",\n    "Email": "mail@test.com"\n  },\n  "Items": [\n    {\n      "Quantity": 1,\n      "SKU": "CanvsWrp-ImgWrp-10x10",\n      "ShipType": "standard",\n      "Images": [\n        {\n          "Url": "https://placekitten.com/3000/3000"\n        }\n      ]\n    }\n  ],\n  "Payment": {\n    "PartnerBillingKey":"oeO2j1ZbfU0TaDPRrhStEyp68ZRbXK8UfWfq7BKICGY="\n  },\n  "IsInTestMode": true,\n  "Meta": {\n    "tag":"test order",\n    "my value":"42"\n  }\n}' \
  --output-document \
  - 'https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6'