CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6");

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  \"ShipToAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\\/fcasLn05zBV7zjElc\\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47\",\n    \"BraintreeEncryptedCCExpDate\": \"$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\\/KalG\\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\\/NulZ\\/xt\\/DjPMleUwMxZ8=\",\n    \"BraintreeEncryptedCCV\": \"$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\n  }\n}");

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

(client/post "https://api.print.io/api/v/5/source/api/orders/" {:headers {:content-type "application/json"}
                                                                :query-params {:recipeid "f255af6f-9614-4fe2-aa8b-1b77b936d9d6"}})
var client = new RestClient("https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"ShipToAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\\/fcasLn05zBV7zjElc\\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47\",\n    \"BraintreeEncryptedCCExpDate\": \"$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\\/KalG\\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\\/NulZ\\/xt\\/DjPMleUwMxZ8=\",\n    \"BraintreeEncryptedCCV\": \"$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
package main

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

func main() {

	url := "https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6"

	payload := strings.NewReader("{\n  \"ShipToAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N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1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\n  }\n}")

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

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

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

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

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

}
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: 2821

{
  "ShipToAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "Line1": "222 Broadway",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10038",
    "IsBusinessAddress": false,
    "Phone": "1234567890",
    "Email": "test@gooten.com"
  },
  "BillingAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "CountryCode": "US",
    "PostalCode": "10038"
  },
  "IsInTestMode": true,
  "Items": [
    {
      "Quantity": 1,
      "SKU": "PhoneCase-GalaxyNote2-Matte",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    },
    {
      "Quantity": 2,
      "SKU": "PhoneCase-Glossy-GalaxyNote3",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    }
  ],
  "Payment": {
    "BraintreeEncryptedCCNumber": "$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\/fcasLn05zBV7zjElc\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47",
    "BraintreeEncryptedCCExpDate": "$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\/KalG\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\/NulZ\/xt\/DjPMleUwMxZ8=",
    "BraintreeEncryptedCCV": "$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=",
    "CurrencyCode": "USD",
    "Total": 52.07
  }
}
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json; charset=utf-8");
RequestBody body = RequestBody.create(mediaType, "{\n  \"ShipToAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\\/fcasLn05zBV7zjElc\\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47\",\n    \"BraintreeEncryptedCCExpDate\": \"$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\\/KalG\\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\\/NulZ\\/xt\\/DjPMleUwMxZ8=\",\n    \"BraintreeEncryptedCCV\": \"$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\n  }\n}");
Request request = new Request.Builder()
  .url("https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.post("https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6")
  .header("content-type", "application/json")
  .body("{\n  \"ShipToAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEF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    \"Total\": 52.07\n  }\n}")
  .asString();
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\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\\/fcasLn05zBV7zjElc\\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47\",\n    \"BraintreeEncryptedCCExpDate\": \"$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\\/KalG\\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\\/NulZ\\/xt\\/DjPMleUwMxZ8=\",\n    \"BraintreeEncryptedCCV\": \"$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\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\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\\/fcasLn05zBV7zjElc\\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47\",\n    \"BraintreeEncryptedCCExpDate\": \"$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\\/KalG\\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\\/NulZ\\/xt\\/DjPMleUwMxZ8=\",\n    \"BraintreeEncryptedCCV\": \"$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\n  }\n}"
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.log(err);
});
var data = "{\n  \"ShipToAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\\/fcasLn05zBV7zjElc\\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47\",\n    \"BraintreeEncryptedCCExpDate\": \"$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\\/KalG\\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\\/NulZ\\/xt\\/DjPMleUwMxZ8=\",\n    \"BraintreeEncryptedCCV\": \"$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\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);
var http = require("https");

var options = {
  "method": "POST",
  "hostname": "api.print.io",
  "port": null,
  "path": "/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6",
  "headers": {
    "content-type": "application/json"
  }
};

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

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

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

req.write("{\n  \"ShipToAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\\/fcasLn05zBV7zjElc\\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47\",\n    \"BraintreeEncryptedCCExpDate\": \"$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\\/KalG\\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\\/NulZ\\/xt\\/DjPMleUwMxZ8=\",\n    \"BraintreeEncryptedCCV\": \"$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\n  }\n}");
req.end();
var request = require("request");

