Printway API Document
  • ๐ŸŽ‰Welcome to Printway API
  • ๐Ÿ”Authentication
  • ๐Ÿ›’Products
    • ๐Ÿ“‘List products
    • ๐ŸงพDetail products
    • Break of products
  • ๐Ÿ“œOrders
    • ๐Ÿ“”List order synced
    • ๐Ÿ“‹Detail Order Synced
    • ๐Ÿ“ฅCreate order
    • โž•Create order v2
    • โž•Create order v3 (Beta)
    • โ‰๏ธTest price order (Updated)
  • ๐Ÿ“คWebhook
  • โฌ†๏ธWebhook Update Status Order (New)
Powered by GitBook
On this page
  1. Orders

Create order

POST https://api.printway.io/cdn/api/orders/v1/create

Headers

Name
Type
Description

PW-ACCESS-TOKEN*

String

The Access Token

Request Body

Name
Type
Description

order_id*

String

Your Order ID: (Min : 5 characters)

shipping_name*

String

Shipping name

shipping_email*

String

Shipping Email

shipping_phone*

String

Shipping Phone

shipping_address1*

String

Shipping address1

shipping_address2*

String

Shipping address2

shipping_city*

String

Shipping City

shipping_zip*

String

Shipping ZipCode

shipping_povince*

String

Shipping Province (State)

shipping_province_code*

String

Shipping Province Code (StateCode)

(Max Length : 4 characters)

shipping_country*

String

Shipping Country

shipping_country_code*

String

Shipping Country Code

(Country Code ISO Alpha-2)

order_items*

Array

Data items in order.

method

Number

Shipping Method (US):

1 : (Express (Fastship 1-3 days. Note: shipping services for destinations within the US))

2 : (Ground (3-5 business days delivery. Note: shipping services for destinations within the U.S))

Shipping Method (AU):

1: (Express - Fast ship. Note: shipping services for destinations within the AU)

Default Shipping: null (Standard)

{
    "status": 200,
    "message": "Create order successfully!",
    "result": {
        "order_id": "PWW1222366-11",
        "updated_at": "2022-01-22 10:04:13",
        "order_items": [
            {
                "pw_id": 192348,
                "product_name": "Product new item test 1",
                "item_sku": "PW-MALORM-DEFAULTSIZE-PACK1-ONESIDE",
                "unfulfill_quantity": 1
            },
            {
                "pw_id": 192349,
                "product_name": "Product new item test 2",
                "item_sku": "PW-MALORM-DEFAULTSIZE-PACK1-ONESIDE",
                "unfulfill_quantity": 5
            }
        ]
    }
}
{
    "status": 400,
    "message": "Error! Invalid Order Items.",
    "result": {
        "data_error": [
            {
                "item_sku": "Invalid item sku : PW-MALORM-DEFAULTSIZE-PACK1. Not found this sku."
            },
            {
                "item_sku": "Invalid item sku : PW-MALORM-DEFAUL-PACK1-ONESIDE. Not found this sku."
            }
        ]
    }
}
{
    "status": 401,
    "message": "Not authenticated"
}

Data item in order_items :

  • product_name (String) : Item name / Required

  • variant_title (String) : Variant Title / Required

  • item_sku (String) : SKU in our system / Required

  • unfulfill_quantity (Number) : Item quantity / Required

  • artwork_front (url) : Link artwork front / Optional

  • artwork_back (url) : Link artwork back / Optional

  • url_mockup (url) : Link Mockup / Optional

  • variant_note (String) : Item Note / Optional

// Data order items example:

 "order_items": [
        {
            "product_name" : "Product new item test 1",
            "variant_title": "DEFAULTSIZE / PACK1 / ONESIDE",
            "unfulfill_quantity": 1,
            "item_sku": "PW-MALORM-DEFAULTSIZE-PACK1-ONESIDE",
            "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,
            "item_sku": "PW-MALORM-DEFAULTSIZE-PACK1-ONESIDE",
            "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,
            "item_sku": "PW-MALORM-DEFAULTSIZE-PACK1-ONESIDE",
            "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,
            "item_sku": "PW-MALORM-DEFAULTSIZE-PACK1-ONESIDE",
            "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"
        }
    ]
}
PreviousDetail Order SyncedNextCreate order v2

Last updated 2 years ago

๐Ÿ“œ
๐Ÿ“ฅ