Open API - Insure Order

API Endpoint:

URL: https://api.routeit.cloud/konnektive/v2/post/json/insure_order
Protocol: HTTPS
Method: POST
Authentication: API Key and Secret via header
Content Type: application/json

All API calls must include this header to authorize the request.
Replace YOUR-KEY-HERE with your API key and YOUR-SECRET-HERE with your secret.

Header Key Header Value
api_key YOUR-KEY-HERE
secret YOUR-SECRET-HERE
Content-Type application/json

Body:

The body must be sent in JSON format. The keys include company_name, first, last, email, phone, and transactions.
{
    "route_quote_id": "5",
    "order_id": "abc-123",
    "order_date": "08-15-2099",
    "order_insured": "true",
    "order_base_value": "67.50",
    "order_base_total": "67.50",
    "shipping_total": "7.49",
    "handling_total": "0",
    "sales_tax_total": "4.56",
    "customer_paid_insurance_price": "3.49",
    "payment_type": "CREDIT_CARD",
    "card_last_four": "0000",
    "card_expire_date": "12/99",
    "first_name": "Bob",
    "last_name": "Denver",
    "email": "[email protected]",
    "phone": "111-111-1111",
    "shipping_address_1": "123 Palm Tree Way",
    "shipping_city": "Island Town",
    "shipping_province": "Hawaii",
    "shipping_postal_code": "00000",
    "shipping_country": "USA",
    "billing_same_as_shipping": "true"
}
                    
Body Key Body Value Required Description
route_quote_id string YES Valid quote id from the Request Quote API.
order_id string YES The merchants’ unique order identifier. Used for claim reference.
order_date string YES Date the order was completed. Prefer ISO 8601 format.
order_insured boolean YES Did the customer select to Insure their order?
order_base_value integer, double or float greater than zero and greater than or equal to order_base_total YES Total cart replacement value, minus shipping, handling and tax. Must match order_base_value used when calling Request Quote API.
order_base_total integer, double or float greater than or equal to zero YES Total cart price charged to the buyer, minus shipping, handling and tax. This is the amount the customer is paying after discounts, not the replacement value. Must match order_base_total used when calling Request Quote API.
shipping_total integer, double or float greater than or equal to zero YES Shipping price charged to the buyer.
handling_total integer, double or float greater than or equal to zero YES Handling price charged to the buyer.
sales_tax_total integer, double or float greater than or equal to zero YES Taxes charged to the buyer.
customer_paid_insurance_price integer, double or float greater than or equal to zero YES Insurnece price charged to the buyer.
payment_type supported payment type as string YES Payment type the buyer used to pay for the order. Supported payment types can be pulled from our Payment Types API. Used for claim reference.
payment_type_other string MAYBE REQUIRED if payment_type is OTHER. Used for claim reference.
card_last_four string MAYBE REQUIRED if payment_type is CREDIT_CARD. Used for claim reference.
card_expire_date integer MAYBE REQUIRED if payment_type is CREDIT_CARD. Used for claim reference.
first_name string YES Customer’s first name.
last_name string YES Customer’s last name.
email string YES Customer’s email address. REQUIRED to be a valid email address.
phone string string Customer’s phone number.
shipping_address_1 string YES Customer’s shipping street address.
shipping_address_2 string no Customer’s shipping street address, line two.
shipping_city string YES Customer’s shipping city.
shipping_province string no Customer’s shipping province or state.
shipping_postal_code string YES Customer’s shipping postal code.
shipping_country string YES Customer’s shipping country. Prefer ISO 3166 Alpha-3(three letters) country code as a string.
billing_same_as_shipping boolean YES Is the billing address the same as the shipping address?
billing_address_1 string MAYBE REQUIRED if billing_same_as_shipping is false. Customer’s billing street address.
billing_address_2 string no Customer’s shipping street address, line two.
billing_city string MAYBE REQUIRED if billing_same_as_shipping is false. Customer’s shipping city.
billing_province string MAYBE REQUIRED if billing_same_as_shipping is false. Customer’s shipping province or state.
billing_postal_code string MAYBE REQUIRED if billing_same_as_shipping is false. Customer’s shipping postal code.
billing_country string MAYBE REQUIRED if billing_same_as_shipping is false. Customer’s shipping country. Prefer ISO 3166 Alpha-3(three letters) country code as a string.
tracking_number string YES Valid carrier generated tracking number.
shipped_date string YES Date order was shipped. Prefer ISO 8601 format.
shipping_carrier_code supported shipping carrier code as a string no Carrier order was shipped through. Supported shipping carrier codes can be pulled from our Shipping Carrier Codes API.
shipping_method string no Method used for shipping.
custom_b1 string no Custom field that accepts any text string. Max 255 characters.
custom_b2 string no Custom field that accepts any text string. Max 255 characters.
custom_b3 string no Custom field that accepts any text string. Max 255 characters.
custom_b4 string no Custom field that accepts any text string. Max 255 characters.

Code Examples:

The following are examples for reference and may require library dependencies not described here. An understanding of REST services, JSON, and web security is required to develop service clients.