var options = {
  method: 'POST',
  url: 'https://api.print.io/api/v/5/source/api/orders/',
  qs: {recipeid: 'f255af6f-9614-4fe2-aa8b-1b77b936d9d6'},
  headers: {'content-type': 'application/json'},
  body: '{\n  "ShipToAddress": {\n    "FirstName": "Gooten",\n    "LastName": "Test",\n    "Line1": "222 Broadway",\n    "City": "New York",\n    "State": "NY",\n    "CountryCode": "US",\n    "PostalCode": "10038",\n    "IsBusinessAddress": false,\n    "Phone": "1234567890",\n    "Email": "test@gooten.com"\n  },\n  "BillingAddress": {\n    "FirstName": "Gooten",\n    "LastName": "Test",\n    "CountryCode": "US",\n    "PostalCode": "10038"\n  },\n  "IsInTestMode": true,\n  "Items": [\n    {\n      "Quantity": 1,\n      "SKU": "PhoneCase-GalaxyNote2-Matte",\n      "ShipCarrierMethodId": 1,\n      "Images": [\n        {\n          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",\n          "Index": 0,\n          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",\n          "ManipCommand": "",\n          "SpaceId": "0"\n        }\n      ]\n    },\n    {\n      "Quantity": 2,\n      "SKU": "PhoneCase-Glossy-GalaxyNote3",\n      "ShipCarrierMethodId": 1,\n      "Images": [\n        {\n          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",\n          "Index": 0,\n          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",\n          "ManipCommand": "",\n          "SpaceId": "0"\n        }\n      ]\n    }\n  ],\n  "Payment": {\n    "BraintreeEncryptedCCNumber": "$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\/fcasLn05zBV7zjElc\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47",\n    "BraintreeEncryptedCCExpDate": "$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\/KalG\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\/NulZ\/xt\/DjPMleUwMxZ8=",\n    "BraintreeEncryptedCCV": "$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=",\n    "CurrencyCode": "USD",\n    "Total": 52.07\n  }\n}'
};

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

  console.log(body);
});
var unirest = require("unirest");

var req = unirest("POST", "https://api.print.io/api/v/5/source/api/orders/");

req.query({
  "recipeid": "f255af6f-9614-4fe2-aa8b-1b77b936d9d6"
});

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

  req.send("{\n  \"ShipToAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\\/fcasLn05zBV7zjElc\\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47\",\n    \"BraintreeEncryptedCCExpDate\": \"$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\\/KalG\\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\\/NulZ\\/xt\\/DjPMleUwMxZ8=\",\n    \"BraintreeEncryptedCCV\": \"$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\n  }\n}");

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

  console.log(res.body);
});
#import <Foundation/Foundation.h>

NSDictionary *headers = @{ @"content-type": @"application/json" };

NSData *postData = [[NSData alloc] initWithData:[@"{
  "ShipToAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "Line1": "222 Broadway",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10038",
    "IsBusinessAddress": false,
    "Phone": "1234567890",
    "Email": "test@gooten.com"
  },
  "BillingAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "CountryCode": "US",
    "PostalCode": "10038"
  },
  "IsInTestMode": true,
  "Items": [
    {
      "Quantity": 1,
      "SKU": "PhoneCase-GalaxyNote2-Matte",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    },
    {
      "Quantity": 2,
      "SKU": "PhoneCase-Glossy-GalaxyNote3",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    }
  ],
  "Payment": {
    "BraintreeEncryptedCCNumber": "$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNk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    "CurrencyCode": "USD",
    "Total": 52.07
  }
}" dataUsingEncoding:NSUTF8StringEncoding]];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6"]
                                                       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 "https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"ShipToAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\\/fcasLn05zBV7zjElc\\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47\",\n    \"BraintreeEncryptedCCExpDate\": \"$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\\/KalG\\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\\/NulZ\\/xt\\/DjPMleUwMxZ8=\",\n    \"BraintreeEncryptedCCV\": \"$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
