首頁
下載
付費版
企業專區
快速上手
必讀文章
進銷存上手指南
Guide
您可自由的使用下列API,與您的系統串接。(需具備程式開發能力)
API
訂單資料匯入
← 回上頁
訂單匯入EzTooL ( JSON )
Q:
使用限制:
1.限企業版使用
2.用戶需有程式技術背景,了解JSON格式
API網址:
http://rp.eztool.com.tw/CustGetPOST/InOrder.aspx
取得模式:
POST
程式範例下載(c#):
點我下載
A:
【傳入項目】
帳號密碼:使用變數傳入
訂單內容:使用物件傳入
{
"CustID": "用戶帳號",
"CustPW": "用戶密碼",
"JsonData": {
"Order": [
{
"OrderDate": "2019/04/26",
"Orderer": "江曉明",
"OrdererMobilePhone": "0977177277",
"OrdererPhone": "",
"Recipient": "江曉明",
"RecipientMobilePhone": "0977177277",
"RecipientPhone": "",
"ZIP": "211",
"RecipientAddress": "台北市大安區和平東路二段199號9樓",
"DocumentCreator": "A004 ",
"Deposit": 0.0000,
"Freight": 0.0000,
"discount": 0.0000,
"Remarks": "A1 測是用",
"LogisticsName": "",
"UniformNumbers": "",
"Invoice": "",
"PaymentMethodName": "",
"Email": "",
"ShipDate": "2019/05/03",
"ShipmentNumber": "",
"BaseCode": "10010",
"LogisticsNote1": "",
"LogisticsNote2": ""
}
],
"OrderDetails": [
{
"ItemEZID": "0002 ",
"ItemName": "",
"Qty": 1.0000,
"UnitPrice": 170.0000
},
{
"ItemEZID": "0005 ",
"ItemName": "",
"Qty": 1.0000,
"UnitPrice": 150.0000
},
{
"ItemEZID": "0008 ",
"ItemName": "",
"Qty": 1.0000,
"UnitPrice": 150.0000
}
]
}
}
【傳回項目】
Status: 0=成功,1=失敗
OrderEZID: 訂單編號
Message: 錯誤訊息
{
[
{
"Status": "0",
"OrderEZID": "201904260003",
"Message": ""
}
]
}
【欄位說明】
Order=訂單
OrderDate="2019/12/31" //訂購日期
Orderer="曾延明" //訂購人
OrdererMobilePhone="0952100326" //訂購人行動電話
OrdererPhone="0952100326" //訂購人電話
Recipient="曾延明" //收件人
RecipientMobilePhone="0952100326" //收件人行動電話
RecipientPhone="0952100326" //收件人電話
ZIP="733" //郵遞區號
RecipientAddress="台南市東山區仁愛街166號2樓" //收件地址
DocumentCreator="" //打單人員代碼or名稱皆可
Deposit="100" //訂金
Freight="200" //運費
discount="0" //折扣
Remarks="【API匯入測試】" //訂單備註
LogisticsName="7-ELEVEN取貨付款" //物流名稱
UniformNumbers="98765432" //統一編號
Invoice="測試公司" //發票抬頭
PaymentMethodName="應收帳款" //顧客付款方式名稱
Email="124@hotmail.com" //收件人Email
ShipDate="2020/01/31" //預計出貨日
ShipmentNumber="8655442288" //物流單號
BaseCode="10010" //據點代碼(EzTooL內設定多據點的代碼,單一據點請設10010)
LogisticsNote1="請速到貨" //物流備註1
LogisticsNote2="送至警衛室" //物流備註2
OrderDetails=訂單明細
ItemEZID="1059" //商品代號
ItemName="商品名稱" //商品名稱
Qty="1" //數量
UnitPrice= 520" //單價