Javascript - Jquery AJAX
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://api.routeit.cloud/open_api/v1/post/json/insure_order",
  "method": "POST",
  "headers": {
    "api_key": "YOUR-KEY-HERE",
    "secret": "YOUR-SECRET-HERE",
    "content-type": "application/json",
    "cache-control": "no-cache"
  },
  "processData": false,
  "data": "{\n\t\"route_quote_id\": \"4\",\n\t\"order_id\": \"abc-123\",\n\t\"order_date\": \"08-15-2099\",\n\t\"order_insured\": \"true\",\n\t\"order_base_value\": \"67.50\",\n\t\"order_base_total\": \"67.50\",\n\t\"shipping_total\": \"7.49\",\n\t\"handling_total\": \"0\",\n\t\"sales_tax_total\": \"4.56\",\n\t\"customer_paid_insurance_price\": \"3.49\",\n\t\"payment_type\": \"CREDIT_CARD\",\n\t\"card_last_four\": \"0000\",\n\t\"card_expire_date\": \"12/99\",\n\t\"first_name\": \"Bob\",\n\t\"last_name\": \"Denver\",\n\t\"email\": \"[email protected]\",\n\t\"phone\": \"111-111-1111\",\n\t\"shipping_address_1\": \"123 Palm Tree Way\",\n\t\"shipping_city\": \"Island Town\",\n\t\"shipping_province\": \"Hawaii\",\n\t\"shipping_postal_code\": \"00000\",\n\t\"shipping_country\": \"USA\",\n\t\"billing_same_as_shipping\": \"true\"\n}"
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
                            
Javascript - XHR
var data = JSON.stringify({
  "route_quote_id": "4",
  "order_id": "abc-123",
  "order_date": "08-15-2099",
  "order_insured": "true",
  "order_base_value": "67.50",
  "order_base_total": "67.50",
  "shipping_total": "7.49",
  "handling_total": "0",
  "sales_tax_total": "4.56",
  "customer_paid_insurance_price": "3.49",
  "payment_type": "CREDIT_CARD",
  "card_last_four": "0000",
  "card_expire_date": "12/99",
  "first_name": "Bob",
  "last_name": "Denver",
  "email": "[email protected]",
  "phone": "111-111-1111",
  "shipping_address_1": "123 Palm Tree Way",
  "shipping_city": "Island Town",
  "shipping_province": "Hawaii",
  "shipping_postal_code": "00000",
  "shipping_country": "USA",
  "billing_same_as_shipping": "true"
});

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

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

xhr.open("POST", "https://api.routeit.cloud/open_api/v1/post/json/insure_order");
xhr.setRequestHeader("api_key", "YOUR-KEY-HERE");
xhr.setRequestHeader("secret", "YOUR-SECRET-HERE");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("cache-control", "no-cache");

xhr.send(data);
                            
Node JS - Native
var http = require("https");

var options = {
  "method": "POST",
  "hostname": "api.routeit.cloud",
  "port": null,
  "path": "/open_api/v1/post/json/insure_order",
  "headers": {
    "api_key": "YOUR-KEY-HERE",
    "secret": "YOUR-SECRET-HERE",
    "content-type": "application/json",
    "cache-control": "no-cache",
  }
};

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(JSON.stringify({ route_quote_id: '4',
  order_id: 'abc-123',
  order_date: '08-15-2099',
  order_insured: 'true',
  order_base_value: '67.50',
  order_base_total: '67.50',
  shipping_total: '7.49',
  handling_total: '0',
  sales_tax_total: '4.56',
  customer_paid_insurance_price: '3.49',
  payment_type: 'CREDIT_CARD',
  card_last_four: '0000',
  card_expire_date: '12/99',
  first_name: 'Bob',
  last_name: 'Denver',
  email: '[email protected]',
  phone: '111-111-1111',
  shipping_address_1: '123 Palm Tree Way',
  shipping_city: 'Island Town',
  shipping_province: 'Hawaii',
  shipping_postal_code: '00000',
  shipping_country: 'USA',
  billing_same_as_shipping: 'true' }));
req.end();
                            
Node JS - Request
var request = require("request");

var options = { method: 'POST',
  url: 'https://api.routeit.cloud/open_api/v1/post/json/insure_order',
  headers:
   { 'cache-control': 'no-cache',
     'content-type': 'application/json',
     secret: 'YOUR-SECRET-HERE',
     api_key: 'YOUR-KEY-HERE' },
  body:
   { route_quote_id: '4',
     order_id: 'abc-123',
     order_date: '08-15-2099',
     order_insured: 'true',
     order_base_value: '67.50',
     order_base_total: '67.50',
     shipping_total: '7.49',
     handling_total: '0',
     sales_tax_total: '4.56',
     customer_paid_insurance_price: '3.49',
     payment_type: 'CREDIT_CARD',
     card_last_four: '0000',
     card_expire_date: '12/99',
     first_name: 'Bob',
     last_name: 'Denver',
     email: '[email protected]',
     phone: '111-111-1111',
     shipping_address_1: '123 Palm Tree Way',
     shipping_city: 'Island Town',
     shipping_province: 'Hawaii',
     shipping_postal_code: '00000',
     shipping_country: 'USA',
     billing_same_as_shipping: 'true' },
  json: true };

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

  console.log(body);
});
                            
Node JS - Unirest
var unirest = require("unirest");

var req = unirest("POST", "https://api.routeit.cloud/open_api/v1/post/json/insure_order");

req.headers({
  "cache-control": "no-cache",
  "content-type": "application/json",
  "secret": "YOUR-SECRET-HERE",
  "api_key": "YOUR-KEY-HERE"
});

req.type("json");
req.send({
  "route_quote_id": "4",
  "order_id": "abc-123",
  "order_date": "08-15-2099",
  "order_insured": "true",
  "order_base_value": "67.50",
  "order_base_total": "67.50",
  "shipping_total": "7.49",
  "handling_total": "0",
  "sales_tax_total": "4.56",
  "customer_paid_insurance_price": "3.49",
  "payment_type": "CREDIT_CARD",
  "card_last_four": "0000",
  "card_expire_date": "12/99",
  "first_name": "Bob",
  "last_name": "Denver",
  "email": "[email protected]",
  "phone": "111-111-1111",
  "shipping_address_1": "123 Palm Tree Way",
  "shipping_city": "Island Town",
  "shipping_province": "Hawaii",
  "shipping_postal_code": "00000",
  "shipping_country": "USA",
  "billing_same_as_shipping": "true"
});

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

  console.log(res.body);
});
                            
