Print orders
Preview one provider's compatibility for a canonical order
Resolves exactly one provider using the same explicit/event/default precedence as quoting. It never splits lines, substitutes products, creates a quote, payment, or provider order.
POST
/
v1
/
providers
/
compatibility
Preview one provider's compatibility for a canonical order
curl --request POST \
--url https://api.batchrelay.com/v1/providers/compatibility \
--header 'Content-Type: application/json' \
--data '
{
"order": {
"schema_version": 1,
"external_order_id": "<string>",
"ship_to": {
"name": "<string>",
"address_1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"address_2": "<string>"
},
"ship_from": {
"name": "<string>",
"address_1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"address_2": "<string>"
},
"items": [
{
"product": {
"id": "<string>",
"revision": 2
},
"quantity": 2,
"assets": [
{
"url": "<string>",
"asset_id": "<string>",
"template_render_id": "<string>",
"pixel_width": 2,
"pixel_height": 2,
"file_size_bytes": 2,
"hash": "<string>",
"printed_file_name": "<string>",
"origin": {
"design_id": "<string>",
"design_version": 2
}
}
],
"options": [
{
"option_id": "<string>",
"value": "<string>"
}
],
"texts": [
{
"value": "<string>"
}
]
}
],
"customer": {
"external_id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phone": "<string>"
}
},
"event_id": "<string>"
}
'import requests
url = "https://api.batchrelay.com/v1/providers/compatibility"
payload = {
"order": {
"schema_version": 1,
"external_order_id": "<string>",
"ship_to": {
"name": "<string>",
"address_1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"address_2": "<string>"
},
"ship_from": {
"name": "<string>",
"address_1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"address_2": "<string>"
},
"items": [
{
"product": {
"id": "<string>",
"revision": 2
},
"quantity": 2,
"assets": [
{
"url": "<string>",
"asset_id": "<string>",
"template_render_id": "<string>",
"pixel_width": 2,
"pixel_height": 2,
"file_size_bytes": 2,
"hash": "<string>",
"printed_file_name": "<string>",
"origin": {
"design_id": "<string>",
"design_version": 2
}
}
],
"options": [
{
"option_id": "<string>",
"value": "<string>"
}
],
"texts": [{ "value": "<string>" }]
}
],
"customer": {
"external_id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phone": "<string>"
}
},
"event_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
order: {
schema_version: 1,
external_order_id: '<string>',
ship_to: {
name: '<string>',
address_1: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
phone: '<string>',
address_2: '<string>'
},
ship_from: {
name: '<string>',
address_1: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
phone: '<string>',
address_2: '<string>'
},
items: [
{
product: {id: '<string>', revision: 2},
quantity: 2,
assets: [
{
url: '<string>',
asset_id: '<string>',
template_render_id: '<string>',
pixel_width: 2,
pixel_height: 2,
file_size_bytes: 2,
hash: '<string>',
printed_file_name: '<string>',
origin: {design_id: '<string>', design_version: 2}
}
],
options: [{option_id: '<string>', value: '<string>'}],
texts: [{value: '<string>'}]
}
],
customer: {
external_id: '<string>',
name: '<string>',
email: 'jsmith@example.com',
phone: '<string>'
}
},
event_id: '<string>'
})
};
fetch('https://api.batchrelay.com/v1/providers/compatibility', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.batchrelay.com/v1/providers/compatibility",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'order' => [
'schema_version' => 1,
'external_order_id' => '<string>',
'ship_to' => [
'name' => '<string>',
'address_1' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'phone' => '<string>',
'address_2' => '<string>'
],
'ship_from' => [
'name' => '<string>',
'address_1' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'phone' => '<string>',
'address_2' => '<string>'
],
'items' => [
[
'product' => [
'id' => '<string>',
'revision' => 2
],
'quantity' => 2,
'assets' => [
[
'url' => '<string>',
'asset_id' => '<string>',
'template_render_id' => '<string>',
'pixel_width' => 2,
'pixel_height' => 2,
'file_size_bytes' => 2,
'hash' => '<string>',
'printed_file_name' => '<string>',
'origin' => [
'design_id' => '<string>',
'design_version' => 2
]
]
],
'options' => [
[
'option_id' => '<string>',
'value' => '<string>'
]
],
'texts' => [
[
'value' => '<string>'
]
]
]
],
'customer' => [
'external_id' => '<string>',
'name' => '<string>',
'email' => 'jsmith@example.com',
'phone' => '<string>'
]
],
'event_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.batchrelay.com/v1/providers/compatibility"
payload := strings.NewReader("{\n \"order\": {\n \"schema_version\": 1,\n \"external_order_id\": \"<string>\",\n \"ship_to\": {\n \"name\": \"<string>\",\n \"address_1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"address_2\": \"<string>\"\n },\n \"ship_from\": {\n \"name\": \"<string>\",\n \"address_1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"address_2\": \"<string>\"\n },\n \"items\": [\n {\n \"product\": {\n \"id\": \"<string>\",\n \"revision\": 2\n },\n \"quantity\": 2,\n \"assets\": [\n {\n \"url\": \"<string>\",\n \"asset_id\": \"<string>\",\n \"template_render_id\": \"<string>\",\n \"pixel_width\": 2,\n \"pixel_height\": 2,\n \"file_size_bytes\": 2,\n \"hash\": \"<string>\",\n \"printed_file_name\": \"<string>\",\n \"origin\": {\n \"design_id\": \"<string>\",\n \"design_version\": 2\n }\n }\n ],\n \"options\": [\n {\n \"option_id\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"texts\": [\n {\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"customer\": {\n \"external_id\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\"\n }\n },\n \"event_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.batchrelay.com/v1/providers/compatibility")
.header("Content-Type", "application/json")
.body("{\n \"order\": {\n \"schema_version\": 1,\n \"external_order_id\": \"<string>\",\n \"ship_to\": {\n \"name\": \"<string>\",\n \"address_1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"address_2\": \"<string>\"\n },\n \"ship_from\": {\n \"name\": \"<string>\",\n \"address_1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"address_2\": \"<string>\"\n },\n \"items\": [\n {\n \"product\": {\n \"id\": \"<string>\",\n \"revision\": 2\n },\n \"quantity\": 2,\n \"assets\": [\n {\n \"url\": \"<string>\",\n \"asset_id\": \"<string>\",\n \"template_render_id\": \"<string>\",\n \"pixel_width\": 2,\n \"pixel_height\": 2,\n \"file_size_bytes\": 2,\n \"hash\": \"<string>\",\n \"printed_file_name\": \"<string>\",\n \"origin\": {\n \"design_id\": \"<string>\",\n \"design_version\": 2\n }\n }\n ],\n \"options\": [\n {\n \"option_id\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"texts\": [\n {\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"customer\": {\n \"external_id\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\"\n }\n },\n \"event_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.batchrelay.com/v1/providers/compatibility")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"order\": {\n \"schema_version\": 1,\n \"external_order_id\": \"<string>\",\n \"ship_to\": {\n \"name\": \"<string>\",\n \"address_1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"address_2\": \"<string>\"\n },\n \"ship_from\": {\n \"name\": \"<string>\",\n \"address_1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"address_2\": \"<string>\"\n },\n \"items\": [\n {\n \"product\": {\n \"id\": \"<string>\",\n \"revision\": 2\n },\n \"quantity\": 2,\n \"assets\": [\n {\n \"url\": \"<string>\",\n \"asset_id\": \"<string>\",\n \"template_render_id\": \"<string>\",\n \"pixel_width\": 2,\n \"pixel_height\": 2,\n \"file_size_bytes\": 2,\n \"hash\": \"<string>\",\n \"printed_file_name\": \"<string>\",\n \"origin\": {\n \"design_id\": \"<string>\",\n \"design_version\": 2\n }\n }\n ],\n \"options\": [\n {\n \"option_id\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"texts\": [\n {\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"customer\": {\n \"external_id\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\"\n }\n },\n \"event_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"provider": {
"provider_id": "whcc",
"provider_selection_source": "explicit",
"provider_environment": "sandbox",
"provider_availability": "preview",
"provider_capability_revision": "<string>",
"provider_recipe_revision": "<string>"
},
"lines": [
{
"line_index": 1,
"product_id": "<string>",
"available": true,
"reason_code": "<string>",
"message": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"docs_url": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"docs_url": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"docs_url": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"docs_url": "<string>",
"request_id": "<string>"
}Body
application/json
- Option 1
- Option 2
⌘I
Preview one provider's compatibility for a canonical order
curl --request POST \
--url https://api.batchrelay.com/v1/providers/compatibility \
--header 'Content-Type: application/json' \
--data '
{
"order": {
"schema_version": 1,
"external_order_id": "<string>",
"ship_to": {
"name": "<string>",
"address_1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"address_2": "<string>"
},
"ship_from": {
"name": "<string>",
"address_1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"address_2": "<string>"
},
"items": [
{
"product": {
"id": "<string>",
"revision": 2
},
"quantity": 2,
"assets": [
{
"url": "<string>",
"asset_id": "<string>",
"template_render_id": "<string>",
"pixel_width": 2,
"pixel_height": 2,
"file_size_bytes": 2,
"hash": "<string>",
"printed_file_name": "<string>",
"origin": {
"design_id": "<string>",
"design_version": 2
}
}
],
"options": [
{
"option_id": "<string>",
"value": "<string>"
}
],
"texts": [
{
"value": "<string>"
}
]
}
],
"customer": {
"external_id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phone": "<string>"
}
},
"event_id": "<string>"
}
'import requests
url = "https://api.batchrelay.com/v1/providers/compatibility"
payload = {
"order": {
"schema_version": 1,
"external_order_id": "<string>",
"ship_to": {
"name": "<string>",
"address_1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"address_2": "<string>"
},
"ship_from": {
"name": "<string>",
"address_1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"address_2": "<string>"
},
"items": [
{
"product": {
"id": "<string>",
"revision": 2
},
"quantity": 2,
"assets": [
{
"url": "<string>",
"asset_id": "<string>",
"template_render_id": "<string>",
"pixel_width": 2,
"pixel_height": 2,
"file_size_bytes": 2,
"hash": "<string>",
"printed_file_name": "<string>",
"origin": {
"design_id": "<string>",
"design_version": 2
}
}
],
"options": [
{
"option_id": "<string>",
"value": "<string>"
}
],
"texts": [{ "value": "<string>" }]
}
],
"customer": {
"external_id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phone": "<string>"
}
},
"event_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
order: {
schema_version: 1,
external_order_id: '<string>',
ship_to: {
name: '<string>',
address_1: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
phone: '<string>',
address_2: '<string>'
},
ship_from: {
name: '<string>',
address_1: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
phone: '<string>',
address_2: '<string>'
},
items: [
{
product: {id: '<string>', revision: 2},
quantity: 2,
assets: [
{
url: '<string>',
asset_id: '<string>',
template_render_id: '<string>',
pixel_width: 2,
pixel_height: 2,
file_size_bytes: 2,
hash: '<string>',
printed_file_name: '<string>',
origin: {design_id: '<string>', design_version: 2}
}
],
options: [{option_id: '<string>', value: '<string>'}],
texts: [{value: '<string>'}]
}
],
customer: {
external_id: '<string>',
name: '<string>',
email: 'jsmith@example.com',
phone: '<string>'
}
},
event_id: '<string>'
})
};
fetch('https://api.batchrelay.com/v1/providers/compatibility', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.batchrelay.com/v1/providers/compatibility",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'order' => [
'schema_version' => 1,
'external_order_id' => '<string>',
'ship_to' => [
'name' => '<string>',
'address_1' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'phone' => '<string>',
'address_2' => '<string>'
],
'ship_from' => [
'name' => '<string>',
'address_1' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'phone' => '<string>',
'address_2' => '<string>'
],
'items' => [
[
'product' => [
'id' => '<string>',
'revision' => 2
],
'quantity' => 2,
'assets' => [
[
'url' => '<string>',
'asset_id' => '<string>',
'template_render_id' => '<string>',
'pixel_width' => 2,
'pixel_height' => 2,
'file_size_bytes' => 2,
'hash' => '<string>',
'printed_file_name' => '<string>',
'origin' => [
'design_id' => '<string>',
'design_version' => 2
]
]
],
'options' => [
[
'option_id' => '<string>',
'value' => '<string>'
]
],
'texts' => [
[
'value' => '<string>'
]
]
]
],
'customer' => [
'external_id' => '<string>',
'name' => '<string>',
'email' => 'jsmith@example.com',
'phone' => '<string>'
]
],
'event_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.batchrelay.com/v1/providers/compatibility"
payload := strings.NewReader("{\n \"order\": {\n \"schema_version\": 1,\n \"external_order_id\": \"<string>\",\n \"ship_to\": {\n \"name\": \"<string>\",\n \"address_1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"address_2\": \"<string>\"\n },\n \"ship_from\": {\n \"name\": \"<string>\",\n \"address_1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"address_2\": \"<string>\"\n },\n \"items\": [\n {\n \"product\": {\n \"id\": \"<string>\",\n \"revision\": 2\n },\n \"quantity\": 2,\n \"assets\": [\n {\n \"url\": \"<string>\",\n \"asset_id\": \"<string>\",\n \"template_render_id\": \"<string>\",\n \"pixel_width\": 2,\n \"pixel_height\": 2,\n \"file_size_bytes\": 2,\n \"hash\": \"<string>\",\n \"printed_file_name\": \"<string>\",\n \"origin\": {\n \"design_id\": \"<string>\",\n \"design_version\": 2\n }\n }\n ],\n \"options\": [\n {\n \"option_id\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"texts\": [\n {\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"customer\": {\n \"external_id\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\"\n }\n },\n \"event_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.batchrelay.com/v1/providers/compatibility")
.header("Content-Type", "application/json")
.body("{\n \"order\": {\n \"schema_version\": 1,\n \"external_order_id\": \"<string>\",\n \"ship_to\": {\n \"name\": \"<string>\",\n \"address_1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"address_2\": \"<string>\"\n },\n \"ship_from\": {\n \"name\": \"<string>\",\n \"address_1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"address_2\": \"<string>\"\n },\n \"items\": [\n {\n \"product\": {\n \"id\": \"<string>\",\n \"revision\": 2\n },\n \"quantity\": 2,\n \"assets\": [\n {\n \"url\": \"<string>\",\n \"asset_id\": \"<string>\",\n \"template_render_id\": \"<string>\",\n \"pixel_width\": 2,\n \"pixel_height\": 2,\n \"file_size_bytes\": 2,\n \"hash\": \"<string>\",\n \"printed_file_name\": \"<string>\",\n \"origin\": {\n \"design_id\": \"<string>\",\n \"design_version\": 2\n }\n }\n ],\n \"options\": [\n {\n \"option_id\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"texts\": [\n {\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"customer\": {\n \"external_id\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\"\n }\n },\n \"event_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.batchrelay.com/v1/providers/compatibility")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"order\": {\n \"schema_version\": 1,\n \"external_order_id\": \"<string>\",\n \"ship_to\": {\n \"name\": \"<string>\",\n \"address_1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"address_2\": \"<string>\"\n },\n \"ship_from\": {\n \"name\": \"<string>\",\n \"address_1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"phone\": \"<string>\",\n \"address_2\": \"<string>\"\n },\n \"items\": [\n {\n \"product\": {\n \"id\": \"<string>\",\n \"revision\": 2\n },\n \"quantity\": 2,\n \"assets\": [\n {\n \"url\": \"<string>\",\n \"asset_id\": \"<string>\",\n \"template_render_id\": \"<string>\",\n \"pixel_width\": 2,\n \"pixel_height\": 2,\n \"file_size_bytes\": 2,\n \"hash\": \"<string>\",\n \"printed_file_name\": \"<string>\",\n \"origin\": {\n \"design_id\": \"<string>\",\n \"design_version\": 2\n }\n }\n ],\n \"options\": [\n {\n \"option_id\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"texts\": [\n {\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"customer\": {\n \"external_id\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\"\n }\n },\n \"event_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"provider": {
"provider_id": "whcc",
"provider_selection_source": "explicit",
"provider_environment": "sandbox",
"provider_availability": "preview",
"provider_capability_revision": "<string>",
"provider_recipe_revision": "<string>"
},
"lines": [
{
"line_index": 1,
"product_id": "<string>",
"available": true,
"reason_code": "<string>",
"message": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"docs_url": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"docs_url": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"docs_url": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"docs_url": "<string>",
"request_id": "<string>"
}