<?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\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\":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0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\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": "Gooten",
    "LastName": "Test",
    "Line1": "222 Broadway",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10038",
    "IsBusinessAddress": false,
    "Phone": "1234567890",
    "Email": "test@gooten.com"
  },
  "BillingAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "CountryCode": "US",
    "PostalCode": "10038"
  },
  "IsInTestMode": true,
  "Items": [
    {
      "Quantity": 1,
      "SKU": "PhoneCase-GalaxyNote2-Matte",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    },
    {
      "Quantity": 2,
      "SKU": "PhoneCase-Glossy-GalaxyNote3",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    }
  ],
  "Payment": {
    "BraintreeEncryptedCCNumber": "$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\\/fcasLn05zBV7zjElc\\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47",
    "BraintreeEncryptedCCExpDate": "$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\\/KalG\\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\\/NulZ\\/xt\\/DjPMleUwMxZ8=",
    "BraintreeEncryptedCCV": "$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=",
    "CurrencyCode": "USD",
    "Total": 52.07
  }
}');

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": "Gooten",
    "LastName": "Test",
    "Line1": "222 Broadway",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10038",
    "IsBusinessAddress": false,
    "Phone": "1234567890",
    "Email": "test@gooten.com"
  },
  "BillingAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "CountryCode": "US",
    "PostalCode": "10038"
  },
  "IsInTestMode": true,
  "Items": [
    {
      "Quantity": 1,
      "SKU": "PhoneCase-GalaxyNote2-Matte",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    },
    {
      "Quantity": 2,
      "SKU": "PhoneCase-Glossy-GalaxyNote3",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    }
  ],
  "Payment": {
    "BraintreeEncryptedCCNumber": "$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\\/fcasLn05zBV7zjElc\\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47",
    "BraintreeEncryptedCCExpDate": "$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\\/KalG\\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\\/NulZ\\/xt\\/DjPMleUwMxZ8=",
    "BraintreeEncryptedCCV": "$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=",
    "CurrencyCode": "USD",
    "Total": 52.07
  }
}');

$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();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ShipToAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "Line1": "222 Broadway",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10038",
    "IsBusinessAddress": false,
    "Phone": "1234567890",
    "Email": "test@gooten.com"
  },
  "BillingAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "CountryCode": "US",
    "PostalCode": "10038"
  },
  "IsInTestMode": true,
  "Items": [
    {
      "Quantity": 1,
      "SKU": "PhoneCase-GalaxyNote2-Matte",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    },
    {
      "Quantity": 2,
      "SKU": "PhoneCase-Glossy-GalaxyNote3",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    }
  ],
  "Payment": {
    "BraintreeEncryptedCCNumber": "$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\/fcasLn05zBV7zjElc\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47",
    "BraintreeEncryptedCCExpDate": "$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\/KalG\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\/NulZ\/xt\/DjPMleUwMxZ8=",
    "BraintreeEncryptedCCV": "$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=",
    "CurrencyCode": "USD",
    "Total": 52.07
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri 'https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ShipToAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "Line1": "222 Broadway",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10038",
    "IsBusinessAddress": false,
    "Phone": "1234567890",
    "Email": "test@gooten.com"
  },
  "BillingAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "CountryCode": "US",
    "PostalCode": "10038"
  },
  "IsInTestMode": true,
  "Items": [
    {
      "Quantity": 1,
      "SKU": "PhoneCase-GalaxyNote2-Matte",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    },
    {
      "Quantity": 2,
      "SKU": "PhoneCase-Glossy-GalaxyNote3",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    }
  ],
  "Payment": {
    "BraintreeEncryptedCCNumber": "$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\/fcasLn05zBV7zjElc\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47",
    "BraintreeEncryptedCCExpDate": "$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\/KalG\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\/NulZ\/xt\/DjPMleUwMxZ8=",
    "BraintreeEncryptedCCV": "$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=",
    "CurrencyCode": "USD",
    "Total": 52.07
  }
}'
import http.client

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

payload = "{\n  \"ShipToAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6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NpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\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\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\\/fcasLn05zBV7zjElc\\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47\",\n    \"BraintreeEncryptedCCExpDate\": \"$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\\/KalG\\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\\/NulZ\\/xt\\/DjPMleUwMxZ8=\",\n    \"BraintreeEncryptedCCV\": \"$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\n  }\n}"
headers = {'content-type': 'application/json'}

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