Java - OK HTTP
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n\t\"route_quote_id\": \"4\",\n\t\"order_id\": \"abc-123\",\n\t\"order_date\": \"08-15-2099\",\n\t\"order_insured\": \"true\",\n\t\"order_base_value\": \"67.50\",\n\t\"order_base_total\": \"67.50\",\n\t\"shipping_total\": \"7.49\",\n\t\"handling_total\": \"0\",\n\t\"sales_tax_total\": \"4.56\",\n\t\"customer_paid_insurance_price\": \"3.49\",\n\t\"payment_type\": \"CREDIT_CARD\",\n\t\"card_last_four\": \"0000\",\n\t\"card_expire_date\": \"12/99\",\n\t\"first_name\": \"Bob\",\n\t\"last_name\": \"Denver\",\n\t\"email\": \"[email protected]\",\n\t\"phone\": \"111-111-1111\",\n\t\"shipping_address_1\": \"123 Palm Tree Way\",\n\t\"shipping_city\": \"Island Town\",\n\t\"shipping_province\": \"Hawaii\",\n\t\"shipping_postal_code\": \"00000\",\n\t\"shipping_country\": \"USA\",\n\t\"billing_same_as_shipping\": \"true\"\n}");
Request request = new Request.Builder()
  .url("https://api.routeit.cloud/open_api/v1/post/json/insure_order")
  .post(body)
  .addHeader("api_key", "YOUR-KEY-HERE")
  .addHeader("secret", "YOUR-SECRET-HERE")
  .addHeader("content-type", "application/json")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();
                            
Java - Unirest
HttpResponse<String> response = Unirest.post("https://api.routeit.cloud/open_api/v1/post/json/insure_order")
  .header("api_key", "YOUR-KEY-HERE")
  .header("secret", "YOUR-SECRET-HERE")
  .header("content-type", "application/json")
  .header("cache-control", "no-cache")
  .body("{\n\t\"route_quote_id\": \"4\",\n\t\"order_id\": \"abc-123\",\n\t\"order_date\": \"08-15-2099\",\n\t\"order_insured\": \"true\",\n\t\"order_base_value\": \"67.50\",\n\t\"order_base_total\": \"67.50\",\n\t\"shipping_total\": \"7.49\",\n\t\"handling_total\": \"0\",\n\t\"sales_tax_total\": \"4.56\",\n\t\"customer_paid_insurance_price\": \"3.49\",\n\t\"payment_type\": \"CREDIT_CARD\",\n\t\"card_last_four\": \"0000\",\n\t\"card_expire_date\": \"12/99\",\n\t\"first_name\": \"Bob\",\n\t\"last_name\": \"Denver\",\n\t\"email\": \"[email protected]\",\n\t\"phone\": \"111-111-1111\",\n\t\"shipping_address_1\": \"123 Palm Tree Way\",\n\t\"shipping_city\": \"Island Town\",\n\t\"shipping_province\": \"Hawaii\",\n\t\"shipping_postal_code\": \"00000\",\n\t\"shipping_country\": \"USA\",\n\t\"billing_same_as_shipping\": \"true\"\n}")
  .asString();
                            
