บริการ
curl -X [GET|POST] -H "Authorization: Basic {Token}" "https://oms.trustboxfulfillment.com/api/1.0/products"
curl -X [GET|POST] -H "Authorization: Basic {Token}" "https://oms.trustboxfulfillment.com/api/1.0/products"
{
"code": 404,
"error": "Product not found"
}
Code | Description |
---|---|
200 OK | Success. |
404 Not Found | Order not found. |
400 Bad Request | Wrong URL parameters. |
405 Method Not Allowed | Incorrect HTTP method (GET instead of POST, for example) |
500 Internal Server Error | Something is wrong on our server. |
403 Forbidden | API account does not allow this kind of requests. |
Basic {TOKEN}
where the {TOKEN} is the base 64 of the account_loing and api_key separated by a colon. In pseudo-code, it would be:
base64(account_login + ':' + api_key)
GET /inventory/product HTTP/1.1
Host: oms.trustboxfulfillment.com
Authorization: Basic aHR0cHdhdGNoOmY=
https://check.trustboxfulfillment.com/api/ecommerce/courier/price
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://check.trustboxfulfillment.com/api/ecommerce/courier/price"
Name | Description | Type |
---|---|---|
address Required | Customer address | string |
district Required | District name | string |
state Required | State name | string |
province Required | Province name | string |
postcode Required | Postcal Code | string |
tel Required | Mobile number | number |
length Required | length | decimal |
weight Required | weight | decimal |
{
"status": true,
"code": 200,
"message": "",
"data": [
{
"courier": "EMS",
"courier_code": "EMS",
"price": 28
},
{
"courier": "KERRY",
"courier_code": "KND",
"price": 27
}
]
}
https://oms.trustboxfulfillment.com/api/1.0/products
Name | Description |
---|---|
limit | Number of items per page (max 100) |
offset | Result set offset |
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.trustboxfulfillment.com/api/1.0/products"
{
"products": [
{
"item_code": "04300021",
"sku": null,
"ean": null,
"number": "JPT0301-L",
"name": "Crush on me - Navy blue/L",
"width": 0,
"height": 0,
"length": 0,
"weight": 0,
"cost": 0,
"selling_price": 0,
"description": "",
"enable": 1,
"inventory": {
"in_stock": 15,
"on_order": 0,
"available": 15
}
},
{
"item_code": "04300022",
"sku": null,
"ean": null,
"number": "JPT0302-S",
"name": "Crush on me - Black/S",
"width": 0,
"height": 0,
"length": 0,
"weight": 0,
"cost": 0,
"selling_price": 0,
"description": "",
"enable": 1,
"inventory": {
"in_stock": 2,
"on_order": 0,
"available": 2
}
},
{
.............
},
"paging": {
"limit": 20,
"offset": 20,
"total": 40
}
}
Name | Description |
---|---|
products[] | Array of product object |
paging | Paging object |
Name | Description |
---|---|
paging.total | Total number of items |
paging.limit | Number of items per page |
paging.offset | Result set offset |
Name | Description | Type | Length |
---|---|---|---|
item_code | Product code | string | 20 |
sku | Product SKU | string | 60 |
number | Product number | string | 20 |
name | Product name | string | 100 |
description | Product description | string | 250 |
width | Product width | decimal | 10,2 |
height | Product height | decimal | 10,2 |
length | Product length | decimal | 10,2 |
weight | Product weight | decimal | 10,2 |
cost | Cost price | decimal | 8,2 |
selling_price | Selling price | decimal | 8,2 |
ean | EAN number | string | 13 |
enable | Product enable in OMS
| number | 1 |
inventory.in_stock | Quantity of item in stock | number | 11 |
inventory.on_order | Quantity of ordered item | number | 11 |
inventory.available | Quantity of available item | number | 11 |
https://oms.trustboxfulfillment.com/api/1.0/products/{id}
Name | Description | Type | Length |
---|---|---|---|
id Required |
Item Code or SKU (Please prefix SKU with the @ symbol). | string | 60 |
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.trustboxfulfillment.com/api/1.0/products/@624295_1467662"
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.trustboxfulfillment.com/api/1.0/products/00600001"
{
"item_code": "00600001",
"sku": "624295_1467662",
"ean": "",
"number": "TEST001",
"name": "TSG2721/รองเท้าแตะเปิดหน้ามีโบว์ฟ้าอมเทา/12",
"width": 10.00,
"height": 10.00,
"length": 10.00,
"weight": 400.00,
"cost": 6000.00,
"selling_price": 8900.00,
"description": "Product 1 Long",
"enable": "1",
"inventory": {
"in_stock": 10,
"on_order": 10,
"available": 0
}
}"
Name | Description | Type | Length |
---|---|---|---|
item_code | Product code | string | 20 |
sku | Product SKU | string | 60 |
number | Product number | string | 20 |
name | Product name | string | 100 |
created | Created date | date | - |
description | Product description | string | 250 |
width | Product width | decimal | 10,2 |
height | Product height | decimal | 10,2 |
length | Product length | decimal | 10,2 |
weight | Product weight | decimal | 10,2 |
cost | Cost price | decimal | 8,2 |
selling_price | Selling price | decimal | 8,2 |
ean | EAN number | string | 13 |
enable | Product enable in OMS
| number | 1 |
inventory.in_stock | Quantity of item in stock | number | 11 |
inventory.on_order | Quantity of ordered item | number | 11 |
inventory.available | Quantity of available item | number | 11 |
https://oms.trustboxfulfillment.com/api/1.0/products
Name | Description | Type | Length |
---|---|---|---|
sku Required | Must be a unique value | string | 60 |
number Required | Product number | string | 20 |
name Required | Product name | string | 100 |
description | Product description | string | 250 |
width | Product width | decimal | 10,2 |
height | Product height | decimal | 10,2 |
length | Product length | decimal | 10,2 |
weight | Product weight | decimal | 10,2 |
cost | Cost price | decimal | 8,2 |
selling_price | Selling price | decimal | 8,2 |
ean | EAN number | string | 13 |
curl -X POST -H "Authorization: Basic ZnJlZDpmcmVk="\ -H "Content-Type: application/json"\ -d
'{
"sku": "new_sku_0002",
"number": "new0001",
"name": "กล้องมือโปร",
"width": "",
"height": "",
"length": "",
"weight": "",
"cost": 10030.00,
"selling_price": 15990.00,
"description": "",
"ean":""
}' "https://oms.trustboxfulfillment.com/api/1.0/products"
{
"item_code": "00600039",
"sku": "new_sku_0002",
"created": "2016-11-02 11:31:28"
}
https://oms.trustboxfulfillment.com/api/1.0/orders
Name | Description | Type | Length |
---|---|---|---|
created | Date of creation format YYYY-mm-dd example 2016-12-01 | date | - |
status | Order status (default is any)
|
string | 30 |
limit | Number of items per page (max 100) | ||
offset | Result set offset |
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.trustboxfulfillment.com/api/1.0/orders"
{
"orders": [
{
"external_id": null,
"order_code": "2203-027-00673",
"order_number": "JD63640074",
"comment": null,
"special_order": null,
"representative": "Baby Shop",
"cod_amount": "294.00",
"insert_qty": 0,
"wrap": 0,
"shipping": "JDC",
"tracking_no": "88884440074",
"package": "BOX-2A",
"weight": " 430",
"status": "shipped",
"shipping_status": "pending",
"created": "2022-03-10 03:08:04",
"updated": "2022-03-10 14:24:52",
"customer": {
"name": "คุณแพ็คถูก แพ็คดี",
"address": "100 ต.มะเขือแจ้ อ.เมือง จ.ลำพูน มะเขือแจ้ เมืองลำพูน ลำพูน",
"district": "-",
"province": "ลำพูน",
"postal_code": "51000",
"mobile_no": "081998999",
"phone_no": null,
"email": null
},
"order_items": [
{
"item_number": "WEB-9999",
"item_sku": "WEB-9999",
"item_code": "02700154",
"item_name": "ถ้วยซุปเก็บอุณหภูมิ",
"item_qty": 1
}
],
"order_history": [
{
"date_time": "10/03/2565 03:08",
"location": "The Baby",
"status": "สร้างออเดอร์ / Order Created",
"remark": "2203-027-00673",
"timestamp": 1646856485
},
{
"date_time": "10/03/2565 09:12",
"location": "SKC WH1 (Warehouse)",
"status": "เข้าสู่กระบวนการ / Order Processed",
"remark": "",
"timestamp": 1646878377
},
{
"date_time": "10/03/2565 10:03",
"location": "SKC WH1 (Warehouse)",
"status": "หยิบออเดอร์ / Order Picked",
"remark": "",
"timestamp": 1646881412
},
{
"date_time": "10/03/2565 10:04",
"location": "SKC WH1 (Warehouse)",
"status": "แพ็คออเดอร์ / Order Packed",
"remark": "",
"timestamp": 1646881458
},
{
"date_time": "10/03/2565 14:24",
"location": "SKC WH1 (Warehouse)",
"status": "จัดส่งโดย / Shipped via JDC",
"remark": "888863640074",
"timestamp": 1646897092
}
],
"billing": {
"no_of_item_1": 1,
"no_of_item_2": 0,
"no_of_item_3": 0,
"picking_fee": 1,
"packing_fee": 6,
"charge_bubble_wrap": 0,
"charge_insert_item": 0,
"shipping_fee": 0,
"cod_fee": 0,
"bulky_fee": 0,
"fragile_fee": 0,
"total_fee": 7
}
},
{
"external_id": null,
"order_code": "2203-027-00674",
"order_number": "JD63638893",
"comment": null,
"special_order": null,
"representative": "Baby Shop",
"cod_amount": "0.00",
"insert_qty": 0,
"wrap": 0,
"shipping": "JDC",
"tracking_no": "888855538893",
"package": " BOX-SP01",
"weight": " 11150",
"status": "shipped",
"shipping_status": "pending",
"created": "2022-03-10 03:08:06",
"updated": "2022-03-10 14:24:52",
"customer": {
"name": "คุณกล่องสวย",
"address": "112 (หมู่บ้านอิ่มอัมพร2, ซ.15E) ซ.ราชพฤกษ์9, บางเชือกหนัง ตลิ่งชัน กรุงเทพมหานคร",
"district": "-",
"province": "กรุงเทพมหานคร",
"postal_code": "10170",
"mobile_no": "819229992",
"phone_no": null,
"email": null
},
"order_items": [
{
"item_number": "WEB-8888",
"item_sku": "WEB-8888",
"item_code": "02700018",
"item_name": "กล่องรองเท้า",
"item_qty": 4
}
],
"order_history": [
{
"date_time": "10/03/2565 03:08",
"location": "The Baby",
"status": "สร้างออเดอร์ / Order Created",
"remark": "2203-027-00674",
"timestamp": 1646856487
},
{
"date_time": "10/03/2565 09:12",
"location": "SKC WH1 (Warehouse)",
"status": "เข้าสู่กระบวนการ / Order Processed",
"remark": "",
"timestamp": 1646878377
},
{
"date_time": "10/03/2565 11:07",
"location": "SKC WH1 (Warehouse)",
"status": "หยิบออเดอร์ / Order Picked",
"remark": "",
"timestamp": 1646885227
},
{
"date_time": "10/03/2565 11:08",
"location": "SKC WH1 (Warehouse)",
"status": "แพ็คออเดอร์ / Order Packed",
"remark": "",
"timestamp": 1646885314
},
{
"date_time": "10/03/2565 14:24",
"location": "SKC WH1 (Warehouse)",
"status": "จัดส่งโดย / Shipped via JDC",
"remark": "8888636344893",
"timestamp": 1646897092
}
],
"billing": {
"no_of_item_1": 1,
"no_of_item_2": 3,
"no_of_item_3": 0,
"picking_fee": 4,
"packing_fee": 0,
"charge_bubble_wrap": 0,
"charge_insert_item": 0,
"shipping_fee": 0,
"cod_fee": 0,
"bulky_fee": 0,
"fragile_fee": 0,
"total_fee": 4
}
},
{
...
}
],
"paging": {
"limit": 100,
"offset": 0,
"total": 44
}
}
Name | Description |
---|---|
orders[] | Array of order object |
paging | Paging object |
Name | Description |
---|---|
paging.total | Total number of items |
paging.limit | Number of items per page |
paging.offset | Result set offset |
Name | Description | Type | Length |
---|---|---|---|
external_id | External ID is a unique key that allows you to link Trustbox order with the Order ID from your system. | string | 50 |
order_number | Order number | string | 20 |
comment | Order comment. | string | 50 |
special_order | Special requirement to this order. | string | 50 |
representative | Your representative | string | 50 |
cod_amount | COD amount | decimal | 7,2 |
insert_qty | Insert-item quantity | number | 2 |
wrap | Wrap is 1. No wrap is 0. | number | 1 |
shipping |
The shipping method code.
|
string | 3 |
tracking_no | Tracking No. | string | 20 |
package | Order package | string | 6 |
created | Created Date/Time | datetime | - |
updated | Updated Date/Time | datetime | - |
status | Order Status
|
string | 30 |
shipping_status | Order Status
|
string | 30 |
customer | Customer object | ||
order_items[] | Array of item(s) in order | ||
order_history[] | Array of history item | ||
billing | Billing detail |
Name | Description | Type | Length |
---|---|---|---|
name | Customer full name | string | 200 |
address | Customer address | string | 255 |
district | District name | string | 50 |
province | Province name | string | 50 |
postal_code | Postal Code | string | 20 |
mobile_no | Mobile number | string | 50 |
phone_no | Phone number | string | 20 |
email | string | 180 |
Name | Description | Type | Length |
---|---|---|---|
item_sku | Item SKU | string | 60 |
item_code | Item code | string | 60 |
item_name | Item name | string | 100 |
item_qty | Item quantity | number | 11 |
Name | Description | Type | Length |
---|---|---|---|
date_time | Display date time (fixed format) | number | 30 |
location | Location | string | 180 |
remark | Remark | string | 180 |
timestmap | Unix timestamp | timestamp | - |
Name | Description | Type | Length |
---|---|---|---|
no_of_item_1 | No. of 1st item | number | - |
no_of_item_2 | No. of item 2-10 | number | - |
no_of_item_3 | No. of item 11+ | number | - |
picking_fee | Picking Fee | decimal | - |
packing_fee | Packing Fee | decimal | - |
charge_bubble_wrap | Bubble wrap charge | number | 1 |
charge_insert_time | Insert item charge | timestamp | - |
shipping_fee | Shipping Fee | decimal | - |
cod_fee | COD Fee | decimal | - |
total_fee | Total Fee | decimal | - |
https://oms.trustboxfulfillment.com/api/1.0/orders/{id}
Name | Description | Type | Length |
---|---|---|---|
id Required | Trustbox order code or External ID (Please prefix External ID with the @ symbol). | string | 50 |
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.trustboxfulfillment.com/api/1.0/orders/@00100001"
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.trustboxfulfillment.com/api/1.0/orders/1610-006-00004"
{
"external_id": "111016-00004",
"order_code": "1610-006-00004",
"order_number": "SH000004",
"comment": "ใส่ถงใสด้วย",
"special_order" : "คำสั่งพิเศษ",
"representative":"Agent 01",
"cod_amount": "258.50",
"insert_qty": "0",
"wrap": 1,
"shipping": "EMS",
"tracking_no": "ABCD12367890",
"package": "BOX-C",
"package_width": 20,
"package_length": 30,
"package_height": 11,
"weight" : 200,
"status": "pending",
"shipping_status": "pending",
"created": "2016-10-18 15:02:51",
"updated": "2016-10-18 15:02:51",
"customer": {
"name": "นายรัก การเรียนรู้",
"address": "0000/00 เทิคราชัน สีกัน ดอนเมือง",
"district": "ดอนเมือง",
"province": "กรุงเทพ",
"postal_code": "10210",
"mobile_no": "",
"phone_no" : "",
"email": ""
},
"order_items": [
{
"item_number": "EU004",
"item_sku": "10755251_3773070",
"item_code": "00600012",
"item_name": "EU004",
"item_qty": "1"
}
],
"order_history": [
{
"date_time": "18/10/2559 15:02",
"location": "Demo Merchant",
"status": "สร้างออเดอร์ / Order Created",
"remark": "1706-044-00010",
"timestamp": 1497927458
},
{
"date_time": "18/10/2559 15:10",
"location": "SKC WH1 (Warehouse)",
"status": "เข้าสู่กระบวนการ / Order Processed",
"remark": "",
"timestamp": 1497927610
},
{
"date_time": "18/10/2559 15:11",
"location": "SKC WH1 (Warehouse)",
"status": "หยิบออเดอร์ / Order Picked",
"remark": "",
"timestamp": 1497927729
},
{
"date_time": "18/10/2559 15:13",
"location": "SKC WH1 (Warehouse)",
"status": "แพ็คออเดอร์ / Order Packed",
"remark": "",
"timestamp": 1497928015
},
{
"date_time": "18/10/2559 15:30",
"location": "SKC WH1 (Warehouse)",
"status": "จัดส่งโดย / Shipped via KND",
"remark": "CSKC200004986",
"timestamp": 1497942715
},
{
"datetime": "18/10/2559 16:00",
"location": "",
"status_title": "พัสดุถึงศูนย์คัดแยกสินค้า",
"remark": "",
"status_code": "102"
},
{
"datetime": "18/10/2559 16:09",
"location": "Bangkok",
"status_title": "เคอรี่เข้ารับพัสดุแล้ว",
"remark": "",
"status_code": "010"
},
{
"datetime": "19/10/2559 07:27",
"location": "Bangkok",
"status_title": "พัสดุถึงสาขาปลายทาง",
"remark": "",
"status_code": "103"
},
{
"datetime": "19/10/2559 07:32",
"location": "Bangkok",
"status_title": "พัสดุรอนำส่ง",
"remark": "",
"status_code": "045"
},
{
"datetime": "19/10/2559 10:19",
"location": "Bangkok",
"status_title": "ปลายทางได้รับเรียบร้อยแล้ว",
"remark": "ชื่อผู้รับ สัณหณัฐ",
"status_code": "POD"
}
],
"billing": {
"no_of_item_1": 1,
"no_of_item_2": 0,
"no_of_item_3": 0,
"picking_fee": 9,
"packing_fee": 5,
"charge_bubble_wrap": 0,
"charge_insert_item": 0,
"shipping_fee": 42,
"cod_fee": 0,
"total_fee": 56
}
}
Name | Description | Type | Length |
---|---|---|---|
external_id | External ID is a unique key that allows you to link Trustbox order with the Order ID from your system. | string | 50 |
order_number | Order number | string | 20 |
comment | Order comment. | string | 50 |
special_order | Special requirement to this order. | string | 50 |
representative | Your representative | string | 50 |
cod_amount | COD amount | decimal | 7,2 |
insert_qty | Insert-item quantity | number | 2 |
wrap | Wrap is 1. No wrap is 0. | number | 1 |
shipping |
The shipping method code.
|
string | 3 |
tracking_no | Tracking No. | string | 20 |
package | Order package | string | 6 |
package_width | Order package width (cm.) | number | 4 |
package_length | Order package length (cm.) | number | 4 |
package_height | Order package height (cm.) | number | 4 |
weight | Order weight (g.) | string | 20 |
created | Created Date/Time | datetime | - |
updated | Updated Date/Time | datetime | - |
status | Order Status
|
string | 30 |
shipping_status | Order Status
|
string | 30 |
customer | Customer object | ||
order_items[] | Array of item(s) in order | ||
order_history[] | Array of history item | ||
billing | Billing object |
Name | Description | Type | Length |
---|---|---|---|
name | Customer full name | string | 200 |
address | Customer address | string | 255 |
district | District name | string | 50 |
province | Province name | string | 50 |
postal_code | Postal Code | string | 20 |
mobile_no | Mobile number | string | 50 |
phone_no | Phone number | string | 20 |
email | string | 180 |
Name | Description | Type | Length |
---|---|---|---|
item_sku | Item SKU | string | 60 |
item_code | Item code | string | 60 |
item_name | Item name | string | 100 |
item_qty | Item quantity | number | 11 |
Name | Description | Type | Length |
---|---|---|---|
date_time | Display date time (fixed format) | number | 30 |
location | Location | string | 180 |
remark | Remark | string | 180 |
timestmap | Unix timestamp | timestamp | - |
Name | Description | Type | Length |
---|---|---|---|
no_of_item_1 | No. of 1st item | number | - |
no_of_item_2 | No. of item 2-10 | number | - |
no_of_item_3 | No. of item 11+ | number | - |
picking_fee | Picking Fee | decimal | - |
packing_fee | Packing Fee | decimal | - |
charge_bubble_wrap | Bubble wrap charge | number | 1 |
charge_insert_time | Insert item charge | timestamp | - |
shipping_fee | Shipping Fee | decimal | - |
cod_fee | COD Fee | decimal | - |
total_fee | Total Fee | decimal | - |
https://oms.trustboxfulfillment.com/api/1.0/orders/{id}
Name | Description | Type | Length | |
---|---|---|---|---|
id Required | Trustbox order code or External ID (Please prefix External ID with the @ symbol). | string | 50 |
Name | Description | Type | Length | |
---|---|---|---|---|
order_number | Your order number on your system. | string | 20 | |
comment | Order comment. | string | 50 | |
special_order | Special requirement to this order. | string | 50 | |
representative | Your representative | string | 50 | |
cod_amount | COD amount | decimal | 7,2 | |
wrap | If you need wrap the package, set it to 1. Default is 0 (no wrap) | number | 1 | |
shipping Required |
The shipping method code.
|
string | 3 | |
customer Required | Customer detail | |||
name Required | Customer full name | string | 200 | |
address Required | Customer address | string | 255 | |
district | District name | string | 50 | |
province Required | Province name | string | 50 | |
postal_code Required | Postal Code | string | 20 | |
mobile_no | Mobile number | string | 50 | |
phone_no | Phone number | string | 20 | |
email | string | 180 | ||
order_items[] Required | Array of item(s) in order You can use item_code or item_sku in the array but cannot both be blank |
|||
item_sku | Item SKU | string | 60 | |
item_code | Item code | string | 60 | |
item_qty | Item quantity | number | 11 |
curl -X PUT -H "Authorization: Basic ZnJlZDpmcmVk="\
-H "Content-Type: application/json"\ -d '{
"order_number":"SH000004",
"comment":"ใส่ถงใสด้วย",
"special_order" : "คำสั่งพิเศษ",
"representative":"Agent 01",
"cod_amount":258.50,
"wrap":1,
"shipping":"EMS",
"customer":{
"name": "นายรัก การเรียนรู้",
"address": "0000/00 เทิคราชัน สีกัน ดอนเมือง",
"district":"ดอนเมือง",
"province":"กรุงเทพ",
"postal_code":"10210",
"mobile_no":"",
"phone_no":"",
"email":""
},
"order_items":[
{"item_sku":"10755251_3773070","item_code":"","item_qty":1}
]
}' "https://oms.trustboxfulfill.com/api/1.0/order/@111016-00004"
curl -X PUT -H "Authorization: Basic ZnJlZDpmcmVk="\
-H "Content-Type: application/json"\ -d '{
"order_number":"SH000004",
"comment":"ใส่ถงใสด้วย",
"special_order" : "คำสั่งพิเศษ",
"representative":"Agent 01",
"cod_amount":258.50,
"wrap":1,
"shipping":"EMS",
"customer":{
"name": "นายรัก การเรียนรู้",
"address": "0000/00 เทิคราชัน สีกัน ดอนเมือง",
"district":"ดอนเมือง",
"province":"กรุงเทพ",
"postal_code":"10210",
"mobile_no":"",
"phone_no":"",
"email":""
},
"order_items":[
{"item_sku":"10755251_3773070","item_code":"","item_qty":1}
]
}' "https://oms.Trustboxfulfillment.com/api/1.0/order/1610-006-00004"
{
"code": 200,
"external_id": "111016-00004",
"order_code": "1610-006-00004",
"updated": "2016-10-18 15:02:51"
}
https://oms.trustboxfulfillment.com/api/1.0/orders/{id}/cancel
Name | Description | Type | Length |
---|---|---|---|
id Required | Trustbox order code or External ID (Please prefix External ID with the @ symbol). | string | 50 |
curl -X PUT -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.trustboxfulfillment.com/api/1.0/order/@00100001/cancel"
curl -X PUT -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.Trustboxfulfillment.com/api/1.0/order/1610-006-00004/cancel"
{
"code": "200",
}
https://oms.trustboxfulfillment.com/api/1.0/orders
Name | Description | Type | Length | |
---|---|---|---|---|
external_id Required | External ID is a unique key that allows you to link Trustbox order with the Order ID from your system without the need to store additional data on your side. | string | 50 | |
order_number | Your order number on your system. | string | 20 | |
comment | Order comment. | string | 50 | |
special_order | Special requirement to this order. | string | 50 | |
representative | Your representative | string | 50 | |
cod_amount | COD amount (allowed on KND, K2D, KSD shipping) | decimal | 7,2 | |
wrap | If you need wrap the package, set it to 1. Default is 0 (no wrap) | number | 1 | |
shipping Required |
The shipping method code.
|
string | 3 | |
customer Required | Customer detail | |||
name Required | Customer full name | string | 200 | |
address Required | Customer address | string | 255 | |
district Required | District name | string | 50 | |
province Required | Province name | string | 50 | |
postal_code Required | Postcal Code | string | 20 | |
mobile_no Required | Mobile number | string | 50 | |
phone_no | Phone number | string | 20 | |
email | string | 180 | ||
order_items[] Required | Array of item(s) in order You can use [item_code, item_sku, lazada_sku, shopee_sku] in the array but all cannot be blank |
|||
item_sku | Item SKU | string | 60 | |
item_code | Item code | string | 60 | |
lazada_sku | Lazada SKU | string | 60 | |
shopee_sku | Shopee SKU | string | 60 | |
item_qty | Item quantity | number | 11 |
curl -X POST -H "Authorization: Basic ZnJlZDpmcmVk="\
-H "Content-Type: application/json"\ -d '{
"external_id":"111016-00004",
"order_number":"SH000004",
"comment":"ใส่ถงใสด้วย",
"special_order" : "คำสั่งพิเศษ",
"representative":"Agent 01",
"cod_amount":258.50,
"wrap":1,
"shipping":"EMS",
"customer":{
"name": "นายรัก การเรียนรู้",
"address": "0000/00 เทิคราชัน สีกัน ดอนเมือง",
"district":"ดอนเมือง",
"province":"กรุงเทพ",
"postal_code":"10210",
"mobile_no":"",
"phone_no":"",
"email":""
},
"order_items":[
{"item_sku":"10755251_3773070","item_code":"", "lazada_sku":"", "shopee_sku":"", "item_qty":1}
]
}' "https://oms.trustboxfulfillment.com/api/1.0/order"
{
"code": 200,
"external_id": "111016-00004",
"order_code": "1610-006-00004",
"created": "2016-10-18 15:02:51"
}
https://oms.trustboxfulfillment.com/api/1.0/advices/{id}
Name | Description | Type | Length |
---|---|---|---|
id | Trustboxfulfillment advice ID | number | 11 |
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.trustboxfulfillment.com/api/1.0/advices/103"
{
"external_id": "cmz_adv_00001",
"id": "103",
"comment": "ของมารอบบ่าย",
"status": "Pending",
"created": "2016-10-04 13:11:16",
"updated": "2016-10-05 13:52:20",
"expect_transfer_date": "2016-10-10",
"total_qty": "25",
"items": [
{
"item_code": "00600001",
"item_number": "TEST001",
"item_sku": "624295_1467662",
"item_name": "TSG2721/รองเท้าแตะเปิดหน้ามีโบว์ฟ้าอมเทา/12",
"item_qty": "25",
"received_qty": "0",
"putaway_status": "Pending",
"comment": ""
}
]
}
Name | Description | Type | Length | |
---|---|---|---|---|
external_id | External ID is a unique key that allows you to link Trustbox advice with the Advice ID from your system. | string | 60 | |
id | Trustbox advice ID | number | 11 | |
comment | Advice comment | string | 250 | |
created | Created date | datetime | - | |
updated | Updated date | datetime | - | |
expect_transfer_date | Expect transfer date | date | - | |
status |
Advice status
|
string | 30 | |
total_qty | Total item quantity | number | 11 | |
items[] Required | Array of item(s) in advice | |||
item_sku | Item SKU | string | 60 | |
item_code | Item code | string | 20 | |
item_number | Item number | string | 20 | |
item_name | Item name | string | 20 | |
item_qty | Item quantity | number | 11 | |
received_qty | Received quantity | number | 11 | |
putaway_status | Putaway status | number | 1 | |
comment | comment | string | 50 |
https://oms.trustboxfulfillment.com/api/1.0/advices/{id}
Name | Description | Type | Length | |
---|---|---|---|---|
id Required | Advice ID or External ID (Please prefix External ID with the @ symbol). | string | 60 |
Name | Description | Type | Length | |
---|---|---|---|---|
expect_date | Expect date | date | - | |
comment | Advice comment. | string | 250 | |
items[] Required | Array of item(s) in advice You can use item_code or item_sku in the array but cannot both be blank |
|||
item_sku | Item SKU | string | 60 | |
item_code | Item code | string | 20 | |
item_qty | Item quantity | number | 11 | |
comment | Item comment | string | 50 |
curl -X PUT -H "Authorization: Basic ZnJlZDpmcmVk="\
-H "Content-Type: application/json"\ -d '{
"expect_date":"2016-11-03",
"commment" :"",
"items":[
{"item_code":"00600001","item_qty":99,"comment":""},
{"item_sku":"5769089_3852259","item_qty":50,"comment":""}
]
}' "https://oms.trustboxfulfillment.com/api/1.0/advices/108"
{
"id": "108",
"external_id": "av001",
"updated": "2016-11-01 15:34:03"
}
https://oms.trustboxfulfillment.com/api/1.0/advices/{id}/cancel
Name | Description | Type | Length |
---|---|---|---|
id Required | Advice ID or External ID (Please prefix External ID with the @ symbol). | string | 60 |
curl -X PUT -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.trustboxfulfillment.com/api/1.0/advices/106/cancel"
{
"code": "200",
}
https://oms.trustboxfulfillment.com/api/1.0/advices
Name | Description | Type | Length | |
---|---|---|---|---|
external_id Required | External ID is a unique key that allows you to link Trustbox advice with the advice ID from your system without the need to store additional data on your side. | string | 60 | |
expect_date | Expect date | date | - | |
comment | Advice comment. | string | 250 | |
items[] Required | Array of item(s) in advice You can use item_code or item_sku in the array but cannot both be blank |
|||
item_sku | Item SKU | string | 60 | |
item_code | Item code | string | 20 | |
item_qty | Item quantity | number | 11 | |
comment | Item comment | string | 50 |
curl -X POST -H "Authorization: Basic ZnJlZDpmcmVk="\
-H "Content-Type: application/json"\ -d '{
"external_id":"test01",
"expect_date":"2016-11-02",
"commment" :"",
"items":[
{"item_code":"00600001","item_qty":99,"comment":""},
{"item_sku":"5769089_3852259","item_qty":50,"comment":""}
]
}' "https://oms.trustboxfulfillment.com/api/1.0/advice"
{
"id": 108,
}