print(response.text)
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"ShipToAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"Line1\": \"222 Broadway\",\n    \"City\": \"New York\",\n    \"State\": \"NY\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\",\n    \"IsBusinessAddress\": false,\n    \"Phone\": \"1234567890\",\n    \"Email\": \"test@gooten.com\"\n  },\n  \"BillingAddress\": {\n    \"FirstName\": \"Gooten\",\n    \"LastName\": \"Test\",\n    \"CountryCode\": \"US\",\n    \"PostalCode\": \"10038\"\n  },\n  \"IsInTestMode\": true,\n  \"Items\": [\n    {\n      \"Quantity\": 1,\n      \"SKU\": \"PhoneCase-GalaxyNote2-Matte\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    },\n    {\n      \"Quantity\": 2,\n      \"SKU\": \"PhoneCase-Glossy-GalaxyNote3\",\n      \"ShipCarrierMethodId\": 1,\n      \"Images\": [\n        {\n          \"Url\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"Index\": 0,\n          \"ThumbnailUrl\": \"https:\\/\\/printio-widget-live.s3.amazonaws.com\\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg\",\n          \"ManipCommand\": \"\",\n          \"SpaceId\": \"0\"\n        }\n      ]\n    }\n  ],\n  \"Payment\": {\n    \"BraintreeEncryptedCCNumber\": \"$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\\/fcasLn05zBV7zjElc\\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47\",\n    \"BraintreeEncryptedCCExpDate\": \"$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\\/KalG\\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\\/NulZ\\/xt\\/DjPMleUwMxZ8=\",\n    \"BraintreeEncryptedCCV\": \"$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=\",\n    \"CurrencyCode\": \"USD\",\n    \"Total\": 52.07\n  }\n}"

response = http.request(request)
puts response.read_body
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": "Gooten",
    "LastName": "Test",
    "Line1": "222 Broadway",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10038",
    "IsBusinessAddress": false,
    "Phone": "1234567890",
    "Email": "test@gooten.com"
  },
  "BillingAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "CountryCode": "US",
    "PostalCode": "10038"
  },
  "IsInTestMode": true,
  "Items": [
    {
      "Quantity": 1,
      "SKU": "PhoneCase-GalaxyNote2-Matte",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    },
    {
      "Quantity": 2,
      "SKU": "PhoneCase-Glossy-GalaxyNote3",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    }
  ],
  "Payment": {
    "BraintreeEncryptedCCNumber": "$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\/UaeQcVkJ9uWyDq+XJkPkM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lazrOUROVgIA==$F9FTxCDWTUsZ\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=",
    "CurrencyCode": "USD",
    "Total": 52.07
  }
}'
echo '{
  "ShipToAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "Line1": "222 Broadway",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10038",
    "IsBusinessAddress": false,
    "Phone": "1234567890",
    "Email": "test@gooten.com"
  },
  "BillingAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "CountryCode": "US",
    "PostalCode": "10038"
  },
  "IsInTestMode": true,
  "Items": [
    {
      "Quantity": 1,
      "SKU": "PhoneCase-GalaxyNote2-Matte",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    },
    {
      "Quantity": 2,
      "SKU": "PhoneCase-Glossy-GalaxyNote3",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    }
  ],
  "Payment": {
    "BraintreeEncryptedCCNumber": "$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\/W4iVCKfUS6V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/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=",
    "CurrencyCode": "USD",
    "Total": 52.07
  }
}' |  \
  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": "Gooten",\n    "LastName": "Test",\n    "Line1": "222 Broadway",\n    "City": "New York",\n    "State": "NY",\n    "CountryCode": "US",\n    "PostalCode": "10038",\n    "IsBusinessAddress": false,\n    "Phone": "1234567890",\n    "Email": "test@gooten.com"\n  },\n  "BillingAddress": {\n    "FirstName": "Gooten",\n    "LastName": "Test",\n    "CountryCode": "US",\n    "PostalCode": "10038"\n  },\n  "IsInTestMode": true,\n  "Items": [\n    {\n      "Quantity": 1,\n      "SKU": "PhoneCase-GalaxyNote2-Matte",\n      "ShipCarrierMethodId": 1,\n      "Images": [\n        {\n          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",\n          "Index": 0,\n          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",\n          "ManipCommand": "",\n          "SpaceId": "0"\n        }\n      ]\n    },\n    {\n      "Quantity": 2,\n      "SKU": "PhoneCase-Glossy-GalaxyNote3",\n      "ShipCarrierMethodId": 1,\n      "Images": [\n        {\n          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",\n          "Index": 0,\n          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",\n          "ManipCommand": "",\n          "SpaceId": "0"\n        }\n      ]\n    }\n  ],\n  "Payment": {\n    "BraintreeEncryptedCCNumber": "$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygv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TrgD4aRPPBUvaN+4gTDUTxrI1yj\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=",\n    "CurrencyCode": "USD",\n    "Total": 52.07\n  }\n}' \
  --output-document \
  - 'https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6'
import Foundation

let headers = ["content-type": "application/json"]