C# (ReSharp)
var client = new RestClient("https://api.routeit.cloud/open_api/v1/post/json/insure_order");
var request = new RestRequest(Method.POST);
request.AddHeader("cache-control", "no-cache");
request.AddHeader("content-type", "application/json");
request.AddHeader("secret", "YOUR-SECRET-HERE");
request.AddHeader("api_key", "YOUR-KEY-HERE");
request.AddParameter("application/json", "{\n\t\"route_quote_id\": \"4\",\n\t\"order_id\": \"abc-123\",\n\t\"order_date\": \"08-15-2099\",\n\t\"order_insured\": \"true\",\n\t\"order_base_value\": \"67.50\",\n\t\"order_base_total\": \"67.50\",\n\t\"shipping_total\": \"7.49\",\n\t\"handling_total\": \"0\",\n\t\"sales_tax_total\": \"4.56\",\n\t\"customer_paid_insurance_price\": \"3.49\",\n\t\"payment_type\": \"CREDIT_CARD\",\n\t\"card_last_four\": \"0000\",\n\t\"card_expire_date\": \"12/99\",\n\t\"first_name\": \"Bob\",\n\t\"last_name\": \"Denver\",\n\t\"email\": \"[email protected]\",\n\t\"phone\": \"111-111-1111\",\n\t\"shipping_address_1\": \"123 Palm Tree Way\",\n\t\"shipping_city\": \"Island Town\",\n\t\"shipping_province\": \"Hawaii\",\n\t\"shipping_postal_code\": \"00000\",\n\t\"shipping_country\": \"USA\",\n\t\"billing_same_as_shipping\": \"true\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
                            
Go
package main

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

func main() {

	url := "https://api.routeit.cloud/open_api/v1/post/json/insure_order"

	payload := strings.NewReader("{\n\t\"route_quote_id\": \"4\",\n\t\"order_id\": \"abc-123\",\n\t\"order_date\": \"08-15-2099\",\n\t\"order_insured\": \"true\",\n\t\"order_base_value\": \"67.50\",\n\t\"order_base_total\": \"67.50\",\n\t\"shipping_total\": \"7.49\",\n\t\"handling_total\": \"0\",\n\t\"sales_tax_total\": \"4.56\",\n\t\"customer_paid_insurance_price\": \"3.49\",\n\t\"payment_type\": \"CREDIT_CARD\",\n\t\"card_last_four\": \"0000\",\n\t\"card_expire_date\": \"12/99\",\n\t\"first_name\": \"Bob\",\n\t\"last_name\": \"Denver\",\n\t\"email\": \"[email protected]\",\n\t\"phone\": \"111-111-1111\",\n\t\"shipping_address_1\": \"123 Palm Tree Way\",\n\t\"shipping_city\": \"Island Town\",\n\t\"shipping_province\": \"Hawaii\",\n\t\"shipping_postal_code\": \"00000\",\n\t\"shipping_country\": \"USA\",\n\t\"billing_same_as_shipping\": \"true\"\n}")

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

	req.Header.Add("api_key", "YOUR-KEY-HERE")
	req.Header.Add("secret", "YOUR-SECRET-HERE")
	req.Header.Add("content-type", "application/json")
	req.Header.Add("cache-control", "no-cache")

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

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

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

}
                            
Python - http.client (Python 3)
import http.client

conn = http.client.HTTPSConnection("api.routeit.cloud")

payload = "{\n\t\"route_quote_id\": \"4\",\n\t\"order_id\": \"abc-123\",\n\t\"order_date\": \"08-15-2099\",\n\t\"order_insured\": \"true\",\n\t\"order_base_value\": \"67.50\",\n\t\"order_base_total\": \"67.50\",\n\t\"shipping_total\": \"7.49\",\n\t\"handling_total\": \"0\",\n\t\"sales_tax_total\": \"4.56\",\n\t\"customer_paid_insurance_price\": \"3.49\",\n\t\"payment_type\": \"CREDIT_CARD\",\n\t\"card_last_four\": \"0000\",\n\t\"card_expire_date\": \"12/99\",\n\t\"first_name\": \"Bob\",\n\t\"last_name\": \"Denver\",\n\t\"email\": \"[email protected]\",\n\t\"phone\": \"111-111-1111\",\n\t\"shipping_address_1\": \"123 Palm Tree Way\",\n\t\"shipping_city\": \"Island Town\",\n\t\"shipping_province\": \"Hawaii\",\n\t\"shipping_postal_code\": \"00000\",\n\t\"shipping_country\": \"USA\",\n\t\"billing_same_as_shipping\": \"true\"\n}"

headers = {
    'api_key': "YOUR-KEY-HERE",
    'secret': "YOUR-SECRET-HERE",
    'content-type': "application/json",
    'cache-control': "no-cache",
    }

conn.request("POST", "/open_api/v1/post/json/insure_order", payload, headers)

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

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

url = "https://api.routeit.cloud/open_api/v1/post/json/insure_order"

payload = "{\n\t\"route_quote_id\": \"4\",\n\t\"order_id\": \"abc-123\",\n\t\"order_date\": \"08-15-2099\",\n\t\"order_insured\": \"true\",\n\t\"order_base_value\": \"67.50\",\n\t\"order_base_total\": \"67.50\",\n\t\"shipping_total\": \"7.49\",\n\t\"handling_total\": \"0\",\n\t\"sales_tax_total\": \"4.56\",\n\t\"customer_paid_insurance_price\": \"3.49\",\n\t\"payment_type\": \"CREDIT_CARD\",\n\t\"card_last_four\": \"0000\",\n\t\"card_expire_date\": \"12/99\",\n\t\"first_name\": \"Bob\",\n\t\"last_name\": \"Denver\",\n\t\"email\": \"[email protected]\",\n\t\"phone\": \"111-111-1111\",\n\t\"shipping_address_1\": \"123 Palm Tree Way\",\n\t\"shipping_city\": \"Island Town\",\n\t\"shipping_province\": \"Hawaii\",\n\t\"shipping_postal_code\": \"00000\",\n\t\"shipping_country\": \"USA\",\n\t\"billing_same_as_shipping\": \"true\"\n}"
headers = {
    'api_key': "YOUR-KEY-HERE",
    'secret': "YOUR-SECRET-HERE",
    'content-type': "application/json",
    'cache-control': "no-cache"
    }

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

print(response.text)
                            
Ruby (NET::Http)
require 'uri'
require 'net/http'

url = URI("https://api.routeit.cloud/open_api/v1/post/json/insure_order")

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["api_key"] = 'YOUR-KEY-HERE'
request["secret"] = 'YOUR-SECRET-HERE'
request["content-type"] = 'application/json'
request["cache-control"] = 'no-cache'
request.body = "{\n\t\"route_quote_id\": \"4\",\n\t\"order_id\": \"abc-123\",\n\t\"order_date\": \"08-15-2099\",\n\t\"order_insured\": \"true\",\n\t\"order_base_value\": \"67.50\",\n\t\"order_base_total\": \"67.50\",\n\t\"shipping_total\": \"7.49\",\n\t\"handling_total\": \"0\",\n\t\"sales_tax_total\": \"4.56\",\n\t\"customer_paid_insurance_price\": \"3.49\",\n\t\"payment_type\": \"CREDIT_CARD\",\n\t\"card_last_four\": \"0000\",\n\t\"card_expire_date\": \"12/99\",\n\t\"first_name\": \"Bob\",\n\t\"last_name\": \"Denver\",\n\t\"email\": \"[email protected]\",\n\t\"phone\": \"111-111-1111\",\n\t\"shipping_address_1\": \"123 Palm Tree Way\",\n\t\"shipping_city\": \"Island Town\",\n\t\"shipping_province\": \"Hawaii\",\n\t\"shipping_postal_code\": \"00000\",\n\t\"shipping_country\": \"USA\",\n\t\"billing_same_as_shipping\": \"true\"\n}"

response = http.request(request)
puts response.read_body
                            
PHP - HttpRequest
<?php

$request = new HttpRequest();
$request->setUrl('https://api.routeit.cloud/open_api/v1/post/json/insure_order');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'content-type' => 'application/json',
  'secret' => 'YOUR-SECRET-HERE',
  'api_key' => 'YOUR-KEY-HERE'
));

