{"info":{"_postman_id":"ef6dd1fe-c0a0-ec13-86b8-36b81ff3d35a","name":"Tradeprint API Sandbox","description":"Sandbox environment for Tradeprint API. Allows customers to interact with the API endpoints in preparation for a full integration.\n\n**Version**\n\nTradeprint API V2.2. Current and latest version.\n\n**Responses**\n\nAPI Responses are in JSON format, each response will have a success boolean associated with it, if this is false, your request has failed.\n\n**Got Questions?**\n\nIf you have any questions about the API do not hesitate to get in touch with our API Support Team: [Sales@tradeprint.co.uk](https://mailto:Sales@tradeprint.co.uk).","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Authentication","item":[{"name":"Login with the API","event":[{"listen":"test","script":{"id":"987d633a-ac79-4abc-aaa9-f96194d6cfc6","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"token\", jsonData.result.token);","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check token success\", function() {"," pm.expect(jsonData.success).to.be.true;"," pm.expect(jsonData.result.expiresIn).to.eql(\"8h\");","});",""],"type":"text/javascript"}}],"id":"024e60bc-f20f-432e-9352-b5e782cee49c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{username}}\",\n    \"password\": \"{{password}}\"\n} "},"url":"https://sandbox.orders.tradeprint.io/v2/login","description":"Login call to retrieve JWT required for authentication on subsequent calls\n\n| Field | Type | Required |\n| --- | --- | --- |\n| `username` | string | yes |\n| `password` | string | yes |\n\nDon't have Sandbox credentials? Get in touch with us at [Sales@tradeprint.co.uk](https://mailto:Sales@tradeprint.co.uk)."},"response":[{"id":"32a749d7-e861-4234-8aac-621ddc6e4c92","name":"Login Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\"username\":\"{{username}}\",\n\"password\":\"{{password}}\"\n}"},"url":"https://{{environmentUrl}}/v2/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Content-Type,X-Amz-Date,Authorization,X-Api-Key,x-requested-with","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"270","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","description":"The mime type of this content"},{"key":"Date","value":"Wed, 08 Aug 2018 20:08:47 GMT","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 f9405e4cfcaaebc08a9420572068f68f.cloudfront.net (CloudFront)","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"Fn-2J5dyy0pYdFsPz5_QWb3gu21ANaay2CW_JWrR5rQj3moEn1ZeUg==","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5b6b4dce-427c23389313d648b3eb64d8;Sampled=0","description":"Custom header"},{"key":"X-Cache","value":"Miss from cloudfront","description":"Custom header"},{"key":"x-amz-apigw-id","value":"LUkYUGD_DoEF8ZA=","description":"Custom header"},{"key":"x-amzn-RequestId","value":"db96f7a1-9b46-11e8-af8d-3fdb6ea72c9e","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"token\": \"token\",\n        \"tpCustomerId\": \"bdd49033-b223-4e58-a6b4-60980d5f8b7c\",\n        \"expiresIn\": \"8h\"\n    }\n}"},{"id":"909b3db2-d12c-4c79-b21e-774c5c92aa4b","name":"Login Failed","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\"username\":\"{{username}}\",\n\"password\":\"{{password}}\"\n}"},"url":"https://{{environmentUrl}}/v2/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Headers","value":"Content-Type,X-Amz-Date,Authorization,X-Api-Key,x-requested-with","description":"Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."},{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"65","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","description":"The mime type of this content"},{"key":"Date","value":"Wed, 08 Aug 2018 20:18:25 GMT","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 dbc9499ce28b1cb3c55c06f9f7b8bd0c.cloudfront.net (CloudFront)","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"Idldf0H-o_HnOQWBLPVF7Ojq9e-jxi-8pObNAc2ApbIgJ-WmBNiSyw==","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5b6b5011-0b2f4e322a89eed2bfe3be06;Sampled=0","description":"Custom header"},{"key":"X-Cache","value":"Error from cloudfront","description":"Custom header"},{"key":"x-amz-apigw-id","value":"LUlyrGUODoEF4aQ=","description":"Custom header"},{"key":"x-amzn-RequestId","value":"343b44b8-9b48-11e8-b68d-b790522f57bc","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":false,\"errorMessage\":\"Unauthorized\",\"errorDetails\":{}}"}],"_postman_id":"024e60bc-f20f-432e-9352-b5e782cee49c"}],"id":"905025a1-10ab-45f8-8168-5b6f57991f65","_postman_id":"905025a1-10ab-45f8-8168-5b6f57991f65"},{"name":"Orders","item":[{"name":"Submit New Order","event":[{"listen":"test","script":{"id":"3b814b35-f9a9-4684-8346-0d62cdc1f148","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"orderReferenceV2\", jsonData.result.order.orderReference);","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Submit news order response check\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.success).to.eql(true);","    pm.expect(jsonData.result.order.status).to.eql(\"DOWNLOADING_ARTWORK\");","    pm.expect(jsonData.result.order.hasError).to.eql(false);","});",""],"type":"text/javascript"}}],"id":"7df5f1d2-2e24-43fd-894a-a2c3e306e7cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"POST","header":[{"description":"Sets content type to JSON","key":"Content-Type","value":"application/json"},{"description":"JWT Token Bearer","key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"GBP\",\n    \"orderItems\": [\n        {\n            \"productId\": \"PRD-KJDNOQFE\",\n            \"fileUrls\": [\n                \"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"\n            ],\n            \"quantity\": 1,\n            \"serviceLevel\": \"Express\",\n            \"productionData\": {\n                \"Size\": \"A5 Landscape\",\n                \"Pagecount\": \"44\",\n                \"Lamination\": \"None\",\n                \"Paper Type\": \"170gsm Art Paper Silk Finish\",\n                \"Custom Size\": \"1\",\n                \"Cover Material\": \"200gsm Art Paper Silk Finish\"\n            },\n            \"partnerContactDetails\": {\n                \"firstName\": \"John\",\n                \"lastName\": \"Doe\",\n                \"email\": \"john@doe.com\",\n                \"contactPhone\": \"07655 568 134\",\n                \"companyName\": \"Tradeprint Distribution Ltd.\"\n            },\n            \"deliveryAddress\": {\n                \"companyName\": \"Doe Distribution\",\n                \"firstName\": \"John\",\n                \"lastName\": \"Doe\",\n                \"add1\": \"1 Magic street\",\n                \"add2\": \"string\",\n                \"town\": \"London\",\n                \"postcode\": \"E15 4EA\",\n                \"country\": \"GB\"\n            },\n            \"extraData\": {\n                \"customer\": \"orderDesk\"\n            }\n        }\n    ],\n    \"billingAddress\": {\n        \"firstName\": \"Steeve\",\n        \"lastName\": \"Roucaute\",\n        \"add1\": \"Tradeprint Distribution Ltd\",\n        \"add2\": \"2 FULTON ROAD\",\n        \"postcode\": \"DD2 4SW\",\n        \"town\": \"DUNDEE\",\n        \"country\": \"GB\",\n        \"companyName\": \"TRADEPRINT DISTRIBUTION LTD\",\n        \"email\": \"steeve@tradeprint.co.uk\",\n        \"contactPhone\": \"0123456879\",\n        \"mobile\": \"0751424242\"\n    }\n}"},"url":"https://sandbox.orders.tradeprint.io/v2/orders/","description":"POST a new order for fullfilment\n\n**Artwork**\n\nSpecify a url to a valid file (must be public and accessible from the world wide web). Maximum size is 2GB.\n\n**File Types Supported**\n\nPDF is the default acceptable format. If your workflow requires passing other formats then you can leverage our [artworkService]().\n\nOrders sent to the API take between 2-5 minutes to be placed into the system for production, once an order is in `Placed` state it means it’s been accepted and you can query the order using the GET endpoint with your supplied orderReference to get the status of each individual orderItem on the order.\n\n**Placing Orders Without Supplying Artwork**\n\nTradeprint API offers placing orders without supplying artwork. For individual `orderItems` orders will be injected as normal but won't be manufactured until the relevant artwork is supplied at a later stage.\n\n**Notes on withoutArtwork**\n\nEach item is processed separately, so if you place an order with items A + B and only supplied artwork for B then A would not be manufactured but B would.\n\nThe `withoutArtwork` field must be set to `true` if you want to supply an empty `fileUrls` array.\n\nWhen supplying an orderItem without artwork, it will end up in state `WaitingForArtwork` where it will be remain until the relevant artwork is supplied.\n\n### Top Level Fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `currency` | string | yes | The currency used for the purchase. |\n| `orderReference` | string | no | Specify your own order reference number or string (This must be unique) or don’t include it and the API will generate this for you, you can use this to query your orders using the GET status. |\n| `orderItems` | array | yes | The order items details (see below). |\n| `billingAddress` | object | yes | The billing address details (see below). |\n\n### Order Items\n\n`orderItems` object structure\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `itemReference` | string | no | Specify your own item reference number or string (This must be unique at order level) or don’t include it and the API will generate this for you. |\n| `productId` | string | yes | Tradeprint ProductId. |\n| `withoutArtwork` | boolean | no | Allow to submit an order and supply the artwork at a later date. |\n| `artworkService` | string | no | Supply the artwork service: `Just Print`, `File Check`, `File Assist` or `File Check with Proofing`. |\n| `quantity` | number | yes | The quantity to be manufactured. |\n| `fileUrls` | array | yes | Artwork file URL(s). |\n| `serviceLevel` | string | yes | Manufacturing speed (`Saver`, `Standard`, `Express`, `Same Day`). |\n| `productionData` | object | yes | Relevant production attributes can be found within your pricelist and add a link to products endpoint. |\n| `partnerContactDetails` | object | yes | The contact details (see details below). |\n| `deliveryAddress` | object | yes | Delivery address details. |\n| `extraData` | object | yes | Order metatadata. |\n| `quantityUpgrade` | object | no | Roundup to the next available quantity if the supplied `quantity` does not exist. |\n\nFor more information about `artworkService` including pricing please click [here]().\n\n### Order Item Quantity Upgrade\n\n`quantityUpgrade` object structure\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `maxQuantity` | number | yes | If your `quantity` is unavailable it will be upgraded to the next available quantity providing it does not exceed this value. |\n| `maxPrice` | number | yes | If your `quantity` is unavailable it will be upgraded to the next available quantity providing its price does not exceed this value. |\n\n### Order Item Partner Contact Details\n\n`partnerContactDetails` object strcture\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `firstName` | string | yes | The first name of the agent. |\n| `lastName` | string | yes | The last name of the agent. |\n| `email` | string | yes | The email address of the agent. |\n| `contactPhone` | string | yes | The phone number of the agent. |\n| `companyName` | string | yes | The company placing the order with Tradeprint. |\n\n### Order Item Delivery Address\n\n`deliveryAddress` object structure\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `companyName` | string | no | The company receiving the manufactured order. |\n| `firstName` | string | yes | The first name of the person receiving the manufactured order. |\n| `lastName` | string | yes | The last name of the person receiving the manufactured order. |\n| `add1` | string | yes | The first line of address where the order is to be delivered. |\n| `add2` | string | no | The second line of address where the order is to be delivered. |\n| `town` | string | yes | The town where the order is to be delivered. |\n| `postcode` | string | yes | The postcode where the order is to be delivered. |\n| `country` | string | yes | The country where the order is to be delivered. |\n| `deliveryComments` | string | no | Any comments relating to the delivery. |\n| `mobilePhone` | string | no | Mobile Phone value will be starting with 07 and will be 11 digits e.g. 07986453234 |\n| `email` | string | no | Email Address |\n\n### Order Item Extra Data\n\n`extraData` object structure\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `comments` | string | no | Any comment relating to manufacturing. |\n| `partnerItemId` | string | no | The partner's own itemId. |\n| `merchandisingProductName` | string | no | The partner's own product name. |\n| `referenceLabel` | string | no | The partner's label for internal order identification, visible in the \"Your Account\" area of the Tradeprint website and used as reference for transactional emails. |\n| `purchaseOrder` | string | no | The partner's purchase order number, visible in the \"Your Account\" area of the Tradeprint website. |\n\nOrders can be searched in the \"Your Account\" area of the Tradeprint website using both `referenceLabel` (_Referrence_) and `purchaseOrder` (_PO Number_).\n\n### Billing Address\n\n`billingAddress` object structure\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `firstName` | string | yes | The first name used for billing. |\n| `lastName` | string | yes | The last name used for billing. |\n| `add1` | string | yes | The first line of address where the order is to be invoiced. |\n| `add2` | string | no | The second line of address where the order is to be invoiced. |\n| `postcode` | string | yes | The postcode where the order is to be invoiced. |\n| `town` | string | yes | The city where the order is to be invoiced. |\n| `country` | string | yes | The country where the order is to be invoiced. |\n| `companyName` | string | no | The company where the order is to be invoiced. |\n| `email` | string | yes | The email address for invoicing. |\n| `contactPhone` | string | no | The phone number for invoicing. |\n| `mobile` | string | no | The mobile number for invoicing. |"},"response":[{"id":"632d410f-bf07-4705-b6ca-3ad54905cdad","name":"Missing Attribute","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"Sets content type to JSON","type":"text"},{"key":"Authorization","value":"Bearer {{token}}","description":"JWT Token Bearer","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"currency\": \"GBP\",\n  \"orderReference\": \"YOUR_ORDER_REFERENCEO\",\n  \"orderItems\": [\n    {\n\t  \"itemReference\": \"YOUR_ITEM_REFERENCE\",\t\n      \"productId\": \"\",\n      \"fileUrls\": [\n        \"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"\n      ],\n      \"quantity\": 500,\n      \"serviceLevel\": \"Standard\",\n      \"productionData\": {\n        \"Paper Type\":\"120gsm Premium Smooth White Paper\",\n        \"Sides Printed\":\"Single Sided\",\n        \"Sets\":\"1\"\n      },\n        \"partnerContactDetails\":\n        {\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"email\": \"john@doe.com\",\n            \"contactPhone\": \"0987654321\",\n            \"companyName\": \"Tradeprint Distribution Ltd\"\n        },\n      \"deliveryAddress\": {\n        \"companyName\": \"Doe Distribution\",\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"add1\": \"1 Magic street\",\n        \"add2\": \"string\",\n        \"town\": \"London\",\n        \"postcode\": \"E15 4EA\",\n        \"country\": \"GB\",\n        \"deliveryComments\": \"Please leave at front door\"\n      },\n      \"extraData\": {\n        \"comments\": \"Please ensure not to trim into text\",\n        \"partnerItemId\": \"doe_12345\",\n        \"merchandisingProductName\": \"Comp Slip\",\n        \"referenceLabel\": \"Example  new shop\",\n        \"purchaseOrder\": \"12345679\"\n      }\n    }\n  ],\n    \"billingAddress\":\n    {\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"add1\": \"Tradeprint Distribution Ltd\",\n        \"add2\": \"2 FULTON ROAD\",\n        \"postcode\": \"DD2 4SW\",\n        \"town\": \"DUNDEE\",\n        \"country\": \"GB\",\n        \"companyName\": \"TRADEPRINT DISTRIBUTION LTD\",\n        \"email\": \"john@doe.com\",\n        \"contactPhone\": \"0123456879\",\n        \"mobile\": \"0987654321\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{environmentUrl}}/v2/orders"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"253","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","description":"The mime type of this content"},{"key":"Date","value":"Wed, 08 Aug 2018 20:21:58 GMT","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 f9405e4cfcaaebc08a9420572068f68f.cloudfront.net (CloudFront)","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"LOb7XRGEe8UfkbasN6BGXPXvTqWLBGThQJSOh_PO6L1qv-8upoNH1A==","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5b6b50e6-32fc50910fc5bd9b4d1acb3d;Sampled=0","description":"Custom header"},{"key":"X-Cache","value":"Error from cloudfront","description":"Custom header"},{"key":"x-amz-apigw-id","value":"LUmUCEL9DoEF4aQ=","description":"Custom header"},{"key":"x-amzn-RequestId","value":"b3863e73-9b48-11e8-b68d-b790522f57bc","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\r\n  \"success\": false,\r\n  \"errorMessage\": \"Validation failed\",\r\n  \"errorDetails\": [\r\n    {\r\n      \"property\": \"instance.orderItems[0].productId\",\r\n      \"message\": \"does not meet minimum length of 1\",\r\n      \"argument\": 1,\r\n      \"stack\": \"instance.orderItems[0].productId does not meet minimum length of 1\"\r\n    }\r\n  ]\r\n}"},{"id":"69b45514-f1e9-4e73-a233-750565719e37","name":"Duplicated Order","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"Sets content type to JSON","disabled":false},{"key":"Authorization","value":"Bearer {{token}}","description":"JWT Token Bearer","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"currency\": \"GBP\",\n  \"orderReference\": \"YOUR_ORDER_REFERENCE\",\n  \"orderItems\": [\n    {\n\t  \"itemReference\": \"YOUR_ITEM_REFERENCE\",\t\n      \"productFamily\": \"smallPrint\",\n      \"productId\": \"PRD-9N6IUQGM\",\n      \"fileUrls\": [\n        \"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"\n      ],\n      \"quantity\": 500,\n      \"serviceLevel\": \"Standard\",\n      \"productionData\": {\n        \"Paper Type\":\"120gsm Premium Smooth White Paper\",\n        \"Sides Printed\":\"Single Sided\",\n        \"Sets\":\"1\"\n      },\n        \"partnerContactDetails\":\n        {\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"email\": \"john@doe.com\",\n            \"contactPhone\": \"0987654321\",\n            \"companyName\": \"Tradeprint Distribution Ltd\"\n        },\n      \"deliveryAddress\": {\n        \"companyName\": \"Doe Distribution\",\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"add1\": \"1 Magic street\",\n        \"add2\": \"string\",\n        \"town\": \"London\",\n        \"postcode\": \"E15 4EA\",\n        \"country\": \"GB\"\n        },\n      \"extraData\": {\n        \"comments\": \"Please ensure not to trim into text\",\n        \"partnerItemId\": \"doe_12345\",\n        \"merchandisingProductName\": \"Comp Slip\",\n        \"referenceLabel\": \"For Sandeep new shop\",\n        \"purchaseOrder\": \"12345679\"\n      }\n    }\n  ],\n    \"billingAddress\":\n    {\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"add1\": \"Tradeprint Distribution Ltd\",\n        \"add2\": \"2 FULTON ROAD\",\n        \"postcode\": \"DD2 4SW\",\n        \"town\": \"DUNDEE\",\n        \"country\": \"GB\",\n        \"companyName\": \"TRADEPRINT DISTRIBUTION LTD\",\n        \"email\": \"john@doe.com\",\n        \"contactPhone\": \"0123456879\",\n        \"mobile\": \"0987654321\"\n    }\n}"},"url":"https://{{environmentUrl}}/v2/orders"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"150","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 08 Aug 2018 20:16:54 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 dbc9499ce28b1cb3c55c06f9f7b8bd0c.cloudfront.net (CloudFront)","name":"Via","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"2IKh6-2RJN0tDRaanYUwalySQ4Dc280R3lXlFQ7pc07ywHpUuqqAFg==","name":"X-Amz-Cf-Id","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5b6b4fb6-a3e660960a3e79075ef9824c;Sampled=0","name":"X-Amzn-Trace-Id","description":"Custom header"},{"key":"X-Cache","value":"Error from cloudfront","name":"X-Cache","description":"Custom header"},{"key":"x-amz-apigw-id","value":"LUlkeEibDoEFoJQ=","name":"x-amz-apigw-id","description":"Custom header"},{"key":"x-amzn-RequestId","value":"fe196388-9b47-11e8-b5ce-c5eddbc3865e","name":"x-amzn-RequestId","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\r\n  \"success\": false,\r\n  \"errorMessage\": \"Error order YOUR_ORDER_REFERENCE already exists for customer bdd49033-b223-4e58-a6b4-60980d5f8b7c\",\r\n  \"errorDetails\": {}\r\n}"},{"id":"936d3b2b-7d88-4729-9981-c6cd441bb5e3","name":"Successful Order with Quantity Upgrade","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"Sets content type to JSON"},{"key":"Authorization","value":"Bearer {{token}}","description":"JWT Token Bearer"}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"GBP\",\n    \"orderReference\": \"YourOrderReference0123\",\n    \"orderItems\": [\n    {\n        \"productId\": \"PRD-9N6IUQGM\",\n        \"fileUrls\": [\"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"],\n        \"withoutArtwork\": false,\n        \"quantity\": 499,\n        \"quantityUpgrade\": {\n        \t\"maxQuantity\": 500,\n        \t\"maxPrice\": 500\n        },\n        \"serviceLevel\": \"Standard\",\n        \"productionData\":\n        {\n             \"Paper Type\":\"120gsm Premium Smooth White Paper\",\n             \"Sides Printed\":\"Single Sided\",\n             \"Sets\":\"1\"\n        },\n        \"partnerContactDetails\":\n        {\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"email\": \"john@doe.com\",\n            \"contactPhone\": \"0987654321\",\n            \"companyName\": \"Tradeprint Distribution Ltd\"\n        },\n        \"deliveryAddress\":\n        {\n            \"companyName\": \"Doe Distribution\",\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"add1\": \"1 Magic street\",\n            \"add2\": \"string\",\n            \"town\": \"London\",\n            \"postcode\": \"E15 4EA\",\n            \"country\": \"GB\"\n            },\n        \"extraData\":\n        {\n            \"description\": \"Order description\",\n            \"comments\": \"Please ensure not to trim into text\",\n            \"partnerItemId\": \"doe_12345\",\n            \"merchandisingProductName\": \"Comp Slip\",\n            \"referenceLabel\": \"For Sandeep new shop\",\n            \"purchaseOrder\": \"12345679\"\n        }\n    }],\n    \"billingAddress\":\n    {\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"add1\": \"Tradeprint Distribution Ltd\",\n        \"add2\": \"2 FULTON ROAD\",\n        \"postcode\": \"DD2 4SW\",\n        \"town\": \"DUNDEE\",\n        \"country\": \"GB\",\n        \"companyName\": \"TRADEPRINT DISTRIBUTION LTD\",\n        \"email\": \"john@doe.com\",\n        \"contactPhone\": \"0123456879\",\n        \"mobile\": \"0987654321\"\n    }\n}"},"url":"https://{{environmentUrl}}/v2/orders/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"order\": {\n            \"orderReference\": \"YOUR_ORDER_REFERENCE\",\n            \"timestamp\": 1533758979698,\n            \"customerId\": \"bdd49033-b223-4e58-a6b4-60980d5f8b7c\",\n            \"dateCreated\": \"08/08/18 21:09:39\",\n            \"status\": \"Processing\",\n            \"hasError\": false,\n            \"tpOrderDetails\": {},\n            \"orderItems\": [\n                {\n                    \"itemReference\": \"YOUR_ITEM_REFERENCE\",\n                    \"status\": \"Processing\",\n                    \"hasError\": false,\n                    \"serviceLevel\": \"Standard\",\n                    \"extraData\": {\n                        \"comments\": \"Please ensure not to trim into text\",\n                        \"partnerItemId\": \"doe_12345\",\n                        \"merchandisingProductName\": \"PVC Banner\",\n                        \"referenceLabel\": \"For Sandeep new shop\",\n                        \"purchaseOrder\": \"12345679\"\n                    },\n                    \"quantity\": 500,\n        \t\t\t\"productNetPrice\": 14.48\n                }\n            ]\n        }\n    }\n}"},{"id":"c932c44a-0e9c-40e8-840f-1f9a141e1ece","name":"Submit New Order with File Assist Artwork Service","originalRequest":{"method":"POST","header":[{"description":"Sets content type to JSON","disabled":false,"key":"Content-Type","value":"application/json"},{"description":"JWT Token Bearer","disabled":false,"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\r\n  \"currency\": \"GBP\",\r\n  \"orderReference\": \"TestTest14\",\r\n  \"orderItems\": [\r\n    {\r\n      \"productId\": \"PRD-9N6IUQGM\",\r\n      \"fileUrls\": [\r\n        \"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"\r\n      ],\r\n      \"artworkService\": \"File Assist\",\r\n      \"quantity\": 500,\r\n      \"serviceLevel\": \"Standard\",\r\n      \"productionData\": {\r\n        \"Paper Type\":\"120gsm Premium Smooth White Paper\",\r\n        \"Sides Printed\":\"Single Sided\",\r\n        \"Sets\":\"1\"\r\n      },\r\n        \"partnerContactDetails\":\r\n        {\r\n            \"firstName\": \"John\",\r\n            \"lastName\": \"Doe\",\r\n            \"email\": \"john@doe.com\",\r\n            \"contactPhone\": \"0987654321\",\r\n            \"companyName\": \"Tradeprint Distribution Ltd\"\r\n        },\r\n      \"deliveryAddress\": {\r\n        \"companyName\": \"Doe Distribution\",\r\n        \"firstName\": \"John\",\r\n        \"lastName\": \"Doe\",\r\n        \"add1\": \"1 Magic street\",\r\n        \"add2\": \"string\",\r\n        \"town\": \"London\",\r\n        \"postcode\": \"E15 4EA\",\r\n        \"country\": \"GB\"\r\n      },\r\n      \"extraData\": {\r\n        \"description\": \"description\",\r\n        \"comments\": \"comments\",\r\n        \"partnerItemId\": \"doe_12345\",\r\n        \"merchandisingProductName\": \"Comp Slip\",\r\n        \"referenceLabel\": \"referenceLabel\",\r\n        \"purchaseOrder\": \"purchaseOrder\"\r\n      }\r\n    }\r\n  ],\r\n    \"billingAddress\":\r\n    {\r\n        \"firstName\": \"John\",\r\n        \"lastName\": \"Doe\",\r\n        \"add1\": \"Tradeprint Distribution Ltd\",\r\n        \"add2\": \"2 FULTON ROAD\",\r\n        \"postcode\": \"DD2 4SW\",\r\n        \"town\": \"DUNDEE\",\r\n        \"country\": \"GB\",\r\n        \"companyName\": \"TRADEPRINT DISTRIBUTION LTD\",\r\n        \"email\": \"john@doe.com\",\r\n        \"contactPhone\": \"0123456879\",\r\n        \"mobile\": \"0987654321\"\r\n    }\r\n}"},"url":"https://sandbox.orders.tradeprint.io/v2/orders/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"579"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 10 Dec 2018 15:14:16 GMT"},{"key":"x-amzn-RequestId","value":"423f7316-fc8e-11e8-94f3-9dba34af91a9"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"RslfRF5PDoEFVOg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5c0e82c8-aa0274a3e1e647feda82a211;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 7d70f03f40ff914e93ff812c1b366077.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Id","value":"82gqE4kjI9C5XzIViiSLJTRdHXhfWV0H5qfKgggkSD2P5grZ193kwg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"order\": {\n            \"orderReference\": \"TestTest14\",\n            \"dateCreated\": \"10/12/18 15:14:16\",\n            \"status\": \"Processing\",\n            \"hasError\": false,\n            \"tpOrderDetails\": {},\n            \"orderItems\": [\n                {\n                    \"itemReference\": \"42afc050-fc8e-11e8-943a-5789a8cc4c22\",\n                    \"status\": \"Processing\",\n                    \"hasError\": false,\n                    \"serviceLevel\": \"Standard\",\n                    \"extraData\": {\n                        \"description\": \"description\",\n                        \"comments\": \"comments\",\n                        \"partnerItemId\": \"doe_12345\",\n                        \"merchandisingProductName\": \"PVC Banner\",\n                        \"referenceLabel\": \"referenceLabel\",\n                        \"purchaseOrder\": \"purchaseOrder\"\n                    },\n                    \"fileUrls\": [\n                        \"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"\n                    ],\n\t\t            \"quantity\": 500,\n\t\t            \"productNetPrice\": 14.48\n                }\n            ]\n        }\n    }\n}"},{"id":"d7d6b45b-06af-4507-8391-ad7c70906479","name":"Order Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"Sets content type to JSON","disabled":false},{"key":"Authorization","value":"Bearer {{token}}","description":"JWT Token Bearer","disabled":false}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"GBP\",\n    \"orderReference\": \"YourOrderReference0123\",\n    \"orderItems\": [\n    {\n        \"productId\": \"PRD-9N6IUQGM\",\n        \"fileUrls\": [\"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"],\n        \"withoutArtwork\": false,\n        \"quantity\": 500,\n        \"serviceLevel\": \"Standard\",\n        \"productionData\":\n        {\n             \"Paper Type\":\"120gsm Premium Smooth White Paper\",\n             \"Sides Printed\":\"Single Sided\",\n             \"Sets\":\"1\"\n        },\n        \"partnerContactDetails\":\n        {\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"email\": \"john@doe.com\",\n            \"contactPhone\": \"0987654321\",\n            \"companyName\": \"Tradeprint Distribution Ltd\"\n        },\n        \"deliveryAddress\":\n        {\n            \"companyName\": \"Doe Distribution\",\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"add1\": \"1 Magic street\",\n            \"add2\": \"string\",\n            \"town\": \"London\",\n            \"postcode\": \"E15 4EA\",\n            \"country\": \"GB\"\n            },\n        \"extraData\":\n        {\n            \"description\": \"Order description\",\n            \"comments\": \"Please ensure not to trim into text\",\n            \"partnerItemId\": \"doe_12345\",\n            \"merchandisingProductName\": \"Comp Slip\",\n            \"referenceLabel\": \"Sample Reference\",\n            \"purchaseOrder\": \"12345679\"\n        }\n    }],\n    \"billingAddress\":\n    {\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"add1\": \"Tradeprint Distribution Ltd\",\n        \"add2\": \"2 FULTON ROAD\",\n        \"postcode\": \"DD2 4SW\",\n        \"town\": \"DUNDEE\",\n        \"country\": \"GB\",\n        \"companyName\": \"TRADEPRINT DISTRIBUTION LTD\",\n        \"email\": \"john@doe.com\",\n        \"contactPhone\": \"0123456879\",\n        \"mobile\": \"0987654321\"\n    }\n}"},"url":"https://{{environmentUrl}}/v2/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"582","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 08 Aug 2018 20:09:39 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 f9405e4cfcaaebc08a9420572068f68f.cloudfront.net (CloudFront)","name":"Via","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"8Po1ePJhsIC6Mto9I2m77dQlhqtstPOOhDJbELPYEliY0d2HGlyAcw==","name":"X-Amz-Cf-Id","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5b6b4e03-1d87b01b6b1337c7ae72c36c;Sampled=0","name":"X-Amzn-Trace-Id","description":"Custom header"},{"key":"X-Cache","value":"Miss from cloudfront","name":"X-Cache","description":"Custom header"},{"key":"x-amz-apigw-id","value":"LUkgeHVDDoEFtpg=","name":"x-amz-apigw-id","description":"Custom header"},{"key":"x-amzn-RequestId","value":"fab28759-9b46-11e8-9a70-6f2021df6705","name":"x-amzn-RequestId","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\r\n  \"success\": true,\r\n  \"result\": {\r\n    \"order\": {\r\n      \"orderReference\": \"YOUR_ORDER_REFERENCE\",\r\n      \"timestamp\": 1533758979698,\r\n      \"customerId\": \"bdd49033-b223-4e58-a6b4-60980d5f8b7c\",\r\n      \"dateCreated\": \"08/08/18 21:09:39\",\r\n      \"status\": \"Processing\",\r\n      \"hasError\": false,\r\n      \"tpOrderDetails\": {},\r\n      \"orderItems\": [\r\n        {\r\n          \"itemReference\": \"YOUR_ITEM_REFERENCE\",\r\n          \"status\": \"Processing\",\r\n          \"hasError\": false,\r\n          \"serviceLevel\": \"Standard\",\r\n          \"extraData\": {\r\n            \"comments\": \"Please ensure not to trim into text\",\r\n            \"partnerItemId\": \"doe_12345\",\r\n            \"merchandisingProductName\": \"PVC Banner\",\r\n            \"referenceLabel\": \"For Sandeep new shop\",\r\n            \"purchaseOrder\": \"12345679\"\r\n          },\r\n          \"quantity\": 500,\r\n          \"productNetPrice\": 14.48\r\n        }\r\n      ]\r\n    }\r\n  }\r\n}"}],"_postman_id":"7df5f1d2-2e24-43fd-894a-a2c3e306e7cb"},{"name":"Validate Order","event":[{"listen":"test","script":{"id":"e4ec5647-4148-4f42-9deb-7d96dc40ff88","exec":["pm.test(\"POST order validation\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.success).to.eql(true);","    pm.expect(jsonData.result.valid).to.eql(true);","","});","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"b1822b88-b0f1-4fb2-b94d-de717a2971b7","request":{"auth":{"type":"noauth"},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"GBP\",\n    \"orderReference\": \"YourOrderReference0123\",\n    \"orderItems\": [\n    {\n        \"productId\": \"PRD-9N6IUQGM\",\n        \"fileUrls\": [\"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"],\n        \"withoutArtwork\": false,\n        \"quantity\": 500,\n        \"serviceLevel\": \"Standard\",\n        \"productionData\":\n        {\n             \"Paper Type\":\"120gsm Premium Smooth White Paper\",\n             \"Sides Printed\":\"Single Sided\",\n             \"Sets\":\"1\"\n        },\n        \"partnerContactDetails\":\n        {\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"email\": \"john@doe.com\",\n            \"contactPhone\": \"07655 568 134\",\n            \"companyName\": \"Tradeprint Distribution Ltd.\"\n        },\n        \"deliveryAddress\":\n        {\n            \"companyName\": \"Doe Distribution\",\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"add1\": \"1 Magic street\",\n            \"add2\": \"string\",\n            \"town\": \"London\",\n            \"postcode\": \"E15 4EA\",\n            \"country\": \"GB\"\n            },\n        \"extraData\":\n        {\n            \"description\": \"Order description\",\n            \"comments\": \"Please ensure not to trim into text\",\n            \"partnerItemId\": \"doe_12345\",\n            \"merchandisingProductName\": \"Comp Slip\",\n            \"referenceLabel\": \"For Sandeep new shop\",\n            \"purchaseOrder\": \"12345679\"\n        }\n    }],\n    \"billingAddress\":\n    {\n        \"firstName\": \"Steeve\",\n        \"lastName\": \"Roucaute\",\n        \"add1\": \"Tradeprint Distribution Ltd\",\n        \"add2\": \"2 FULTON ROAD\",\n        \"postcode\": \"DD2 4SW\",\n        \"town\": \"DUNDEE\",\n        \"country\": \"GB\",\n        \"companyName\": \"TRADEPRINT DISTRIBUTION LTD\",\n        \"email\": \"steeve@tradeprint.co.uk\",\n        \"contactPhone\": \"0123456879\",\n        \"mobile\": \"0751424242\"\n    }\n}"},"url":"https://{{environmentUrl}}/v2/validate/orders","description":"Since orders on Tradeprint API are placed asynchronously, it may be useful to validate using our easy to use pre-flight validation endpoint.\n\nFor request data please refer to [Submit New Order POST schema](#top-level-fields)."},"response":[{"id":"2597d7cb-a361-4629-b4dd-6e1294577843","name":"Valid Order","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"currency\": \"GBP\",\n  \"testMode\": true,\n  \"orderDate\": \"2018-05-11T10:27:52.262Z\",\n  \"orderItems\": [\n    {\n\t  \"itemReference\": \"YOUR_ITEM_REFERENCE\",\t\n      \"productId\": \"PRD-9N6IUQGM\",\n      \"fileUrls\": [\n        \"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"\n      ],\n      \"quantity\": 500,\n      \"serviceLevel\": \"Standard\",\n      \"productionData\": {\n        \"Paper Type\":\"120gsm Premium Smooth White Paper\",\n        \"Sides Printed\":\"Single Sided\",\n        \"Sets\":\"1\"\n      },\n        \"partnerContactDetails\":\n        {\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"email\": \"john@doe.com\",\n            \"contactPhone\": \"0987654321\",\n            \"companyName\": \"Tradeprint Distribution Ltd\"\n        },\n      \"deliveryAddress\": {\n        \"companyName\": \"Doe Distribution\",\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"add1\": \"1 Magic street\",\n        \"add2\": \"string\",\n        \"town\": \"London\",\n        \"postcode\": \"E15 4EA\",\n        \"country\": \"GB\",\n        \"deliveryComments\": \"Please leave at front door\"\n      },\n      \"extraData\": {\n        \"comments\": \"Please ensure not to trim into text\",\n        \"partnerItemId\": \"doe_12345\",\n        \"merchandisingProductName\": \"Comp Slip\",\n        \"referenceLabel\": \"For Sandeep new shop\",\n        \"purchaseOrder\": \"12345679\"\n      }\n    }\n  ],\n  \"billingAddress\": {\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"add1\": \"Tradeprint Distribution Ltd\",\n        \"add2\": \"2 FULTON ROAD\",\n        \"postcode\": \"DD2 4SW\",\n        \"town\": \"DUNDEE\",\n        \"country\": \"GB\",\n        \"companyName\": \"TRADEPRINT DISTRIBUTION LTD\",\n        \"email\": \"john@doe.com\",\n        \"contactPhone\": \"0123456879\",\n        \"mobile\": \"0987654321\"\n  }\n}"},"url":"https://{{environmentUrl}}/v2/validate/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"101","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Thu, 04 Oct 2018 13:05:31 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 a028e8f26199b998c4486f8336490167.cloudfront.net (CloudFront)","name":"Via","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"R9ojUnPtgfJHz6yua_CiW2sEg_8R119KFiGyAF5z6H3Fssg7uNMZ4w==","name":"X-Amz-Cf-Id","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5bb61017-081c96e4033d01ec4e9685f4;Sampled=0","name":"X-Amzn-Trace-Id","description":"Custom header"},{"key":"X-Cache","value":"Miss from cloudfront","name":"X-Cache","description":"Custom header"},{"key":"x-amz-apigw-id","value":"OPdzrFGMjoEFk3g=","name":"x-amz-apigw-id","description":"Custom header"},{"key":"x-amzn-RequestId","value":"29f7bb1e-c7d6-11e8-9da5-bbaccebae069","name":"x-amzn-RequestId","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {}\n}"},{"id":"ccb51d15-7c7b-4845-8137-9af3cd0ba111","name":"Invalid Order","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"currency\": \"GBP\",\n  \"testMode\": true,\n  \"orderDate\": \"2018-05-11T10:27:52.262Z\",\n  \"orderItems\": [\n    {\n\t  \"itemReference\": \"YOUR_ITEM_REFERENCE\",\t\n      \"productId\": \"PRD-OJPMGVGV\",\n      \"fileUrls\": [\n        \"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"\n      ],\n      \"quantity\": 5000000000000,\n      \"serviceLevel\": \"Standard\",\n      \"productionData\": {\n        \"Paper Type\":\"120gsm Premium Smooth White Paper\",\n        \"Sides Printed\":\"Single Sided\",\n        \"Sets\":\"1\"\n      },\n        \"partnerContactDetails\":\n        {\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"email\": \"john@doe.com\",\n            \"contactPhone\": \"0987654321\",\n            \"companyName\": \"Tradeprint Distribution Ltd\"\n        },\n      \"deliveryAddress\": {\n        \"companyName\": \"Doe Distribution\",\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"add1\": \"1 Magic street\",\n        \"add2\": \"string\",\n        \"town\": \"London\",\n        \"postcode\": \"E15 4EA\",\n        \"country\": \"GB\",\n        \"deliveryComments\": \"Please leave at front door\"\n      },\n      \"extraData\": {\n        \"comments\": \"Please ensure not to trim into text\",\n        \"partnerItemId\": \"doe_12345\",\n        \"merchandisingProductName\": \"PVC Banner\",\n        \"referenceLabel\": \"For Sandeep new shop\",\n        \"purchaseOrder\": \"12345679\"\n      }\n    }\n  ],\n  \"billingAddress\": {\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"add1\": \"Tradeprint Distribution Ltd\",\n        \"add2\": \"2 FULTON ROAD\",\n        \"postcode\": \"DD2 4SW\",\n        \"town\": \"DUNDEE\",\n        \"country\": \"GB\",\n        \"companyName\": \"TRADEPRINT DISTRIBUTION LTD\",\n        \"email\": \"john@doe.com\",\n        \"contactPhone\": \"0123456879\",\n        \"mobile\": \"0987654321\"\n  }\n}"},"url":"https://{{environmentUrl}}/v2/validate/orders"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"596","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Thu, 04 Oct 2018 13:06:09 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 a028e8f26199b998c4486f8336490167.cloudfront.net (CloudFront)","name":"Via","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"PqasXPHnRJ-be-O4YGzofTTvvptkAYzmP0phY8IyQFUpSC5-ZsqprQ==","name":"X-Amz-Cf-Id","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5bb61041-af5614c51a1cfe6e0bc7fa8b;Sampled=0","name":"X-Amzn-Trace-Id","description":"Custom header"},{"key":"X-Cache","value":"Error from cloudfront","name":"X-Cache","description":"Custom header"},{"key":"x-amz-apigw-id","value":"OPd6MHsxDoEFhsg=","name":"x-amz-apigw-id","description":"Custom header"},{"key":"x-amzn-RequestId","value":"42ce5fb9-c7d6-11e8-8f66-9793381dd3cd","name":"x-amzn-RequestId","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"errorMessage\": \"Validation failed\",\n    \"errorDetails\": [\n        {\n            \"message\": \"5000000000000 is not a valid selection for product PRD-9N6IUQGM with productionData Paper Type:120gsm Premium Smooth White Paper,Sides Printed:Single Sided,Sets:1\",\n            \"property\": \"instance.orderItems[0]\",\n            \"argument\": \"quantity\",\n            \"stack\": \"\"\n        }\n    ]\n}"}],"_postman_id":"b1822b88-b0f1-4fb2-b94d-de717a2971b7"},{"name":"Upload or Replace Artwork","event":[{"listen":"test","script":{"id":"0338f0be-9fd8-4809-aa79-001a190d51e4","exec":["pm.test(\"PUT upload artwork check\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.success).to.eql(true);","});","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"03d1f33a-53d2-43f0-b45a-8b44f600a270","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\"fileUrls\": [\"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"]}"},"url":"https://{{environmentUrl}}/v2/orders/{{orderReferenceV2}}/orderItems/{{itemReferenceV2}}/fileUrls ","description":"Tradeprint API allows you to upload and update files for specific orderItems after they have been placed for example if artwork wasn't supplied originally or if a document has been rejected by our pre-press team.\n\n**Requirements**\n\nYou must supply valid urls to files that are less than 2GB in size in PDF format.\n\nYour orderItem status must be either `WaitingForArtwork` or `DocReviewRejected`.\n\nThe parent order status must be `Placed`.\n\nWhen the files have been accepted, please allow a few minutes for us to download the artwork, once that is complete the status for your orderItem should change to `WaitingForDocReview`\nthis means that your artwork is waiting to be reviewed by our pre-press team and should it pass our checks it will be manufactured and shipped.\n\n\n### Top Level Fields ###\n\n|Field|Type|Required|Description|\n|-----|----|--------|-----------|\n|`fileUrls`|string|yes|An array of URL strings|"},"response":[{"id":"429ae3c2-1e16-40a5-a7e7-1cd85cd977bf","name":"Update Artwork Failed","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Authorization","value":"Bearer {{token}}","disabled":false}],"body":{"mode":"raw","raw":"{\"fileUrl\": [\"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"]}"},"url":"https://{{environmentUrl}}/v2/orders/{{orderReferenceV2}}/orderItems/{{itemReferenceV2}}/fileUrls"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"206","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Thu, 04 Oct 2018 09:28:40 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 74ee01944a7b08fc7c4bee7a5b839c49.cloudfront.net (CloudFront)","name":"Via","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"-fG1zz2oEM__wMkgYaUuXDOCVmUdMU2Tr8I7Zw_HO23mytMcii_RFg==","name":"X-Amz-Cf-Id","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5bb5dd48-07d35760a3bc265805d37ad8;Sampled=0","name":"X-Amzn-Trace-Id","description":"Custom header"},{"key":"X-Cache","value":"Error from cloudfront","name":"X-Cache","description":"Custom header"},{"key":"x-amz-apigw-id","value":"OO-DXElajoEFxzA=","name":"x-amz-apigw-id","description":"Custom header"},{"key":"x-amzn-RequestId","value":"e14666ec-c7b7-11e8-a0d7-c38316a5e42f","name":"x-amzn-RequestId","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":false,\"errorMessage\":\"Validation failed\",\"errorDetails\":[{\"property\":\"instance\",\"message\":\"requires property 'fileUrls'\",\"argument\":\"fileUrls\",\"stack\":\"instance requires property \\\"fileUrls\\\"\"}]}"},{"id":"907aacc4-2d77-44d4-b349-2a6cf3f600fc","name":"Order Not Ready For Upload","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Authorization","value":"Bearer {{token}}","disabled":false}],"body":{"mode":"raw","raw":"{\"fileUrls\": [\"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"]}"},"url":"https://{{environmentUrl}}/v2/orders/{{orderReferenceV2}}/orderItems/{{itemReferenceV2}}/fileUrls"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"113","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Thu, 04 Oct 2018 09:29:57 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 74ee01944a7b08fc7c4bee7a5b839c49.cloudfront.net (CloudFront)","name":"Via","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"8DLA2_1sxBKAVp4Dc8bDai0gc9OfAunQnDhzFsWKHHA3PAwnbbuePA==","name":"X-Amz-Cf-Id","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5bb5dd95-1a3b3fb227013de44c757e78;Sampled=0","name":"X-Amzn-Trace-Id","description":"Custom header"},{"key":"X-Cache","value":"Error from cloudfront","name":"X-Cache","description":"Custom header"},{"key":"x-amz-apigw-id","value":"OO-PTGlqjoEFdyA=","name":"x-amz-apigw-id","description":"Custom header"},{"key":"x-amzn-RequestId","value":"0ed3ee6c-c7b8-11e8-a7cf-373e7d5c04db","name":"x-amzn-RequestId","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":false,\"errorMessage\":\"Order must be in 'Placed' state to allow artwork replacement\",\"errorDetails\":{}}"},{"id":"e7149aae-e184-4e64-9e40-52c2df979032","name":"Succesfull Upload","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Authorization","value":"Bearer {{token}}","disabled":false}],"body":{"mode":"raw","raw":"{\"fileUrls\": [\"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"]}"},"url":"https://{{environmentUrl}}/v2/orders/{{orderReferenceV2}}/orderItems/{{itemReferenceV2}}/fileUrls"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"109","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Thu, 04 Oct 2018 09:26:16 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 f56f6cfb430f06cacbdee0d3474cd27e.cloudfront.net (CloudFront)","name":"Via","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"A_qcCrG6PSXR76xnlrkXMCIOIVBlZ_BYbdFibZgGQPUSE032ZR3FMw==","name":"X-Amz-Cf-Id","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5bb5dcb8-17cce182e01a8e86e0d5f11a;Sampled=0","name":"X-Amzn-Trace-Id","description":"Custom header"},{"key":"X-Cache","value":"Miss from cloudfront","name":"X-Cache","description":"Custom header"},{"key":"x-amz-apigw-id","value":"OO9s0GhHjoEFgkQ=","name":"x-amz-apigw-id","description":"Custom header"},{"key":"x-amzn-RequestId","value":"8b4ea67a-c7b7-11e8-92b7-4dd9cc0f11ac","name":"x-amzn-RequestId","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"success\":true,\"result\":{\"message\":\"Artwork accepted, this may take a few minutes to appear on your order\"}}"}],"_postman_id":"03d1f33a-53d2-43f0-b45a-8b44f600a270"},{"name":"Get Order Status by ID","event":[{"listen":"test","script":{"id":"aaa2097a-d26f-4165-afaf-9efdc98fcade","type":"text/javascript","exec":["pm.test(\"GET order status ID check\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.success).to.eql(true);","    pm.expect(jsonData.result.status).to.eql(\"DownloadingArtwork\");","    // pm.expect(jsonData.result.orderReference).to.eql(\"{{orderReferenceV2}}\");","    pm.expect(jsonData.result.hasError).to.eql(false);","});","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"]}}],"id":"ca75104b-eb43-40f8-9205-109dc2297327","request":{"auth":{"type":"noauth"},"method":"GET","header":[{"key":"Content-Type","value":"application/json","description":"Sets the content type to JSON"},{"key":"Authorization","value":"Bearer {{token}}","description":"The JWT token bearer"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{environmentUrl}}/v2/orders/{{orderReferenceV2}}","description":"GET the status of an order by orderId\n\n#### Order Statuses ####\n\n|Order Status|Description|\n|------------|-----------|\n|`Processing`|We have accepted your item and are preparing it for manufacturing.\n|`CreatingOrderPayload`|We are attempting to inject the order into tradeprints manufacturing system.|\n|`Placed`|The order has been accepted and is now in production.|\n|`Delayed`|You opted for a service level that is not available, (ie Same Day after 11am) your order will be processed when that service level becomes available again.|\n\n#### Item Statuses ####\n\n|Item Status|Description|\n|-----------|-----------|\n|`Delayed`|You opted for a service level that is not available, (ie Same Day after 11am) your item will be processed when that service level becomes available again.|\n|`Processing`|We are downloading your item's artwork.|\n|`CreatingOrderPayload`|We are attempting to inject the item into Tradeprint's manufacturing system.|\n|`Confirmed`|The item has been confirmed in Tradeprint's manufacturing system.|\n|`WaitingForArtwork`|The item is awaiting artwork.|\n|`WaitingForDocReview`|The item is in the queue for artwork review before printing.|\n|`DocReviewInProgress`|The item artwork is being reviewed before printing.|\n|`DocReviewRejected`|There is a problem with the supplied artwork and we cannot print this item.|\n|`PrintingInProgress`|The item is being printed.|\n|`Shipped`|The item has been printed and shipped and tracking information should now be present.|\n|`Cancelled`|The item got cancelled and will not be fulfilled, no transition from this status is possible.|"},"response":[{"id":"8183d340-f82d-485f-b6b8-b8aa91556392","name":"Order Not Found","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","description":"Sets the content type to JSON","disabled":false},{"key":"Authorization","value":"Bearer {{token}}","description":"The JWT token bearer","disabled":false}],"url":"https://{{environmentUrl}}/v2/orders/{{orderReference"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"68","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 08 Aug 2018 20:11:44 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 f9405e4cfcaaebc08a9420572068f68f.cloudfront.net (CloudFront)","name":"Via","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"Zgg5nXQswPNcvZdsX5Ki3NI6ssVpEMxDFazKvnwh-r7GkVXAtF3ITw==","name":"X-Amz-Cf-Id","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5b6b4e7f-78453830f806d92908178de2;Sampled=0","name":"X-Amzn-Trace-Id","description":"Custom header"},{"key":"X-Cache","value":"Error from cloudfront","name":"X-Cache","description":"Custom header"},{"key":"x-amz-apigw-id","value":"LUkz-FU-joEFXXw=","name":"x-amz-apigw-id","description":"Custom header"},{"key":"x-amzn-RequestId","value":"450e7a84-9b47-11e8-b93d-53fb168a9b2f","name":"x-amzn-RequestId","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\r\n  \"success\": false,\r\n  \"errorMessage\": \"Order not found\",\r\n  \"errorDetails\": {}\r\n}"},{"id":"b2e5095d-1ec1-4eb6-baa5-54ddea9ed921","name":"Successful Request","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","description":"Sets the content type to JSON","disabled":false},{"key":"Authorization","value":"Bearer {{token}}","description":"The JWT token bearer","disabled":false}],"url":"https://{{environmentUrl}}/v2/orders/{{orderReferenceV2}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"572","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 08 Aug 2018 20:10:02 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 f9405e4cfcaaebc08a9420572068f68f.cloudfront.net (CloudFront)","name":"Via","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"zR-Da-4Pob0-xLZaeEg2lSrrIdUTnEwmzT46aACsC8cm4FCrcmTM-A==","name":"X-Amz-Cf-Id","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5b6b4e10-6ab170a8ea6587882e2c3768;Sampled=0","name":"X-Amzn-Trace-Id","description":"Custom header"},{"key":"X-Cache","value":"Miss from cloudfront","name":"X-Cache","description":"Custom header"},{"key":"x-amz-apigw-id","value":"LUkinFVbjoEF0ig=","name":"x-amz-apigw-id","description":"Custom header"},{"key":"x-amzn-RequestId","value":"02d7a491-9b47-11e8-822c-6bf32e808a4d","name":"x-amzn-RequestId","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\r\n  \"success\": true,\r\n  \"result\": {\r\n    \"orderReference\": \"YOUR_ORDER_REFERENCE\",\r\n    \"timestamp\": 1533758979698,\r\n    \"customerId\": \"bdd49033-b223-4e58-a6b4-60980d5f8b7c\",\r\n    \"dateCreated\": \"08/08/18 21:09:39\",\r\n    \"status\": \"Processing\",\r\n    \"hasError\": false,\r\n    \"tpOrderDetails\": {},\r\n    \"orderItems\": [\r\n      {\r\n        \"itemReference\": \"YOUR_ITEM_REFERENCE\",\r\n        \"status\": \"Processing\",\r\n        \"hasError\": false,\r\n        \"serviceLevel\": \"Standard\",\r\n        \"extraData\": {\r\n          \"comments\": \"Please ensure not to trim into text\",\r\n          \"partnerItemId\": \"doe_12345\",\r\n          \"merchandisingProductName\": \"PVC Banner\",\r\n          \"referenceLabel\": \"For Sandeep new shop\",\r\n          \"purchaseOrder\": \"12345679\"\r\n        }\r\n      }\r\n    ]\r\n  }\r\n}"}],"_postman_id":"ca75104b-eb43-40f8-9205-109dc2297327"},{"name":"Fetch Orders by References","event":[{"listen":"test","script":{"id":"37db95f7-0f0f-4504-9569-2d43d4536fdb","exec":["pm.test(\"GET order status ID check\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.success).to.eql(true);","    pm.expect(jsonData.result[0].hasError).to.eql(false);","    pm.expect(jsonData.result[0].orderItems[0].hasError).to.eql(false);","});","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"06cc541c-cd0e-48dc-864a-3d32c6cf173f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"orderReferences\": [\"{{orderReferenceV2}}\"]\n}"},"url":"https://{{environmentUrl}}/v2/orders/ordersStatus","description":"Tradeprint API offers an endpoint for those wishing to fetch a list of orders by specifying an array of orderReferences, if you would like to run more complex filtering please see the /query endpoint.\n\n### Fields ###\n\n|Field|Type|Required|Description|\n|-----|----|--------|-----------|\n|`orderReferences`|string|yes |Array of order references as strings, e.g. `['orderRef1', 'orderRef2']`.|"},"response":[{"id":"04b4570e-d011-46cd-8e8f-a682c40f3280","name":"Invalid Request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"ordeReferences\": [\"{{orderReferenceV2}}\", \"YourOrderReference012\"]\n}"},"url":"https://{{environmentUrl}}/v2/orders/ordersStatus"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS","name":"Access-Control-Allow-Methods","description":"Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."},{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"227","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Thu, 04 Oct 2018 11:42:21 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 e9fb10d4185adccb16c52a4af7244d3e.cloudfront.net (CloudFront)","name":"Via","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"PmM8LSH2By0nzlMjNff0EYVuP4pG1yWO6IJxKug0EPLwcqf8bjza9A==","name":"X-Amz-Cf-Id","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5bb5fc9d-3b93c478e8f6b1d4055bdd0c;Sampled=0","name":"X-Amzn-Trace-Id","description":"Custom header"},{"key":"X-Cache","value":"Error from cloudfront","name":"X-Cache","description":"Custom header"},{"key":"x-amz-apigw-id","value":"OPRopFhUDoEFwqw=","name":"x-amz-apigw-id","description":"Custom header"},{"key":"x-amzn-RequestId","value":"8e26f980-c7ca-11e8-8841-7fef9def351f","name":"x-amzn-RequestId","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\r\n  \"success\": false,\r\n  \"errorMessage\": \"Validation failed\",\r\n  \"errorDetails\": [\r\n    {\r\n      \"property\": \"instance\",\r\n      \"message\": \"requires property 'orderReferences'\",\r\n      \"argument\": \"orderReferences\",\r\n      \"stack\": \"instance requires property \\\"orderReferences\\\"\"\r\n    }\r\n  ]\r\n}"},{"id":"d864d59e-47bd-46c6-8ed8-9b30245b330d","name":"Multiple Order Statuses","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","disabled":false},{"key":"Content-Type","value":"application/json","disabled":false}],"body":{"mode":"raw","raw":"{\n\t\"orderReferences\": [\"{{orderReferenceV2}}\", \"YourOrderReference012\"]\n}"},"url":"https://{{environmentUrl}}/v2/orders/ordersStatus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Length","value":"1276","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Thu, 04 Oct 2018 11:38:31 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Via","value":"1.1 3b14001c94de06c6d9e0fbf3d55a7626.cloudfront.net (CloudFront)","name":"Via","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Amz-Cf-Id","value":"WFhYQc6zGw1qZYcl6LXFyCIghaKCq4WvLTfDDs_tx1CEAkdc9NUEKg==","name":"X-Amz-Cf-Id","description":"Custom header"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5bb5fbb7-daded454a05554089f78a168;Sampled=0","name":"X-Amzn-Trace-Id","description":"Custom header"},{"key":"X-Cache","value":"Miss from cloudfront","name":"X-Cache","description":"Custom header"},{"key":"x-amz-apigw-id","value":"OPREpFkKDoEF-4g=","name":"x-amz-apigw-id","description":"Custom header"},{"key":"x-amzn-RequestId","value":"04dbe08e-c7ca-11e8-a527-293803f511ba","name":"x-amzn-RequestId","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\r\n  \"success\": true,\r\n  \"result\": [\r\n    {\r\n      \"orderReference\": \"YourOrderReference0123\",\r\n      \"dateCreated\": \"04/10/18 12:22:43\",\r\n      \"status\": \"Placed\",\r\n      \"hasError\": false,\r\n      \"tpOrderDetails\": {\r\n        \"orderNumber\": \"ABHNNTCAD2\",\r\n        \"paymentState\": \"Paid\"\r\n      },\r\n      \"errorDetails\": {},\r\n      \"orderItems\": [\r\n        {\r\n          \"itemReference\": \"cfc3dfe0-c7c7-11e8-8c31-19522aa50c75\",\r\n          \"status\": \"WaitingForDocReview\",\r\n          \"hasError\": false,\r\n          \"serviceLevel\": \"Standard\",\r\n          \"extraData\": {\r\n            \"description\": \"Order description\",\r\n            \"comments\": \"Please ensure not to trim into text\",\r\n            \"partnerItemId\": \"doe_12345\",\r\n            \"merchandisingProductName\": \"PVC Banner\",\r\n            \"referenceLabel\": \"For Sandeep new shop\",\r\n            \"purchaseOrder\": \"12345679\"\r\n          },\r\n          \"fileUrls\": [\r\n            \"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"\r\n          ]\r\n        }\r\n      ]\r\n    },\r\n    {\r\n      \"orderReference\": \"YourOrderReference012\",\r\n      \"dateCreated\": \"04/10/18 10:29:38\",\r\n      \"status\": \"Placed\",\r\n      \"hasError\": false,\r\n      \"tpOrderDetails\": {\r\n        \"orderNumber\": \"A7EMQV85ES\",\r\n        \"paymentState\": \"Paid\"\r\n      },\r\n      \"errorDetails\": {},\r\n      \"orderItems\": [\r\n        {\r\n          \"itemReference\": \"039079b0-c7b8-11e8-894f-134859dbd853\",\r\n          \"status\": \"WaitingForArtwork\",\r\n          \"hasError\": false,\r\n          \"serviceLevel\": \"Standard\",\r\n          \"extraData\": {\r\n            \"description\": \"Order description\",\r\n            \"comments\": \"Please ensure not to trim into text\",\r\n            \"partnerItemId\": \"doe_12345\",\r\n            \"merchandisingProductName\": \"PVC Banner\",\r\n            \"referenceLabel\": \"For Sandeep new shop\",\r\n            \"purchaseOrder\": \"12345679\"\r\n          },\r\n          \"fileUrls\": []\r\n        }\r\n      ]\r\n    }\r\n  ]\r\n}"}],"_postman_id":"06cc541c-cd0e-48dc-864a-3d32c6cf173f"},{"name":"Cancel an Order Item","id":"4dc388f6-26b4-4141-b71e-0885c3532dd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{environmentUrl}}/v2/orders/{{orderReferenceV2}}/orderItems/{{itemReferenceV2}} ","description":"Cancel a specific order item before it is being manufactured.\n\nPlease note that you cannot cancel it when it is one any of the following states: `PrintingInProgress`, `Shipped`, `Cancelled`."},"response":[{"id":"1d0f1ce9-bd78-4e7f-93c0-45ea88a1c3d4","name":"Failed Cancellation","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{environmentUrl}}/v2/orders/{{orderReferenceV2}}/orderItems/{{itemReferenceV2}}"},"status":"Bad Request","code":400,"_postman_previewlanguage":"JSON","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"83"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 14 Feb 2019 10:47:32 GMT"},{"key":"x-amzn-RequestId","value":"ee73e4f8-3045-11e9-8e56-4b917833de45"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VFgSqHqijoEFmew="},{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5c654744-138d98f21f68b048b866789e;Sampled=0"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 f110d9ad45f8e25809bf5ec5112ec49a.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Id","value":"h8QTU16tRznzkgH7eR5imrVVTFulDbkwhU1zNPwKHKPkCtoT7_jznw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"errorMessage\": \"This item is already cancelled\",\n    \"errorDetails\": {}\n}"},{"id":"463aa963-900b-4645-ae2c-335282929726","name":"Successful Cancellation","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://{{environmentUrl}}/v2/orders/{{orderReferenceV2}}/orderItems/{{itemReferenceV2}}"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"461"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 14 Feb 2019 10:44:30 GMT"},{"key":"x-amzn-RequestId","value":"820c6e3e-3045-11e9-8017-850eac706f58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VFf2QFWoDoEF88Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5c65468e-e02f55b67d707d85aa4ebfea;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 08efbf25f39cc444a2f013fdf0a017cc.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Id","value":"QAU5SrOFpU8wOwST9_VUeXnpQh--X-oGy-l9txqCSbKbj4ioporh3A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"itemReference\": \"UUID\",\n        \"status\": \"Cancelled\",\n        \"hasError\": false,\n        \"serviceLevel\": \"Standard\",\n        \"extraData\": {\n            \"description\": \"Order description\",\n            \"comments\": \"Please ensure not to trim into text\",\n            \"partnerItemId\": \"doe_12345\",\n            \"merchandisingProductName\": \"PVC Banner\",\n            \"referenceLabel\": \"REF_LABEL\",\n            \"purchaseOrder\": \"PURCHASE_ORDER\"\n        },\n        \"fileUrls\": [\n            \"FILE_URL\"\n        ],\n        \"quantity\": 250\n    }\n}"}],"_postman_id":"4dc388f6-26b4-4141-b71e-0885c3532dd0"},{"name":"Retry Payment","id":"a4c34bda-065c-4d94-8125-db51304d7b7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{environmentUrl}}/v2/orders/{{orderReferenceV2}}/retryPayment","description":"Retry payment for a specific order reference for an order in `PaymentFailed` state.\n\nThis call does not take any body payload."},"response":[{"id":"5e3946d0-bd57-4fb2-88cf-da0c3d2963c2","name":"Retry Payment Failure","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{environmentUrl}}/v2/orders/ORDER_REFERENCE/retryPayment"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"errorMessage\": \"This order is not in a payment failed status\",\n    \"errorDetails\": {\n        \"status\": \"Placed\"\n    }\n}"},{"id":"9a2bf37c-7054-4acf-86a3-79331d9475c5","name":"Retry Payment On Account Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{environmentUrl}}/v2/orders/ORDER_REFERENCE/retryPayment"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"orderReference\": \"ORDER_REFERENCE\",\n        \"dateCreated\": \"11/07/19 14:40:08\",\n        \"status\": \"Placed\",\n        \"hasError\": false,\n        \"tpOrderDetails\": {\n            \"orderNumber\": \"ABC123\",\n            \"paymentState\": \"Paid\"\n        },\n        \"payment\": {\n            \"paymentType\": \"account\"\n        },\n        \"deduplicationHash\": \"f9a897f6ab1fe6ce445e65e96757cca9\",\n        \"errorDetails\": {},\n        \"orderItems\": [\n            {\n                \"itemReference\": \"ITEM_REFERENCE\",\n                \"status\": \"Placed\",\n                \"hasError\": false,\n                \"serviceLevel\": \"Saver\",\n                \"extraData\": {\n                    \"comments\": \"This is the extra data comments\",\n                    \"partnerItemId\": \"PARTNER_ITEM_ID\",\n                    \"merchandisingProductName\": \"My Folded Flyer\",\n                    \"referenceLabel\": \"REFERENCE_LABEL\",\n                    \"purchaseOrder\": \"PURCHASE_ORDER\"\n                },\n                \"fileUrls\": [\n                    \"FILE_URL\"\n                ],\n                \"quantity\": 500,\n                \"productNetPrice\": 8.96,\n                \"serviceLevelDowngraded\": false\n            }\n        ]\n    }\n}"},{"id":"9df5f084-716f-44db-ae23-7b5a06e54159","name":"Retry Payment Card Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://{{environmentUrl}}/v2/orders/ORDER_REFERENCE/retryPayment"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"orderReference\": \"ORDER_REFERENCE\",\n        \"dateCreated\": \"11/07/19 14:40:08\",\n        \"status\": \"Placed\",\n        \"hasError\": false,\n        \"tpOrderDetails\": {\n            \"orderNumber\": \"ABC123\",\n            \"paymentState\": \"Paid\"\n        },\n        \"payment\": {\n            \"paymentType\": \"card\",\n            \"paymentTypeReference\": \"XYZ\"\n        },\n        \"deduplicationHash\": \"f9a897f6ab1fe6ce445e65e96757cca9\",\n        \"errorDetails\": {},\n        \"orderItems\": [\n            {\n                \"itemReference\": \"ITEM_REFERENCE\",\n                \"status\": \"Placed\",\n                \"hasError\": false,\n                \"serviceLevel\": \"Saver\",\n                \"extraData\": {\n                    \"comments\": \"This is the extra data comments\",\n                    \"partnerItemId\": \"PARTNER_ITEM_ID\",\n                    \"merchandisingProductName\": \"My Folded Flyer\",\n                    \"referenceLabel\": \"REFERENCE_LABEL\",\n                    \"purchaseOrder\": \"PURCHASE_ORDER\"\n                },\n                \"fileUrls\": [\n                    \"FILE_URL\"\n                ],\n                \"quantity\": 500,\n                \"productNetPrice\": 8.96,\n                \"serviceLevelDowngraded\": false\n            }\n        ]\n    }\n}"}],"_postman_id":"a4c34bda-065c-4d94-8125-db51304d7b7f"}],"id":"ac2bb275-62e2-48c6-adb1-16e791b2670f","_postman_id":"ac2bb275-62e2-48c6-adb1-16e791b2670f"},{"name":"Products v2","item":[{"name":"Request Price Lists for Multiple Products","event":[{"listen":"test","script":{"id":"d5c009b8-40a3-40b0-8d5c-42f604222c69","exec":[""],"type":"text/javascript"}}],"id":"712da46a-dddd-4001-a25c-e38d94840efb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"email\": \"test@gmail.com\",\r\n\t\"format\": \"json\"\r\n}"},"url":"https://sandbox.orders.tradeprint.io/v2/products-v2","description":"Request for product price lists. \r\n\r\nThis call will initiate a process that will generate price lists asynchronously in a requested format and email you a link to an address of your choice.\r\n\r\nThe email body will contain a link which will be accessible for 24 hours only. On  clicking the link a `data.zip` file will be downloaded which will include the price list files in either JSON or CSV format from the production data set.\r\n\r\nTo get a \"delta\" (any changes to pricing) you can specify the fromDate field with the query date. The call will generate a `data.zip` containing only the product price lists which have had any price changes since the specified date.\r\n\r\nPlease note that the Sandbox environment pricelist contains limited range of products. The products IDs returned are different between the Sandbox and the Live environments.\r\n\r\n### Request Body Fields ###\r\n\r\n|Field|Type|Required|Description|\r\n|-----|----|--------|-----------|\r\n|email|string|yes|The target Email to which to send the generated price lists, e.g. customer@company.com|\r\n|markup|number|no|The price markup expressed in percentage, e.g. `15` = 15%. Set it to 0 to disregard applying markup to the prices.|\r\n|format|string|yes|The requested file format. This can be either `json` or `csv`.|\r\n|productNames|string|no|Optional filter which accepts a string array and allows you to specify which price lists for which products to send. If nothing specified all available products will be returned, e.g. `[\"Flyers\", \"Comp slips\"]`. These are solely for testing purposes.|\r\n|fromDate|string|no|Optional date field in the `DD/MM/YYYY` formay which allows you to get a \"delta\" for your price list.|\r\n\r\n**The product name example provided are solely for testing purposes.**"},"response":[{"id":"4d9a1863-2a51-4996-b92e-3d70a3cbdadd","name":"Request for All Products in JSON format with 10% Markup","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"customer@company.com\",\r\n  \"markup\": 10,\r\n  \"format\": \"json\"\r\n}"},"url":"https://{{environmentUrl}}/v2/products-v2"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"message\": \"Your pricelist is being generated. It will be send to you via e-mail within the next 10 minutes.\"\n    }\n}"},{"id":"99213f8f-037d-4407-9715-8a44fad03aa7","name":"Request for One Product Price Updates in JSON format with 15% Markup","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"customer@company.com\",\r\n  \"productNames\": [\r\n    \"Flyers\"\r\n  ],\r\n  \"markup\": 15,\r\n  \"format\": \"json\",\r\n  \"fromDate\": \"07/12/2018\"\r\n}"},"url":"https://{{environmentUrl}}/v2/products-v2"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"message\": \"There are no further price changes from the date you have specified.\",\n        \"pricingUpdated\": false\n    }\n}"},{"id":"99dbd38e-9ecb-4338-808c-59240ec233f1","name":"Request for One Product Price Update in CSV format with 25% Markup","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"customer@company.com\",\r\n  \"productNames\": [\r\n    \"Flyers\"\r\n  ],\r\n  \"markup\": 25,\r\n  \"format\": \"csv\",\r\n  \"fromDate\": \"11/11/2018\"\r\n}"},"url":"https://{{environmentUrl}}/v2/products-v2"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"message\": \"Your pricelist is being generated. It will be send to you via e-mail within the next 10 minutes. If you have specified a fromDate this will only include the prices changed since that date.\",\n        \"pricingUpdated\": true,\n        \"numberOfChanges\": 5290\n    }\n}"},{"id":"c0be5a97-c01e-4a06-ad4d-8f0b9b6269de","name":"Request for Two Products in CSV format with 5% Markup","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"customer@company.com\",\r\n  \"productNames\": [\r\n    \"Flyers\",\r\n    \"Foamex Boards\"\r\n  ],\r\n  \"markup\": 5,\r\n  \"format\": \"csv\"\r\n}"},"url":"https://{{environmentUrl}}/v2/products-v2"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"message\": \"Your pricelist is being generated. It will be send to you via e-mail within the next 10 minutes.\"\n    }\n}"}],"_postman_id":"712da46a-dddd-4001-a25c-e38d94840efb"},{"name":"Request Price List for Single Product","id":"8df6cae4-aaa3-4bac-9d8d-8c2609b7f176","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"format\": \"{{format}}\",\n\t\"markup\": {{markup}},\n\t\"fromDate\": \"{{fromDate}}\"\n}"},"url":"https://sandbox.orders.tradeprint.io/v2/products-v2/Waterproof Posters","description":"Gets a signed S3 URL which you can use to download your product price list."},"response":[{"id":"6f7f46c6-75ac-46d8-acfa-68cfbe4e2e6e","name":"Get Product Price List Asynchronous","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"format\": \"csv\",\n\t\"markup\": 10,\n\t\"fromDate\": \"22/04/2017\"\n}"},"url":"https://{{environmentUrl}}/v2/products-v2/{{productName}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"message\": \"\",\n        \"productsAvailable\": true,\n        \"url\": \"https://s3.eu-west-1.amazonaws.com/tradeprint.exports/pricing/exports/SIGNED_STRING\"\n    }\n}"}],"_postman_id":"8df6cae4-aaa3-4bac-9d8d-8c2609b7f176"},{"name":"Get All Products Attributes","event":[{"listen":"test","script":{"id":"6f28feef-8094-4118-8997-1f7bfa4f6f71","exec":[""],"type":"text/javascript"}}],"id":"efd9a47e-0647-4356-bf93-47295208f640","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[{"description":"Sets the content type to JSON","key":"Content-Type","value":"application/json"},{"description":"The JWT token bearer","key":"Authorization","value":"Bearer {{token}}"}],"url":"https://sandbox.orders.tradeprint.io/v2/products-v2/attributes-v2","description":"This call will return all products' attributes from the customer's pricelist."},"response":[{"id":"46b86a32-82e2-4151-86cc-427911dd445a","name":"Get All Products Attributes","originalRequest":{"method":"GET","header":[{"description":"Sets the content type to JSON","key":"Content-Type","value":"application/json"},{"description":"The JWT token bearer","key":"Authorization","value":"Bearer {{token}}"}],"url":"https://{{environmentUrl}}/v2/products-v2/attributes-v2"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"Comp slips\": {\n            \"values\": {\n                \"productKey\": \"PRD-9N6IUQGM\",\n                \"attributes\": {\n                    \"Sides Printed\": [\n                        \"Double Sided\",\n                        \"Single Sided\"\n                    ],\n                    \"Sets\": [\n                        \"1\"\n                    ],\n                    \"Paper Type\": [\n                        \"120gsm Premium Smooth White Paper\",\n                        \"100gsm Premium Smooth White Paper\"\n                    ]\n                }\n            }\n        },\n        \"Letterheads\": {\n            \"values\": {\n                \"productKey\": \"PRD-OB1THP9H\",\n                \"attributes\": {\n                    \"Sides Printed\": [\n                        \"Double Sided\",\n                        \"Single Sided\"\n                    ],\n                    \"Sets\": [\n                        \"1\"\n                    ],\n                    \"Paper Type\": [\n                        \"120gsm Premium Smooth White Paper\",\n                        \"100gsm Premium Smooth White Paper\"\n                    ]\n                }\n            }\n        },\n        \"Flyers\": {\n            \"values\": {\n                \"productKey\": \"PRD-WLPVQMTE\",\n                \"attributes\": {\n                    \"Size\": [\n                        \"Square 105mm x 105mm\",\n                        \"A3\",\n                        \"A4\",\n                        \"A5\",\n                        \"A6\",\n                        \"A7\",\n                        \"Square 148mm x 148mm\",\n                        \"1/3 A4 (DL)\",\n                        \"Square 210mm x 210mm\"\n                    ],\n                    \"Sides Printed\": [\n                        \"Double Sided\",\n                        \"Single Sided\"\n                    ],\n                    \"Sets\": [\n                        \"1\"\n                    ],\n                    \"Lamination\": [\n                        \"Both Sides (Matt)\",\n                        \"None\",\n                        \"Both Sides (Gloss)\"\n                    ],\n                    \"Paper Type\": [\n                        \"400gsm Art Board Silk Finish\",\n                        \"120gsm Premium Smooth White Paper\",\n                        \"130gsm Art Paper Gloss Finish\",\n                        \"170gsm Art Paper Gloss Finish\",\n                        \"100gsm Premium Smooth White Paper\",\n                        \"130gsm Art Paper Silk Finish\",\n                        \"300gsm Art Board Coated\",\n                        \"170gsm Art Paper Silk Finish\",\n                        \"450gsm Art Board Silk Finish\"\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"efd9a47e-0647-4356-bf93-47295208f640"},{"name":"Get Attributes for Specific Product","event":[{"listen":"test","script":{"id":"39894056-6aed-4525-b5de-335d19d13dd1","exec":[""],"type":"text/javascript"}}],"id":"9514556e-771a-4847-87c4-8167ec865649","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[{"key":"Content-Type","value":"application/json","description":"Sets the content type to JSON"},{"key":"Authorization","value":"Bearer {{token}}","description":"The JWT token bearer"}],"url":"https://sandbox.orders.tradeprint.io/v2/products-v2/attributes-v2/{{productName}}","description":"This call will return specific product attributes from the customer's price list."},"response":[{"id":"2fc6163c-31a8-4482-8451-a953e3feb2cc","name":"Get Attributes for Specific Product","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","description":"Sets the content type to JSON"},{"key":"Authorization","value":"Bearer {{token}}","description":"The JWT token bearer"}],"url":"https://{{environmentUrl}}/v2/products-v2/attributes-v2/Comp%20slips"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"values\": {\n            \"productKey\": \"PRD-9N6IUQGM\",\n            \"attributes\": {\n                \"Sides Printed\": [\n                    \"Double Sided\",\n                    \"Single Sided\"\n                ],\n                \"Sets\": [\n                    \"1\"\n                ],\n                \"Paper Type\": [\n                    \"120gsm Premium Smooth White Paper\",\n                    \"100gsm Premium Smooth White Paper\"\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"9514556e-771a-4847-87c4-8167ec865649"},{"name":"Request Product Quantities","id":"7932654e-d211-4116-8cbb-fb7b654af2ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"productId\": \"{{productId}}\",\n\t\"serviceLevel\": \"{{serviceLevel}}\",\n\t\"productionData\": \"{{productionData}}\"\n}"},"url":"https://{{environmentUrl}}/v2/products-v2/quantities-v2","description":"This call will return the specific product quantity values."},"response":[{"id":"5db53597-d664-4bd0-86e9-bb939f935b11","name":"Get Product Quantities Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"productId\": \"PRD-SRJ3LY4F\",\r\n\t\"serviceLevel\": \"Saver\",\r\n\t\"productionData\": {\r\n\t\t\"Sides Printed\": \"Double Sided\",\r\n\t\t\"Paper Type\": \"100gsm Premium Smooth White Paper\",\r\n\t\t\"Sets\": \"1\"\r\n\t}\r\n}"},"url":"https://{{environmentUrl}}/v2/products-v2/quantities-v2"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": [\n        250,\n        500,\n        1000,\n        2000,\n        2500,\n        5000,\n        7500,\n        10000,\n        12500,\n        15000,\n        20000,\n        25000,\n        30000,\n        35000,\n        40000,\n        45000,\n        50000,\n        55000,\n        60000,\n        65000,\n        70000,\n        75000,\n        80000,\n        85000,\n        90000,\n        95000,\n        100000\n    ]\n}"}],"_postman_id":"7932654e-d211-4116-8cbb-fb7b654af2ab"},{"name":"Get Expected Delivery Date","event":[{"listen":"test","script":{"id":"dfa36ed7-2a55-4284-bbc0-b67977400b3f","exec":[""],"type":"text/javascript"}}],"id":"ccf88d54-9567-433c-a328-8dd90b3bbf18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"POST","header":[{"description":"Sets content type to JSON","key":"Content-Type","value":"application/json"},{"description":"JWT Token Bearer","key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"productId\": \"{{productId}}\",\n\t\"productionData\": {\n\t\t\"Lamination\": \"None\",\n\t    \"Paper Type\": \"400gsm Art Board Silk Finish\",\n\t    \"Round Corners\": \"Yes\",\n\t    \"Sets\": \"1\",\n\t    \"Sides Printed\": \"Double Sided\",\n\t    \"Spot Uv\": \"None\"\n\t},\n\t\"serviceLevel\": \"{{serviceLevel}}\",\n\t\"quantity\": {{quantity}},\n\t\"artworkService\": \"{{artowrkService}}\",\n\t\"deliveryAddress\": {\n\t\t\"postcode\": \"{{postcode}}\"\n\t}\n}"},"url":"https://{{environmentUrl}}/v2/products/expectedDeliveryDate","description":"Get the expected delivery date for a product selection.\n\n|Field|Type|Required|Description|\n|-----|----|--------|-----------|\n|`productId`|string|yes|Tradeprint Product ID.|\n|`productionData`|object|yes|Relevant production attributes can be found within your pricelist and add a link to products endpoint.|\n|`serviceLevel`|string|yes|Manufacturing speed (`Saver`, `Standard`, `Express`, `Same Day`).|\n|`quantity`|number|yes|The quantity to be manufactured.|\n|`artworkService`|string|yes|Supply the artwork service: `Just Print`, `File Check`, `File Assist` or `File Check with Proofing`.|\n|`deliveryAddress`|object|no|Optional delivery address details for precise location-based expected delivery date calculation.|\n\n### Delivery Address ###\n\n`deliveryAddress` object structure\n\n|Field|Type|Required|Description|\n|-----|----|--------|-----------|\n|`postcode`|string|yes|The postcode to determine where the item is meant to be delivered too, e.g. `DD2 1TP`.|"},"response":[{"id":"79528cf4-eb56-4e14-b0a3-2d70d8a5445a","name":"Successful Expected Delivery Date With Shetland Postcode","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"Sets content type to JSON"},{"key":"Authorization","value":"Bearer {{token}}","description":"JWT Token Bearer"}],"body":{"mode":"raw","raw":"{\n    \"productId\": \"PRD-OB1THP9H\",\n    \"productionData\": {\n        \"Sets\": \"2\",\n        \"Paper Type\": \"120gsm Premium Smooth White Paper\",\n        \"Sides Printed\": \"Single Sided\"\n    },\n    \"serviceLevel\": \"Saver\",\n    \"quantity\": 10000,\n    \"artworkService\": \"Just Print\",\n    \"deliveryAddress\": {\n        \"postcode\": \"ZE1 0AA\"\n    }\n}"},"url":"https://{{environmentUrl}}/v2/products/expectedDeliveryDate"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"timestamp\": 1717545600000,\n        \"formattedDate\": \"05/06/2024\"\n    }\n}"},{"id":"98d51679-7ead-45d0-bcee-37e32ea21ca1","name":"Successful Expected Delivery Date","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"Sets content type to JSON"},{"key":"Authorization","value":"Bearer {{token}}","description":"JWT Token Bearer"}],"body":{"mode":"raw","raw":"{\n\t\"productId\": \"PRD-OB1THP9H\",\n    \"productionData\": {\n        \"Sets\": \"2\",\n        \"Paper Type\": \"120gsm Premium Smooth White Paper\",\n        \"Sides Printed\": \"Single Sided\"\n    },\n\t\"serviceLevel\": \"Express\",\n\t\"quantity\": 2000,\n\t\"artworkService\": \"Just Print\"\n}"},"url":"https://{{environmentUrl}}/v2/products/expectedDeliveryDate"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"timestamp\": 1717113600000,\n        \"formattedDate\": \"31/05/2024\"\n    }\n}"},{"id":"c659ce63-a7d5-4036-a782-6b364aaa90bf","name":"Failed Expected Delivery Date","originalRequest":{"method":"POST","header":[{"description":"Sets content type to JSON","key":"Content-Type","value":"application/json"},{"description":"JWT Token Bearer","key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n\t\"productId\": \"PRD-GGK8CQCM\",\n\t\"productionData\": {\n\t\t\"Lamination\": \"None\",\n\t    \"Paper Type\": \"BOGUS PAPER TYPE\",\n\t    \"Round Corners\": \"Yes\",\n\t    \"Sets\": \"1\",\n\t    \"Sides Printed\": \"Double Sided\",\n\t    \"Spot Uv\": \"None\"\n\t},\n\t\"serviceLevel\": \"Express\",\n\t\"quantity\": 2000,\n\t\"artworkService\": \"Just Print\"\n}"},"url":"https://{{environmentUrl}}/v2/products/expectedDeliveryDate"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"errorMessage\": \"No data for the provided product attribues\",\n    \"errorDetails\": {\n        \"productId\": \"PRD-GGK8CQCM\",\n        \"productionData\": {\n            \"Lamination\": \"None\",\n            \"Paper Type\": \"400gsm Art Board Silk Finishfff\",\n            \"Round Corners\": \"Yes\",\n            \"Sets\": \"1\",\n            \"Sides Printed\": \"Double Sided\",\n            \"Spot Uv\": \"None\"\n        },\n        \"serviceLevel\": \"Express\",\n        \"quantity\": 2000,\n        \"artworkService\": \"Just Print\"\n    }\n}"}],"_postman_id":"ccf88d54-9567-433c-a328-8dd90b3bbf18"},{"name":"Get Product Price by Production Data","id":"2630a1aa-5ebc-4f04-ab8c-0f359b53eadd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{auth_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"productId\": \"PRD-KJDNOQFE\",\r\n    \"productionData\": {\r\n        \"Size\": \"A5 Landscape\",\r\n        \"Pagecount\": \"44\",\r\n        \"Lamination\": \"None\",\r\n        \"Paper Type\": \"115gsm Art Paper Gloss Finish\",\r\n        \"Custom Size\": \"1\",\r\n        \"Cover Material\": \"200gsm Art Paper Silk Finish\"\r\n    },\r\n    \"quantity\": 10000,\r\n    \"serviceLevel\": \"Saver\",\r\n    \"fuzzyMatch\": true,\r\n    \"updatedAttribute\": {\r\n        \"Paper Type\": \"170gsm Art Paper Silk Finish\"\r\n    }\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://sandbox.orders.tradeprint.io/v2/products/prices","description":"Request for product price.\n\nThis call will initiate a process that will fetch price for the provided product id, production data and quantity\n\nPlease note that the Sandbox environment pricelist contains limited range of products. The products IDs are different between the Sandbox and the Live environments.\n\n### Request Body Fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| productId | string | yes | product id |\n| productionData | object | yes | production data |\n| quantity | number | yes | quantity |\n| serviceLevel | string | no | service level should be either one \\[Standard, Express, Saver, Same Day\\] |\n| updatedAttribute | object | no | the productionData will be updated by the value from this object |\n| fuzzyMatch | boolean | no | if you provide this value then the updatedAttribute object needs to be passed |"},"response":[{"id":"5a8575a7-5a8f-4850-aafb-5c70559d7418","name":"Get product price using production data","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{auth-token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"productId\": \"PRD-KJDNOQFE\",\r\n    \"productionData\": {\r\n        \"Size\": \"A5 Landscape\",\r\n        \"Pagecount\": \"44\",\r\n        \"Lamination\": \"None\",\r\n        \"Paper Type\": \"115gsm Art Paper Gloss Finish\",\r\n        \"Custom Size\": \"1\",\r\n        \"Cover Material\": \"200gsm Art Paper Silk Finish\"\r\n    },\r\n    \"quantity\": 10000,\r\n    \"serviceLevel\": \"Saver\",\r\n    \"fuzzyMatch\": true,\r\n    \"updatedAttribute\": {\r\n        \"Paper Type\": \"170gsm Art Paper Silk Finish\"\r\n    }\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://sandbox.orders.tradeprint.io/v2/products/prices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"377"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 17 Nov 2021 06:10:30 GMT"},{"key":"x-amzn-RequestId","value":"d08c71eb-96d0-493b-a9ed-839136c40cf6"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"I71vKFgcjoEFwXQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61949cc7-65270cb87e840a755aa5e1bf;Sampled=1"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b1e07f9510428f387d8a4a0586445768.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"HYD50-C2"},{"key":"X-Amz-Cf-Id","value":"2EBxNDaz6naXL2Y-KwY58jVUnqTHBoJZ1lH4lTx74lnLp_QHACQVpg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"productionData\": {\n            \"Size\": \"A5 Landscape\",\n            \"Pagecount\": \"44\",\n            \"Lamination\": \"None\",\n            \"Paper Type\": \"170gsm Art Paper Silk Finish\",\n            \"Custom Size\": \"N/A\",\n            \"Cover Material\": \"300gsm Art Board Coated\"\n        },\n        \"productPrices\": {\n            \"Just Print\": 0,\n            \"File Check\": 20,\n            \"File Check with Proofing\": 52,\n            \"File Assist\": 120,\n            \"Artwork Tax\": \"0.2\",\n            \"PriceSaver\": 2581.82,\n            \"Production Days Saver\": 17\n        }\n    }\n}"}],"_postman_id":"2630a1aa-5ebc-4f04-ab8c-0f359b53eadd"},{"name":"Get Product Price by Production Data V2","id":"7ce77338-17c4-42de-9e56-4a13ee736561","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{auth_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"productId\": \"PRD-JCJE7ZVG\",\n    \"serviceLevel\": \"Standard\",\n    \"quantity\": [\n        500,\n        750\n    ],\n    \"productionData\": {\n        \"Size\": \"C5 (229 x 162mm)\",\n        \"Sides Printed\": \"Full Colour on Face\",\n        \"Paper Type\": \"90gsm White Self Seal\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.orders.tradeprint.io/v2/products-v2/prices-v2","description":"Request for product price.\n\nThis call will fetch prices for the provided product Id and production data\n\nPlease note that the Sandbox environment pricelist contains limited range of products. The products IDs are different between the Sandbox and the Live environments.\n\n### Request Body Fields\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| productId | string | yes | product id |\n| productionData | object | yes | production data |\n| quantity | list | no | product quantity |\n| serviceLevel | string | no | service level should be either one \\[Standard, Express, Saver, Same Day\\] |"},"response":[{"id":"a7aae83b-7637-4939-b61d-5c594839f71b","name":"Get Product Price by Production Data V2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{auth_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"productId\": \"PRD-JCJE7ZVG\",\n    \"serviceLevel\": \"Standard\",\n    \"quantity\": [\n        500,\n        750\n    ],\n    \"productionData\": {\n        \"Size\": \"C5 (229 x 162mm)\",\n        \"Sides Printed\": \"Full Colour on Face\",\n        \"Paper Type\": \"90gsm White Self Seal\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.orders.tradeprint.io/v2/products-v2/prices-v2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"332"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 11 Sep 2023 07:59:27 GMT"},{"key":"x-amzn-RequestId","value":"006d1f94-8897-4149-8db1-91c7664972b0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"LFRS2GlbjoEF8Gw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-64fec8de-09bf8f9b070d866b75fbe861;Sampled=1;lineage=92d058b4:0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 ad2e156b814ffdb48a179b428d405218.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"PNQ50-P1"},{"key":"X-Amz-Cf-Id","value":"4uZpR29vCPegAp5Zc23W_kwD_G224kgf08zhsHBn-809DFMd2vc3XQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": [\n        {\n            \"quantity\": 500,\n            \"prices\": [\n                {\n                    \"price\": 116.42,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 105.84,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 95.26,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 750,\n            \"prices\": [\n                {\n                    \"price\": 142.31,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 129.37,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 116.43,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"0b8f60c9-9fd3-463f-a007-bacb081cf164","name":"Quantity and Service Level both are passed","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{auth_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"productId\": \"PRD-JCJE7ZVG\",\n    \"serviceLevel\": \"Standard\",\n    \"quantity\": [\n        500,\n        750\n    ],\n    \"productionData\": {\n        \"Size\": \"C5 (229 x 162mm)\",\n        \"Sides Printed\": \"Full Colour on Face\",\n        \"Paper Type\": \"90gsm White Self Seal\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.orders.tradeprint.io/v2/products-v2/prices-v2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"169"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 11 Sep 2023 09:14:13 GMT"},{"key":"x-amzn-RequestId","value":"2dac3675-d234-4ba7-b22b-156a2bc256c3"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"LFcPmFscDoEFXhg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-64feda63-3fd0b1300ff7fe013df72597;Sampled=0;lineage=c161070f:0|92d058b4:0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 1619dfffe3eeee4e3904972dc1c08828.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"PNQ50-P1"},{"key":"X-Amz-Cf-Id","value":"t4XzZX5rguq_W0tcPBvY8Qz_I4twNxTQHcUfkXZ8EzPtqvw7O3YMFg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": [\n        {\n            \"quantity\": 500,\n            \"prices\": [\n                {\n                    \"price\": 105.84,\n                    \"serviceLevel\": \"Standard\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 750,\n            \"prices\": [\n                {\n                    \"price\": 129.37,\n                    \"serviceLevel\": \"Standard\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"6cd229f2-b22d-4689-86e1-28797663f865","name":"Service Level is not passed","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"productId\": \"PRD-JCJE7ZVG\",\n    \"quantity\": [\n        500,\n        750\n    ],\n    \"productionData\": {\n        \"Size\": \"C5 (229 x 162mm)\",\n        \"Sides Printed\": \"Full Colour on Face\",\n        \"Paper Type\": \"90gsm White Self Seal\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.orders.tradeprint.io/v2/products-v2/prices-v2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"332"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 11 Sep 2023 09:15:04 GMT"},{"key":"x-amzn-RequestId","value":"d6afac3f-81c1-4dc8-b231-93bdea3c1e19"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"LFcXyGh7DoEFbaQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-64feda97-0fbc4d00617ff33d6f9c1bf4;Sampled=1;lineage=92d058b4:0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 1619dfffe3eeee4e3904972dc1c08828.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"PNQ50-P1"},{"key":"X-Amz-Cf-Id","value":"_OKGcvIYHGa8JRIlC46tQpapQVJ7VFwOmLDGeZp1GFRgBemjZohqVA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": [\n        {\n            \"quantity\": 500,\n            \"prices\": [\n                {\n                    \"price\": 116.42,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 105.84,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 95.26,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 750,\n            \"prices\": [\n                {\n                    \"price\": 142.31,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 129.37,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 116.43,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"546f1ea9-1597-4c75-b35d-51a640ce9215","name":"Quantity is not passed","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"productId\": \"PRD-JCJE7ZVG\",\n    \"serviceLevel\": \"Standard\",\n    \"productionData\": {\n        \"Size\": \"C5 (229 x 162mm)\",\n        \"Sides Printed\": \"Full Colour on Face\",\n        \"Paper Type\": \"90gsm White Self Seal\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.orders.tradeprint.io/v2/products-v2/prices-v2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"332"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 11 Sep 2023 09:15:04 GMT"},{"key":"x-amzn-RequestId","value":"d6afac3f-81c1-4dc8-b231-93bdea3c1e19"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"LFcXyGh7DoEFbaQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-64feda97-0fbc4d00617ff33d6f9c1bf4;Sampled=1;lineage=92d058b4:0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 1619dfffe3eeee4e3904972dc1c08828.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"PNQ50-P1"},{"key":"X-Amz-Cf-Id","value":"_OKGcvIYHGa8JRIlC46tQpapQVJ7VFwOmLDGeZp1GFRgBemjZohqVA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": [\n        {\n            \"quantity\": 500,\n            \"prices\": [\n                {\n                    \"price\": 116.42,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 105.84,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 95.26,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 750,\n            \"prices\": [\n                {\n                    \"price\": 142.31,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 129.37,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 116.43,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"48dd3182-8930-4cd0-9f14-c9854b4e2651","name":"Quantity and Service Level both are not Passed","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"productId\": \"PRD-JCJE7ZVG\",\n    \"productionData\": {\n        \"Size\": \"C5 (229 x 162mm)\",\n        \"Sides Printed\": \"Full Colour on Face\",\n        \"Paper Type\": \"90gsm White Self Seal\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.orders.tradeprint.io/v2/products-v2/prices-v2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1870"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 11 Sep 2023 09:17:05 GMT"},{"key":"x-amzn-RequestId","value":"c766beef-8ac3-4d24-aaae-428bc417cb34"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"LFcquG7qjoEFVCg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-64fedb11-1e3cfd782acd3a3220328b00;Sampled=1;lineage=92d058b4:0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 1619dfffe3eeee4e3904972dc1c08828.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"PNQ50-P1"},{"key":"X-Amz-Cf-Id","value":"fIjOK6OQPptoOXnT2gY-3p1DlCtA6e9Lz3w3u1vF9Zgm_QRi2ZlGBQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": [\n        {\n            \"quantity\": 500,\n            \"prices\": [\n                {\n                    \"price\": 116.42,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 105.84,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 95.26,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 750,\n            \"prices\": [\n                {\n                    \"price\": 142.31,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 129.37,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 116.43,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 1000,\n            \"prices\": [\n                {\n                    \"price\": 181.1,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 164.64,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 148.18,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 2000,\n            \"prices\": [\n                {\n                    \"price\": 254.84,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 231.67,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 208.5,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 3000,\n            \"prices\": [\n                {\n                    \"price\": 327.28,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 297.53,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 267.78,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 4000,\n            \"prices\": [\n                {\n                    \"price\": 384.2,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 349.27,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 314.34,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 5000,\n            \"prices\": [\n                {\n                    \"price\": 455.34,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 413.95,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 372.56,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 6000,\n            \"prices\": [\n                {\n                    \"price\": 498.04,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 452.76,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 407.48,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 7000,\n            \"prices\": [\n                {\n                    \"price\": 542.15,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 492.86,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 443.57,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 8000,\n            \"prices\": [\n                {\n                    \"price\": 586.26,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 532.96,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 479.66,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 9000,\n            \"prices\": [\n                {\n                    \"price\": 630.37,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 573.06,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 515.75,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        },\n        {\n            \"quantity\": 10000,\n            \"prices\": [\n                {\n                    \"price\": 675.91,\n                    \"serviceLevel\": \"Express\"\n                },\n                {\n                    \"price\": 614.46,\n                    \"serviceLevel\": \"Standard\"\n                },\n                {\n                    \"price\": 553.01,\n                    \"serviceLevel\": \"Saver\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"7ce77338-17c4-42de-9e56-4a13ee736561"}],"id":"89c80914-79f4-4d6f-98fd-b6bbed6dc63b","event":[{"listen":"prerequest","script":{"id":"aece3879-cf55-4577-87af-530a655b34c7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a551b387-d02e-46ed-a9c5-652d3d5819c5","type":"text/javascript","exec":[""]}}],"_postman_id":"89c80914-79f4-4d6f-98fd-b6bbed6dc63b"},{"name":"Webhooks","item":[],"id":"99f2b119-d1d0-41da-a139-9669b429eadf","description":"**Overview**\n\nTradeprint API can notify your backend systems about state changes on an order items via web hooks, this is useful if you want to keep track of your orders without having to use the GET item endpoint.\n\n**Getting started**\n\nTo get started with webhooks you will need to have a HTTP endpoint available that can accept POST requests, if you have an endpoint available let us know the URL and we can activate webhook notifications for you.\n\nBe sure to adjust your firewall so our IP addresses are whitelisted, you can find a list of IP addresses we use for web hooks at the bottom of this page.\n\n**Receiving a web-hook**\n\nWe will post web hooks to your endpoint with JSON as an order item changes state within our manufacturing processes. Here a few sample of JSON data coming in with a call:\n\n**Line item states returned via web-hooks**\n\n| State | Description |\n| --- | --- |\n| `Processing` | We have accepted your item and are preparing it for manufacturing. |\n| `Delayed` | You opted for a service level that is not available, (ie Same Day after 11am) your item will be processed when that service level becomes available again. |\n| `Confirmed` | The item has been confirmed in Tradeprint's manufacturing system. |\n| `WaitingForArtwork` | The item is awaiting artwork. |\n| `WaitingForDocReview` | The item is in the queue for artwork review before printing. |\n| `DocReviewInProgress` | The item artwork is being reviewed before printing. |\n| `DocReviewRejected` | There is a problem with the supplied artwork and we cannot print this item. |\n| `PrintingInProgress` | The item is being printed. |\n| `Shipped` | The item has been printed and shipped and tracking information should now be present. |\n| `Cancelled` | The item got cancelled and will not be fulfilled, no transition from this status is possible. |\n| `PaymentFailed` | The order has failed to inject due to payment issues |\n\n_**WaitingForArtwork Data**_\n\n```\n{\n    \"webhookSource\": \"TPConnectSandbox\",\n    \"webhookNotificationId\": \"609d9a80-d77f-11e8-ade0-5746075ae4ff\",\n    \"webhookTimestamp\": 1546913034486,\n    \"orderReference\": \"5d71e680-129a-11e9-b75a-c78dc7f41f8a\",\n    \"orderItem\": {\n        \"itemReference\": \"5d71e681-129a-11e9-b75a-c78dc7f41f8a\",\n        \"fileUrls\": [\n            \"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"\n        ],\n        \"hasError\": false,\n        \"serviceLevel\": \"Saver\",\n        \"extraData\": {\n            \"purchaseOrder\": \"12345679\",\n            \"merchandisingProductName\": \"PVC Banner\",\n            \"comments\": \"Please ensure not to trim into text\",\n        },\n        \"status\": \"WaitingForArtwork\"\n    }\n}\n\n ```\n\n_**DocReviewRejected Data**_\n\n```\n{\n    \"webhookNotificationId\": \"9c2fb1f0-d77f-11e8-a52d-fb02cd7affcf\",\n    \"webhookSource\": \"TPConnectSandbox\",\n    \"webhookTimestamp\": 1540380350699,\n    \"orderReference\": \"609d9a80-d77f-11e8-ade0-5746075ae4ff\",\n    \"orderItem\": {\n        \"itemReference\": \"cebc0710-158a-11e9-8d6b-356f8888bd17\",\n        \"status\": \"DocReviewRejected\",\n        \"hasError\": true,\n        \"serviceLevel\": \"Saver\",\n        \"extraData\": {\n            \"partnerItemId\": \"PMFLYERS00035-50\",\n            \"merchandisingProductName\": \"Flyers A3\"\n        },\n        \"fileUrls\": [\n            \"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"\n        ],\n        \"docReviewRejectionReason\": \"Rejection reason not known\"\n    }\n}\n\n ```\n\n_**Shipped Data**_\n\n```\n{\n    \"orderReference\": \"609d9a80-d77f-11e8-ade0-5746075ae4ff\",\n    \"webhookNotificationId\": \"9c2fb1f0-d77f-11e8-a52d-fb02cd7affcf\",\n    \"webhookSource\": \"TPConnectSandbox\",\n    \"webhookTimestamp\": 1540380350699,\n    \"orderItem\": {\n        \"itemReference\": \"cb468e60-1595-11e9-9a25-db338f5d66c2\",\n        \"status\": \"Shipped\",\n        \"hasError\": false,\n        \"serviceLevel\": \"Saver\",\n        \"extraData\": {\n            \"partnerItemId\": \"PMFLYERS00035-50\",\n            \"merchandisingProductName\": \"Flyers A3\"\n        },\n        \"fileUrls\": [\n            \"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"\n        ],\n        \"shippingInfo\": {\n            \"itemDetailsResult\": {\n                \"itemNumber\": \"BQBN7S7UUY\",\n                \"orderNumber\": \"AZ57SPUS3M\",\n                \"customerNumber\": \"123469321\",\n                \"orderDate\": \"11/01/2019\",\n                \"scheduledDeliveryDate\": \"18/01/2019\",\n                \"itemTotalGBP\": \"13.90\",\n                \"dispatchDate\": \"18/01/2019\",\n                \"productQuantity\": \"50\",\n                \"productName\": \"Flyers\",\n                \"artworkService\": \"Just Print\",\n                \"deliveryAddressName\": \"unknown\",\n                \"deliveryAddressCompany\": \"\",\n                \"deliveryAddressAdd1\": \"1 Magic street\",\n                \"deliveryAddressAdd2\": \"Magic road\",\n                \"deliveryAddressTown\": \"London\",\n                \"deliveryAddressPostalCode\": \"l1D 2SR\",\n                \"companyName\": \"Your company name\",\n                \"contactName\": \"Your contact name\",\n                \"emailAddress\": \"test@email.test\",\n                \"phoneNumber\": \"\",\n                \"shippingInfo\": {\n                    \"deliveries\": [\n                        {\n                            \"parcels\": [\n                                {\n                                    \"id\": \"0779f56a-41b3-425c-8b0f-04a6fd26a34b\",\n                                    \"trackingData\": {\n                                        \"trackingId\": \"222212:https://www.fedex.com/apps/fedextrack/?action=track&ascend_header=1&clienttype=dotcom&cntry_code=gb&language=english&tracknumbers=xxxx\"\n                                    },\n                                    \"items\": [\n                                        {\n                                            \"quantity\": 0,\n                                            \"id\": \"848791f2-c2db-454a-bf11-57cdaba73a56\"\n                                        }\n                                    ]\n                                }\n                            ],\n                            \"createdAt\": \"2018-08-22T04:03:21.596Z\",\n                            \"id\": \"abe981c0-a4a3-4014-8210-36cde00f688f\"\n                        }\n                    ],\n                    \"shippingMethodName\": \"Default\"\n                }\n            }\n        }\n    }\n}\n\n ```\n\n_**PaymentFailed Data**_\n\n```\n{\n    \"webhookSource\": \"TPConnectSandbox\",\n    \"webhookNotificationId\": \"609d9a80-d77f-11e8-ade0-5746075ae4ff\",\n    \"webhookTimestamp\": 1546913034486,\n    \"orderReference\": \"5d71e680-129a-11e9-b75a-c78dc7f41f8a\",\n    \"orderItem\": {\n        \"itemReference\": \"5d71e681-129a-11e9-b75a-c78dc7f41f8a\",\n        \"fileUrls\": [\n            \"https://s3-eu-west-1.amazonaws.com/filestacksupplytest/180MbFile.pdf\"\n        ],\n        \"hasError\": false,\n        \"serviceLevel\": \"Saver\",\n        \"extraData\": {\n            \"purchaseOrder\": \"12345679\",\n            \"merchandisingProductName\": \"PVC Banner\",\n            \"comments\": \"Please ensure not to trim into text\",\n        },\n        \"status\": \"PaymentFailed\"\n    }\n}\n\n ```\n\nThe data provided will differ in your integration.\n\n**Attributes**\n\n| Attribute | Description |\n| --- | --- |\n| `OrderReference` | This is the order reference, note that web hooks are sent at an item level and not an order level so we include the orderReference within our message for reference purposes. |\n| `webhookNotificationId` | This is a unique UUID for the notification. |\n| `webhookSource` | Specifies what source the web hook has come from, 'TPConnectSandbox' for sandbox and 'TPConnectProduction' for live orders. |\n| `webhookTimestamp` | Specifies the epoch time the order transition happened. |\n| `orderItem` | This contains a snapshot of the order item the current state when the web hook was sent, its the same format as using the GET orderItem endpoint. |\n\n**Retry process**\n\nIf we do not receive a HTTP 200 response from your endpoint when we POST the notification we will retry in 20 minutes and continue to retry up to a maximum of 5 times before we disregard the notification. If the maximum amount of retries has been exceeded we will notify you of this via e-mail and move onto the next notification. We advise engineering your receiver endpoint to be as idempotent as possible in case of multiple failures.\n\n**TPConnect IP addresses**\n\nBelow is a list of IP addresses we will use to send webhooks\n\n`54.76.111.108`","event":[{"listen":"prerequest","script":{"id":"dd4e08c0-4215-47b3-8097-1989f64f054c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3b6366eb-9ea1-4c81-9ff1-10f953b305ed","type":"text/javascript","exec":[""]}}],"_postman_id":"99f2b119-d1d0-41da-a139-9669b429eadf"},{"name":"Order State Simulator","item":[],"id":"986cc443-930c-44f3-9480-2cc3da3efadc","description":"Since orders placed on Sandbox are fakes they do not go through the full order lifecycle and therefore cannot reach certain states (`Shipped` for example).\n\n\nTo help developers with testing, Tradeprint API offers a mocked state which can be simulated by supplying an additional attribute with orders placed on sandbox.\n\n\nWe currently offer mocked states for the following orderItem states:\n\n\n`Shipped`\n\n`DocReviewRejected`\n\n`Cancelled`\n\n\nIf you would like to see what an order looks like going through the various transitions to reach the desired state simply specify the following in your order payload:\n\n`\"testStatus\": \"Shipped\"`\n\nOnce the order has been placed and confirmed, if a `testStatus` was supplied when placing the order it will go through various transitions eventually ending up at the supplied `testStatus`.","event":[{"listen":"prerequest","script":{"id":"c967f779-4a96-4112-8875-e0df0bda4c8b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1fbca74e-6ade-4342-accc-5ebce73bb12b","type":"text/javascript","exec":[""]}}],"_postman_id":"986cc443-930c-44f3-9480-2cc3da3efadc"},{"name":"SDK","item":[],"id":"5e5be4fe-bb7f-40eb-b1dc-ec0ba8156209","description":"The Tradeprint API can be interacted with using the official Software Development Kit (SDK).\n\nThis greatly simplifies running the specific calls in the given technological platform. Please see the languages supported below.\n\n# PHP\n\n|Service|URL|\n|-------|---|\n|GitHub|https://github.com/Tradeprint/tradeprint-php-sdk|\n|Packagist|https://packagist.org/packages/tradeprint/tradeprint-php-sdk|\n\n# .NET (C#, Visual Basic et al)\n\n|Service|URL|\n|-------|---|\n|GitHub|https://github.com/Tradeprint/tradeprint-dotnet-sdk|\n|Nuget|https://www.nuget.org/packages/TradeprintSdk|\n\n# Node.js\n\n|Service|URL|\n|-------|---|\n|GitHub|https://github.com/Tradeprint/tradeprint-node-sdk|\n|NPM|https://www.npmjs.com/package/tradeprint-node-sdk|","event":[{"listen":"prerequest","script":{"id":"f7648071-f255-4087-a833-b73b8a8b6982","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9276e2a1-379c-473f-94b3-68ef37d79893","type":"text/javascript","exec":[""]}}],"_postman_id":"5e5be4fe-bb7f-40eb-b1dc-ec0ba8156209"},{"name":"Preflight","item":[{"name":"Initiate Preflight","id":"296c948d-2142-4f94-802e-4a0876f70902","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"productionData\": {\r\n        \"Sets\": \"1\",\r\n        \"Spot Uv\": \"None\",\r\n        \"Lamination\": \"Both Sides (Matt)\",\r\n        \"Paper Type\": \"450gsm Art Board Silk Finish\",\r\n        \"Round Corners\": \"None\",\r\n        \"Sides Printed\": \"Single Sided\"\r\n    },\r\n    \"productKey\": \"PRD-QPAW6H8M\",\r\n    \"fileUrls\": [\r\n        \"https://cdn.filestackcontent.com/WokM6Eq5S2OQT5IQZFxi\"\r\n    ]\r\n}"},"url":"https://sandbox.orders.tradeprint.io/v2/preflight","description":"Request for preflighting. \n\n\n\n### Request Body Fields ###\n\n|Field|Type|Required|Description|\n|-----|----|--------|-----------|\n|productionData|object|yes|Relevant production attributes can be found within your pricelist|\n|productKey|string|yes|Product key|\n|fileUrls|array|yes|Artwork file URL(s).|\n\n**The product key example provided are solely for testing purposes.**"},"response":[{"id":"ef2646cc-3b34-49da-8116-8efcbe5f9691","name":"Initiate Preflight","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"productionData\": {\r\n        \"Sets\": \"1\",\r\n        \"Spot Uv\": \"None\",\r\n        \"Lamination\": \"Both Sides (Matt)\",\r\n        \"Paper Type\": \"450gsm Art Board Silk Finish\",\r\n        \"Round Corners\": \"None\",\r\n        \"Sides Printed\": \"Single Sided\"\r\n    },\r\n    \"productKey\": \"PRD-QPAW6H8M\",\r\n    \"fileUrls\": [\r\n        \"https://cdn.filestackcontent.com/WokM6Eq5S2OQT5IQZFxi\"\r\n    ]\r\n}"},"url":"https://sandbox.orders.tradeprint.io/v2/preflight"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"85"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 05 Jul 2021 06:17:59 GMT"},{"key":"x-amzn-RequestId","value":"079b3905-50b9-41a9-9431-3baafa34ae1f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"B-6TjGFPjoEF-Ig="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60e2a416-3b23cd9122f542e91ed76555;Sampled=1"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 5fcb109f4f7b2baee8846c589e326ecd.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BOM50-C1"},{"key":"X-Amz-Cf-Id","value":"W__l62_ufOnyRtGYxRnnjw-W8s7017Glp2EMxD8EA3jF35AVScTY_A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"requestId\": \"ex-d69e2bc8-2562-4bba-8726-ac1f3252628e~200\"\n    }\n}"}],"_postman_id":"296c948d-2142-4f94-802e-4a0876f70902"},{"name":"Get Preflight Status","id":"6ef39f4a-4cdc-4c06-928a-9d315e1efed4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://sandbox.orders.tradeprint.io/v2/preflight/{{requestId}}"},"response":[{"id":"39df84f2-637b-4061-a983-4d613fa34564","name":"Get Preflight Status","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://stage.orders.tradeprint.io/v2/preflight/{{requestId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"251"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 05 Jul 2021 06:43:15 GMT"},{"key":"x-amzn-RequestId","value":"29aa3462-ba19-45b7-81bc-64bbb9dfd744"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"B--ACFQMjoEFxUA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60e2aa00-42e4bbf9192bb28c1d1dc4ce;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 a676ea4949dbbc15e5d7296079d28db4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BOM50-C1"},{"key":"X-Amz-Cf-Id","value":"8qvIwWm1n7ilv7HmFQANKIwA3I_9ZWwV-GkprhegfvXZQ69XOY9wrQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"statusCode\": 200,\n        \"status\": \"Completed\",\n        \"resultPdf\": \"https://uploads.documents.cimpress.io/v1/uploads/d140faef-7875-4e41-ad71-eb413eea9517~100?tenant=prepress-uploads\",\n        \"requestId\": \"ex-d69e2bc8-2562-4bba-8726-ac1f3252628e~200\"\n    }\n}"}],"_postman_id":"6ef39f4a-4cdc-4c06-928a-9d315e1efed4"}],"id":"dda6be7a-16f9-4d97-9627-b8df47377fac","_postman_id":"dda6be7a-16f9-4d97-9627-b8df47377fac"}],"event":[{"listen":"prerequest","script":{"id":"6bf04b52-ccc2-4fc2-bb4e-02a3ad2131aa","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a55b8a4e-9aa4-45b2-9f8d-92ff5e1f6da1","type":"text/javascript","exec":[""]}}]}