let postData = NSData(data: "{
  "ShipToAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "Line1": "222 Broadway",
    "City": "New York",
    "State": "NY",
    "CountryCode": "US",
    "PostalCode": "10038",
    "IsBusinessAddress": false,
    "Phone": "1234567890",
    "Email": "test@gooten.com"
  },
  "BillingAddress": {
    "FirstName": "Gooten",
    "LastName": "Test",
    "CountryCode": "US",
    "PostalCode": "10038"
  },
  "IsInTestMode": true,
  "Items": [
    {
      "Quantity": 1,
      "SKU": "PhoneCase-GalaxyNote2-Matte",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    },
    {
      "Quantity": 2,
      "SKU": "PhoneCase-Glossy-GalaxyNote3",
      "ShipCarrierMethodId": 1,
      "Images": [
        {
          "Url": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "Index": 0,
          "ThumbnailUrl": "https:\/\/printio-widget-live.s3.amazonaws.com\/200E4604-4CD5-4E0C-A131-9F5AF25006E6.jpg",
          "ManipCommand": "",
          "SpaceId": "0"
        }
      ]
    }
  ],
  "Payment": {
    "BraintreeEncryptedCCNumber": "$bt3|android_2_1_0$IqLBgSffLyeqKyrk0ak5oWyiRygvr1Iku8IzJB62yETuu1k6TOEHZBYKJbuIicDERY6mrnk9gL\/N2yF0+cvx8rI9JIlnrCborEGjLWGRF6Gwa0JYAdYY\/UaeQcVkJ9uWyDq+XJkPkMG7FWohHcW3w59+C\/W4iVCKfUS6VPM7i9K+BXrzpdxazM0biQh4baHZUHGHpuNkAnt9rKHKMYb35TZ+KYNsYLSZd+L9z50f9LF6+Q8h0qXHEFV7\/fcasLn05zBV7zjElc\/nYCFTFxepoqWMS+o3WnwN3QB+G9G2l6nLU1IR1Rd2x+NTcU\/RZv8VinzxZ7oeMk8RbFr819aXXA==$jcFWKRBTVFMUn24hi5b8C0kpzwr1VbnCuknTub9qvPrm2OEXQ+fwK9Yk2UIYCB47",
    "BraintreeEncryptedCCExpDate": "$bt3|android_2_1_0$kiEMxOEBz9cOJ1UIogKQjKo7wIpfp619jXKpdPma8MjfJ8gGlDli\/KalG\/Hb65aZa4Bnq5Jg1wBTE6OpoRVHovqzSvPaTbuQUC33rG3vXNmGjCL\/upgM239HFy6CgAAZ3sXyokxxMI9WhnbrwoOMvn7m2Dz7wSh\/NGdNzRRaHlefV1jCZEzBTcgPd2Q+wXM+\/q26uUDEH2wXhZ3181eBNvfnU+PuX7MIgKns6s3uNNXnAwlxg0F++4DV3ON5dcpxSLvPTyInR9snvCNsKHqy3dDzFSOGVIafA6C+UhuZl0Q1GwaT2KmznForqk5xQdswL+oDxbpbWgZZlyeswfIwtQ==$j6Exgsb9bJZerxbwBC7wVa\/NulZ\/xt\/DjPMleUwMxZ8=",
    "BraintreeEncryptedCCV": "$bt3|android_2_1_0$aQMradWrA4AXzhci89WYgtZKs35wiL3PX0tVHQx4DJ+GxuCQImMCuRK7p+XfnB8JhX4WYgckzwFSNhsPThh+ZZqbF4mZ0Lj++9cMqjmG+9e4WwMkESZKPL31Gjaf8Ck2kKM0ftZcSRvjxzoSsUKS0MwFTDyQpPYvj7o8pHsrWIqIUmj3to8HWRKltXWyL2azs8w9PFkub8M3eznkId8vPNpmpTrgD4aRPPBUvaN+4gTDUTxrI1yj\/jDH9NupelMBzhg2ofLFqt1CBjFKakE65nDfLaqkbz7UqzubfTpnLxc2m1f\/nRVFEdhHnXmFJRc2VoFLnqr4EZlazrOUROVgIA==$F9FTxCDWTUsZ\/0iesyArPZRcEQ3YpWN30T9gGU1fpRY=",
    "CurrencyCode": "USD",
    "Total": 52.07
  }
}".data(using: String.Encoding.utf8)!)

let request = NSMutableURLRequest(url: NSURL(string: "https://api.print.io/api/v/5/source/api/orders/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6")! 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)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()