$request->setBody('{
	"route_quote_id": "4",
	"order_id": "abc-123",
	"order_date": "08-15-2099",
	"order_insured": "true",
	"order_base_value": "67.50",
	"order_base_total": "67.50",
	"shipping_total": "7.49",
	"handling_total": "0",
	"sales_tax_total": "4.56",
	"customer_paid_insurance_price": "3.49",
	"payment_type": "CREDIT_CARD",
	"card_last_four": "0000",
	"card_expire_date": "12/99",
	"first_name": "Bob",
	"last_name": "Denver",
	"email": "[email protected]",
	"phone": "111-111-1111",
	"shipping_address_1": "123 Palm Tree Way",
	"shipping_city": "Island Town",
	"shipping_province": "Hawaii",
	"shipping_postal_code": "00000",
	"shipping_country": "USA",
	"billing_same_as_shipping": "true"
}');

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

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

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

$body = new http\Message\Body;
$body->append('{
	"route_quote_id": "4",
	"order_id": "abc-123",
	"order_date": "08-15-2099",
	"order_insured": "true",
	"order_base_value": "67.50",
	"order_base_total": "67.50",
	"shipping_total": "7.49",
	"handling_total": "0",
	"sales_tax_total": "4.56",
	"customer_paid_insurance_price": "3.49",
	"payment_type": "CREDIT_CARD",
	"card_last_four": "0000",
	"card_expire_date": "12/99",
	"first_name": "Bob",
	"last_name": "Denver",
	"email": "[email protected]",
	"phone": "111-111-1111",
	"shipping_address_1": "123 Palm Tree Way",
	"shipping_city": "Island Town",
	"shipping_province": "Hawaii",
	"shipping_postal_code": "00000",
	"shipping_country": "USA",
	"billing_same_as_shipping": "true"
}');

$request->setRequestUrl('https://api.routeit.cloud/open_api/v1/post/json/insure_order');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'content-type' => 'application/json',
  'secret' => 'YOUR-SECRET-HERE',
  'api_key' => 'YOUR-KEY-HERE'
));

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

echo $response->getBody();
                            
PHP - cURL
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.routeit.cloud/open_api/v1/post/json/insure_order",
  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\t\"route_quote_id\": \"4\",\n\t\"order_id\": \"abc-123\",\n\t\"order_date\": \"08-15-2099\",\n\t\"order_insured\": \"true\",\n\t\"order_base_value\": \"67.50\",\n\t\"order_base_total\": \"67.50\",\n\t\"shipping_total\": \"7.49\",\n\t\"handling_total\": \"0\",\n\t\"sales_tax_total\": \"4.56\",\n\t\"customer_paid_insurance_price\": \"3.49\",\n\t\"payment_type\": \"CREDIT_CARD\",\n\t\"card_last_four\": \"0000\",\n\t\"card_expire_date\": \"12/99\",\n\t\"first_name\": \"Bob\",\n\t\"last_name\": \"Denver\",\n\t\"email\": \"[email protected]\",\n\t\"phone\": \"111-111-1111\",\n\t\"shipping_address_1\": \"123 Palm Tree Way\",\n\t\"shipping_city\": \"Island Town\",\n\t\"shipping_province\": \"Hawaii\",\n\t\"shipping_postal_code\": \"00000\",\n\t\"shipping_country\": \"USA\",\n\t\"billing_same_as_shipping\": \"true\"\n}",
  CURLOPT_HTTPHEADER => array(
    "api_key: YOUR-KEY-HERE",
    "cache-control: no-cache",
    "content-type: application/json",
    "secret: YOUR-SECRET-HERE"
  ),
));

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
                            
HTTP
POST /open_api/v1/post/json/insure_order HTTP/1.1
Host: api.routeit.cloud
api_key: YOUR-KEY-HERE
secret: YOUR-SECRET-HERE
Content-Type: application/json
Cache-Control: no-cache

{
	"route_quote_id": "4",
	"order_id": "abc-123",
	"order_date": "08-15-2099",
	"order_insured": "true",
	"order_base_value": "67.50",
	"order_base_total": "67.50",
	"shipping_total": "7.49",
	"handling_total": "0",
	"sales_tax_total": "4.56",
	"customer_paid_insurance_price": "3.49",
	"payment_type": "CREDIT_CARD",
	"card_last_four": "0000",
	"card_expire_date": "12/99",
	"first_name": "Bob",
	"last_name": "Denver",
	"email": "[email protected]",
	"phone": "111-111-1111",
	"shipping_address_1": "123 Palm Tree Way",
	"shipping_city": "Island Town",
	"shipping_province": "Hawaii",
	"shipping_postal_code": "00000",
	"shipping_country": "USA",
	"billing_same_as_shipping": "true"
}
                            
Shell - wget
wget --quiet \
  --method POST \
  --header 'api_key: YOUR-KEY-HERE' \
  --header 'secret: YOUR-SECRET-HERE' \
  --header 'content-type: application/json' \
  --header 'cache-control: no-cache' \
  --body-data '{\n	"route_quote_id": "4",\n	"order_id": "abc-123",\n	"order_date": "08-15-2099",\n	"order_insured": "true",\n	"order_base_value": "67.50",\n	"order_base_total": "67.50",\n	"shipping_total": "7.49",\n	"handling_total": "0",\n	"sales_tax_total": "4.56",\n	"customer_paid_insurance_price": "3.49",\n	"payment_type": "CREDIT_CARD",\n	"card_last_four": "0000",\n	"card_expire_date": "12/99",\n	"first_name": "Bob",\n	"last_name": "Denver",\n	"email": "[email protected]",\n	"phone": "111-111-1111",\n	"shipping_address_1": "123 Palm Tree Way",\n	"shipping_city": "Island Town",\n	"shipping_province": "Hawaii",\n	"shipping_postal_code": "00000",\n	"shipping_country": "USA",\n	"billing_same_as_shipping": "true"\n}' \
  --output-document \
  - https://api.routeit.cloud/open_api/v1/post/json/insure_order
                            
