Create order v3 (Beta)
// In this version, We use variant_id to replace sku in order_items
// Data order items example:
"order_items": [
{
"product_name" : "Product new item test 1",
"variant_title": "DEFAULTSIZE / PACK1 / ONESIDE",
"unfulfill_quantity": 1,
"variant_id": 3670001,
"artwork_front" : "https://aws-test-printway.s3.ap-southeast-1.amazonaws.com/1002318-0-1633669018925.png",
"artwork_back" : "",
"url_mockup" : "",
"variant_note": "test"
},
{
"product_name" : "Product new item test 2",
"variant_title": "DEFAULTSIZE / PACK1 / ONESIDE",
"unfulfill_quantity": 5,
"variant_id": 3670001,
"artwork_front" : "https://aws-test-printway.s3.ap-southeast-1.amazonaws.com/1002318-0-1633669018925.png",
"artwork_back" : "https://aws-test-printway.s3.ap-southeast-1.amazonaws.com/1002318-0-1633669018925.png",
"url_mockup" : "https://aws-test-printway.s3.ap-southeast-1.amazonaws.com/1002318-0-1633669018925.png",
"variant_note": "test"
}
]
// Data send order example:
{
"order_id": "PWW1211112",
"shipping_name": "American Auth",
"shipping_phone": "+(807) 939 3211",
"shipping_email": "localce12@gmail.com",
"shipping_address1": "12 Adobe N Auth",
"shipping_address2": "",
"shipping_city": "Altamonte Springs",
"shipping_zip": "15750",
"shipping_province": "Florida",
"shipping_province_code": "FL",
"shipping_country": "United States",
"shipping_country_code": "US",
"order_items": [
{
"product_name" : "Product new item test 1",
"variant_title": "DEFAULTSIZE / PACK1 / ONESIDE",
"unfulfill_quantity": 1,
"variant_id": 3670001,
"artwork_front" : "https://aws-test-printway.s3.ap-southeast-1.amazonaws.com/1002318-0-1633669018925.png",
"artwork_back" : "",
"url_mockup" : "",
"variant_note": "test"
},
{
"product_name" : "Product new item test 2",
"variant_title": "DEFAULTSIZE / PACK1 / ONESIDE",
"unfulfill_quantity": 5,
"variant_id": 3670001,
"artwork_front" : "https://aws-test-printway.s3.ap-southeast-1.amazonaws.com/1002318-0-1633669018925.png",
"artwork_back" : "https://aws-test-printway.s3.ap-southeast-1.amazonaws.com/1002318-0-1633669018925.png",
"url_mockup" : "https://aws-test-printway.s3.ap-southeast-1.amazonaws.com/1002318-0-1633669018925.png",
"variant_note": "test"
}
]
}
POST
https://api.printway.io/cdn/api/orders/v3/create-order
Request and response same as v1
Last updated