简要描述:

  • 创建订单

请求URL:

  • createOrder

请求参数:

此数据为业务数据,作为调用参数中data字段的内容。

订单信息表

参数名 是否必须 类型 说明
Amount numeric 必填,订单金额
Remark string 订单备注
Contact string 联系人
ContactTel string 联系人电话
SaleId int 销售员Id
ClientId string 购买者标识
Qty int 订票数量
UseDate datatime 日期
DeliveryWay int 1线下交收 2电邮通知 3手机短信通知 4邮递 5门店自提
DeliveryWayValue string 交付方式地址,门店地址,DeliveryWay=1或DeliveryWay=5的时候必填
CountryCode int 国家代码DeliveryWay=4的时候出现
ProvinceCode int 省代码DeliveryWay=4的时候出现
CityCode int 市代码DeliveryWay=4的时候出现
Address string 地址DeliveryWay=4的时候出现
ExpressChargeType string 地址DeliveryWay=4的时候出现
ExpressFee numeric 快递加收费DeliveryWay=4的时候出现,ExpressChargeType=’PreReceive’出现必填
ExpressRemark string 快递费备注DeliveryWay=4的时候出现
InOutWayCode string 业务收款方式
OrderBatchNo string 订单批次号
LoneProductOrderDetails List< LoneProductOrderDetail> 订单详情

LoneProductOrderDetail

参数名 是否必须 类型 说明
ProductNo string 必填,产品号
StockProductDetailId int 必填,库存明细Id
Qty int 必填,数量
UnitPrice numeric 销售价

入参示例:

  1. {
  2. apiKey : "test1",
  3. apisecret : "78FBB3D68B40A347644619ACF902CED3",
  4. currentTimeStamp : "20190929093256",
  5. sign : "A791DE5B72737F610BFD7CD6461D9FCD",
  6. uri : "http://localhost:39450/loneproduct/createOrder",
  7. data :
  8. {
  9. Amount: "220",
  10. Remark: "sadfsadf",
  11. Contact: "TESt",
  12. ContactTel: "124556",
  13. UseDate: "2020-03-17",
  14. StockProductId: "118",
  15. Qty: "1",
  16. LoneProductOrderDetailList: [{
  17. ProductNo: "LOP20-0056",
  18. StockProductDetailId: "281",
  19. Qty: "1",
  20. UnitPrice: "200"
  21. }
  22. , {
  23. ProductNo: "LOP20-0056",
  24. StockProductDetailId: "283",
  25. Qty: "1",
  26. UnitPrice: "20"
  27. }]
  28. }
  29. }

返回示例:

正确时返回:

  1. {
  2. Code : 0,
  3. Success : true,
  4. Message : "",
  5. Data :
  6. {
  7. Amount : 440,
  8. Tickets :
  9. [
  10. "ZS20200224140847711940010"
  11. ]
  12. }
  13. }

错误时返回:

  1. {
  2. "Code" : 100002,
  3. "Success" : false,
  4. "Message" : "应用认证错误",
  5. "Data" : ""
  6. }

返回参数说明:

参数名 是否必须 类型 说明
Success boolean 是否成功,成功返回true,失败返回false
Message String 错误信息,成功返回空
Data String 成本价,票号

备注:

-实休库存,客人会收到短信,订单通知设置短信通知,会收到短信