Shell - Httpie
echo '{
	"route_quote_id": "4",
	"order_id": "abc-123",
	"order_date": "08-15-2099",
	"order_insured": "true",
	"order_base_value": "67.50",
	"order_base_total": "67.50",
	"shipping_total": "7.49",
	"handling_total": "0",
	"sales_tax_total": "4.56",
	"customer_paid_insurance_price": "3.49",
	"payment_type": "CREDIT_CARD",
	"card_last_four": "0000",
	"card_expire_date": "12/99",
	"first_name": "Bob",
	"last_name": "Denver",
	"email": "[email protected]",
	"phone": "111-111-1111",
	"shipping_address_1": "123 Palm Tree Way",
	"shipping_city": "Island Town",
	"shipping_province": "Hawaii",
	"shipping_postal_code": "00000",
	"shipping_country": "USA",
	"billing_same_as_shipping": "true"
}' |  \
  http POST https://api.routeit.cloud/open_api/v1/post/json/insure_order \
  api_key:YOUR-KEY-HERE \
  cache-control:no-cache \
  content-type:application/json \
  secret:YOUR-SECRET-HERE
                            
Shell - cURL
curl --request POST \
  --url https://api.routeit.cloud/open_api/v1/post/json/insure_order \
  --header 'api_key: YOUR-KEY-HERE' \
  --header 'cache-control: no-cache' \
  --header 'content-type: application/json' \
  --header 'secret: YOUR-SECRET-HERE' \
  --data '{\n	"route_quote_id": "4",\n	"order_id": "abc-123",\n	"order_date": "08-15-2099",\n	"order_insured": "true",\n	"order_base_value": "67.50",\n	"order_base_total": "67.50",\n	"shipping_total": "7.49",\n	"handling_total": "0",\n	"sales_tax_total": "4.56",\n	"customer_paid_insurance_price": "3.49",\n	"payment_type": "CREDIT_CARD",\n	"card_last_four": "0000",\n	"card_expire_date": "12/99",\n	"first_name": "Bob",\n	"last_name": "Denver",\n	"email": "[email protected]",\n	"phone": "111-111-1111",\n	"shipping_address_1": "123 Palm Tree Way",\n	"shipping_city": "Island Town",\n	"shipping_province": "Hawaii",\n	"shipping_postal_code": "00000",\n	"shipping_country": "USA",\n	"billing_same_as_shipping": "true"\n}'
                            
cURL
curl -X POST -H "api_key: YOUR-KEY-HERE" -H "secret: YOUR-SECRET-HERE" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H '{
	"route_quote_id": "4",
	"order_id": "abc-123",
	"order_date": "08-15-2099",
	"order_insured": "true",
	"order_base_value": "67.50",
	"order_base_total": "67.50",
	"shipping_total": "7.49",
	"handling_total": "0",
	"sales_tax_total": "4.56",
	"customer_paid_insurance_price": "3.49",
	"payment_type": "CREDIT_CARD",
	"card_last_four": "0000",
	"card_expire_date": "12/99",
	"first_name": "Bob",
	"last_name": "Denver",
	"email": "[email protected]",
	"phone": "111-111-1111",
	"shipping_address_1": "123 Palm Tree Way",
	"shipping_city": "Island Town",
	"shipping_province": "Hawaii",
	"shipping_postal_code": "00000",
	"shipping_country": "USA",
	"billing_same_as_shipping": "true"
}' "https://api.routeit.cloud/open_api/v1/post/json/insure_order"
                            
C (LibCurl)
CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.routeit.cloud/open_api/v1/post/json/insure_order");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "cache-control: no-cache");
headers = curl_slist_append(headers, "content-type: application/json");
headers = curl_slist_append(headers, "secret: YOUR-SECRET-HERE");
headers = curl_slist_append(headers, "api_key: YOUR-KEY-HERE");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n\t\"route_quote_id\": \"4\",\n\t\"order_id\": \"abc-123\",\n\t\"order_date\": \"08-15-2099\",\n\t\"order_insured\": \"true\",\n\t\"order_base_value\": \"67.50\",\n\t\"order_base_total\": \"67.50\",\n\t\"shipping_total\": \"7.49\",\n\t\"handling_total\": \"0\",\n\t\"sales_tax_total\": \"4.56\",\n\t\"customer_paid_insurance_price\": \"3.49\",\n\t\"payment_type\": \"CREDIT_CARD\",\n\t\"card_last_four\": \"0000\",\n\t\"card_expire_date\": \"12/99\",\n\t\"first_name\": \"Bob\",\n\t\"last_name\": \"Denver\",\n\t\"email\": \"[email protected]\",\n\t\"phone\": \"111-111-1111\",\n\t\"shipping_address_1\": \"123 Palm Tree Way\",\n\t\"shipping_city\": \"Island Town\",\n\t\"shipping_province\": \"Hawaii\",\n\t\"shipping_postal_code\": \"00000\",\n\t\"shipping_country\": \"USA\",\n\t\"billing_same_as_shipping\": \"true\"\n}");

CURLcode ret = curl_easy_perform(hnd);
                            
Objective-C (NSURL)
#import <Foundation/Foundation.h>

NSDictionary *headers = @{ @"api_key": @"YOUR-KEY-HERE",
                           @"secret": @"YOUR-SECRET-HERE",
                           @"content-type": @"application/json",
                           @"cache-control": @"no-cache" };
