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

Test price order (Updated)

Note : This total price only includes the base cost and shipping cost of the product according to the place of manufacture and shipping in the country of manufacture. The tax fee will be calculate

Chú ý: Giá của order này chỉ bao gồm base cost và shipping cost của sản phẩm theo từng nơi sản xuất và được ship trong nước đó.

// Example data request

{ 
    "shipping_country_code": "US",
    "shipping_province_code": "CA",
    "data_order": [
        {
            "item_sku": "PW17-CWP-DEFAULTSIZE",
            "item_quantity": 1
        },
        {
            "item_sku": "PW17-CLMC-IPHONE6-6S",
            "item_quantity": 2
        }
    ]
}

POST https://api.printway.io/cdn/api/orders/v1/test-cost-order

Headers

Name
Type
Description

PW-ACCESS-TOKEN*

String

The Access Token

Request Body

Name
Type
Description

data_order*

Array

Includes items of order

shipping_province_code*

String

Shipping Province Code (StateCode)

(Max Length : 4 characters)

shipping_country_code*

String

Shipping Country Code

(Country Code ISO Alpha-2)

{
    "status": 200,
    "message": "Test price order successfully!",
    "total_price": 27.97,
    "data": [
        {
            "sku": "PW17-CWP-DEFAULTSIZE",
            "base_cost": 5.2,
            "item_quantity": 1,
            "shipping_fee": 6.7,
            "tax_fee": 0,
            "total_price_item": 11.9
        },
        {
            "sku": "PW17-CLMC-IPHONE6-6S",
            "base_cost": 5.25,
            "item_quantity": 2,
            "shipping_fee": 5.57,
            "tax_fee": 0,
            "total_price_item": 16.07
        }
    ]
}
{
    "status": 400,
    "message": "Invalid item_quantity in data order! Please check again.",
    "result": []
}
{
    "status": 401,
    "message": "Not authenticated"
}
PreviousCreate order v3 (Beta)NextWebhook

Last updated 2 years ago

📜
⁉️