NSDictionary *parameters = @{ @"route_quote_id": @"4",
                              @"order_id": @"abc-123",
                              @"order_date": @"08-15-2099",
                              @"order_insured": @"true",
                              @"order_base_value": @"67.50",
                              @"order_base_total": @"67.50",
                              @"shipping_total": @"7.49",
                              @"handling_total": @"0",
                              @"sales_tax_total": @"4.56",
                              @"customer_paid_insurance_price": @"3.49",
                              @"payment_type": @"CREDIT_CARD",
                              @"card_last_four": @"0000",
                              @"card_expire_date": @"12/99",
                              @"first_name": @"Bob",
                              @"last_name": @"Denver",
                              @"email": @"[email protected]",
                              @"phone": @"111-111-1111",
                              @"shipping_address_1": @"123 Palm Tree Way",
                              @"shipping_city": @"Island Town",
                              @"shipping_province": @"Hawaii",
                              @"shipping_postal_code": @"00000",
                              @"shipping_country": @"USA",
                              @"billing_same_as_shipping": @"true" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://api.routeit.cloud/open_api/v1/post/json/insure_order"]
                                                       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];
                            
Swift (NSURL)
import Foundation

let headers = [
  "api_key": "YOUR-KEY-HERE",
  "secret": "YOUR-SECRET-HERE",
  "content-type": "application/json",
  "cache-control": "no-cache"
]
let parameters = [
  "route_quote_id": "4",
  "order_id": "abc-123",
  "order_date": "08-15-2099",
  "order_insured": "true",
  "order_base_value": "67.50",
  "order_base_total": "67.50",
  "shipping_total": "7.49",
  "handling_total": "0",
  "sales_tax_total": "4.56",
  "customer_paid_insurance_price": "3.49",
  "payment_type": "CREDIT_CARD",
  "card_last_four": "0000",
  "card_expire_date": "12/99",
  "first_name": "Bob",
  "last_name": "Denver",
  "email": "[email protected]",
  "phone": "111-111-1111",
  "shipping_address_1": "123 Palm Tree Way",
  "shipping_city": "Island Town",
  "shipping_province": "Hawaii",
  "shipping_postal_code": "00000",
  "shipping_country": "USA",
  "billing_same_as_shipping": "true"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.routeit.cloud/open_api/v1/post/json/insure_order")! 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()
                            
OCaml (Cohttp)
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "https://api.routeit.cloud/open_api/v1/post/json/insure_order" in
let headers = Header.init ()
  |> fun h -> Header.add h "api_key" "YOUR-KEY-HERE"
  |> fun h -> Header.add h "secret" "YOUR-SECRET-HERE"
  |> fun h -> Header.add h "content-type" "application/json"
  |> fun h -> Header.add h "cache-control" "no-cache"
in
let body = Cohttp_lwt_body.of_string "{\n\t\"route_quote_id\": \"4\",\n\t\"order_id\": \"abc-123\",\n\t\"order_date\": \"08-15-2099\",\n\t\"order_insured\": \"true\",\n\t\"order_base_value\": \"67.50\",\n\t\"order_base_total\": \"67.50\",\n\t\"shipping_total\": \"7.49\",\n\t\"handling_total\": \"0\",\n\t\"sales_tax_total\": \"4.56\",\n\t\"customer_paid_insurance_price\": \"3.49\",\n\t\"payment_type\": \"CREDIT_CARD\",\n\t\"card_last_four\": \"0000\",\n\t\"card_expire_date\": \"12/99\",\n\t\"first_name\": \"Bob\",\n\t\"last_name\": \"Denver\",\n\t\"email\": \"[email protected]\",\n\t\"phone\": \"111-111-1111\",\n\t\"shipping_address_1\": \"123 Palm Tree Way\",\n\t\"shipping_city\": \"Island Town\",\n\t\"shipping_province\": \"Hawaii\",\n\t\"shipping_postal_code\": \"00000\",\n\t\"shipping_country\": \"USA\",\n\t\"billing_same_as_shipping\": \"true\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
                            

Response:

The response returns JSON and consists of the result, error_messages, and data.
{
  "result": "SUCCESS",
  "error_messages": null,
  "data": {
    "route_order_id": 2,
    "route_quote_id": 5,
    "order_id": "abc-123",
    "order_date": "08-15-2099",
    "order_type": "PRODUCT",
    "order_insured": true,
    "order_base_value": 67.5,
    "order_base_total": 67.5,
    "shipping_total": 7.49,
    "handling_total": 0,
    "sales_tax_total": 4.56,
    "currency_code": "USD",
    "exchange_rate": 1,
    "insurance_cost_usd": 2.95,
    "customer_paid_insurance_price": 3.49,
    "payment_type": "CREDIT_CARD",
    "payment_type_other": null,
    "card_last_four": "0000",
    "card_expire_date": "12/99",
    "first_name": "Bob",
    "last_name": "Denver",
    "email": "[email protected]",
    "phone": "111-111-1111",
    "billing_address_1": "123 Palm Tree Way",
    "billing_address_2": null,
    "billing_city": "Island Town",
    "billing_province": "Hawaii",
    "billing_postal_code": "00000",
    "billing_country": "USA",
    "billing_same_as_shipping": true,
    "shipping_address_1": "123 Palm Tree Way",
    "shipping_address_2": null,
    "shipping_city": "Island Town",
    "shipping_province": "Hawaii",
    "shipping_postal_code": "00000",
    "shipping_country": "USA",
    "shipping_carrier_code": null,
    "shipping_method": null,
    "shipped_date": null,
    "tracking_number": null,
    "items": [
      {
        "item_sku": null,
        "item_id": "test_item_WN5",
        "item_qty": 2,
        "item_name": "Widget Number 5",
        "item_desc": null,
        "item_cost_per_unit": 33.75,
        "item_value_per_unit": 33.75
      }
    ],
    "custom_b1": null,
    "custom_b2": null,
    "custom_b3": null,
    "custom_b4": null,
    "ip_address": "192.182.192.205",
    "created": 1481849367948
  }
}
                
Response Body Key Response Body Value Description
result SUCCESS or ERROR Only returns SUCCESS or ERROR.
error_messages null or error messages Returns null if result is SUCCESS or a string[] of errors if result is ERROR.
data data envelope or null Returns data envelope if result is SUCCESS or null if result is ERROR.
route_order_id integer The Route Order ID.
route_quote_id integer The Route Quote ID.
order_id string Reiterates the value sent in to confirm acceptance.
order_date string Reiterates the value sent in to confirm acceptance.
order_type string Reiterates the value sent in with Request Quote.
order_insured boolean Reiterates the value sent in to confirm acceptance.
order_base_value float Reiterates the value sent in to confirm acceptance.
order_base_total float Reiterates the value sent in to confirm acceptance.
shipping_total float Reiterates the value sent in to confirm acceptance.
handling_total float Reiterates the value sent in to confirm acceptance.
sales_tax_total float Reiterates the value sent in to confirm acceptance.
currency_code string Reiterates the value sent in with Request Quote.
exchange_rate float Exchange rate of USD to order_currency_code at the time of quote.
insurance_cost_usd float Total cost of insurance USD, that Route will charge the merchant to insure this order.
customer_paid_insurance_price float Reiterates the value sent in to confirm acceptance.
payment_type string Reiterates the value sent in to confirm acceptance.
payment_type_other string Reiterates the value sent in to confirm acceptance.
card_last_four string Reiterates the value sent in to confirm acceptance.
card_expire_date string Reiterates the value sent in to confirm acceptance.
first_name string Reiterates the value sent in to confirm acceptance.
last_name string Reiterates the value sent in to confirm acceptance.
email string Reiterates the value sent in to confirm acceptance.
phone string Reiterates the value sent in to confirm acceptance.
shipping_address_1 string Reiterates the value sent in to confirm acceptance.
shipping_address_2 string Reiterates the value sent in to confirm acceptance.
shipping_city string Reiterates the value sent in to confirm acceptance.
shipping_province string Reiterates the value sent in to confirm acceptance.
shipping_postal_code string Reiterates the value sent in to confirm acceptance.
shipping_country string Reiterates the value sent in to confirm acceptance.
billing_same_as_shipping boolean Reiterates the value sent in to confirm acceptance.
billing_address_1 string Reiterates the value sent in to confirm acceptance.
billing_address_2 string Reiterates the value sent in to confirm acceptance.
billing_city string Reiterates the value sent in to confirm acceptance.
billing_province string Reiterates the value sent in to confirm acceptance.
billing_postal_code string Reiterates the value sent in to confirm acceptance.
billing_country string Reiterates the value sent in to confirm acceptance.
shipping_carrier_code string Reiterates the value sent in to confirm acceptance.
shipping_method string Reiterates the value sent in to confirm acceptance.
shipped_date string Reiterates the value sent in to confirm acceptance.
tracking_number string Reiterates the value sent in to confirm acceptance.
items item array Reiterates the array sent in to confirm acceptance.
item_sku string Reiterates the value sent in to confirm acceptance.
item_id string Reiterates the value sent in to confirm acceptance.
item_qty integer Reiterates the value sent in to confirm acceptance.
item_name string Reiterates the value sent in to confirm acceptance.
item_desc string Reiterates the value sent in to confirm acceptance.
item_cost_per_unit float Reiterates the value sent in to confirm acceptance.
item_value_per_unit float Reiterates the value sent in to confirm acceptance.
custom_b1 string Reiterates the value sent in to confirm acceptance.
custom_b2 string Reiterates the value sent in to confirm acceptance.
custom_b3 string Reiterates the value sent in to confirm acceptance.
custom_b4 string Reiterates the value sent in to confirm acceptance.
ip_address string IP address of the server making the request.
created timestamp Timestamp of the request.

Errors:

This API can return the following errors as strings:
This API requires request method POST.
This API call must include a valid partner_key in the header to authenticate.
Invalid api_key or secret.
No billing setup for these keys. Live API requests require valid billing. If this is a test, use the Test API keys.
Quote for route_quote_id ##### has already been used. Quotes can only be applied to a single order.
Quote for route_quote_id ##### has expired. Quotes must be used within 24 hours.
No quote exists for given api_key ##### and route_quote_id #####.
Missing ALL required parameters.
Missing required parameter order_id.
Missing required parameter order_date.
Parameter order_base_value must be greater than zero.
Parameter order_base_value is required to match the order_base_value used to generate quote_id #####.
Parameter order_base_total must be zero or greater.
Parameter order_base_total is required to match order_base_total used to generate quote_id #####.
Parameter shipping_total must be zero or greater.
Parameter handling_total must be zero or greater.
Parameter sales_tax_total must be zero or greater.
Parameter customer_paid_insurance_price must be zero or greater.
Missing required parameter payment_type.
Parameter card_last_four is required when payment_type is CREDIT_CARD.
Parameter card_expire_date is required when payment_type is CREDIT_CARD.
Parameter payment_type_other is required when payment_type is OTHER.
Missing required parameter first_name.
Missing required parameter last_name.
Missing required parameter email.
Missing required parameter phone.
Missing required parameter shipping_address_1.
Missing required parameter shipping_city.
Missing required parameter shipping_province.
Missing required parameter shipping_postal_code.
Missing required parameter shipping_country.
Value for shipping_carrier_code ### is invalid.
Missing required parameter billing_address_1.
Missing required parameter billing_city.
Missing required parameter billing_province.
Missing required parameter billing_postal_code.
Missing required parameter shipping_country.