单条消费记录
请求地址(POST)
字段 |
说明 |
InterfaceKey |
接口密钥 |
Signature |
字符串=(InterfaceKey+SignToken+TimeStamp+data),再将字符串中的字符按照升序排列,最终签名 = MD5(字符串),格式:32位MD5大写加密 |
TimeStamp |
发起请求的时间戳,查看标准TimeStamp |
请求说明
data={"OrderCode":"XF2017082900003","MasterAccount":"admin","CompCode":"ceshi"}
字段 |
是否必须 |
说明 |
OrderCode |
是 |
订单号 |
MasterAccount |
是 |
操作员账号,例admin |
CompCode |
是 |
企业代码 |
返回说明
成功时返回:
{"status":1,"msg":"00","total":1,"obj":null,"rows":[{"Id":"13370768359735296","OrderCode":"XF2017082900003","GoodsType":1,"BatchCode":"CN2017082900003","GoodsID":"13356651250139136","GoodsCode":"90061063","GoodsName":"洗面奶","PurchasePrice":0.0,"DiscountPrice":32.0,"StartTime":"","EndTime":"","PriceUnit":0,"PriceNum":0,"Number":2.0,"RefundableQty":2.0,"TotalMoney":64.0,"IsPoint":1,"PointPercent":0.0,"Point":6.4,"Profit":0.0,"CompID":1001,"ShopID":"13157138234785792","MasterID":"13157138235293706","Images":"http://images.jiujiuke.net/FileSys/SysIMG/goodPic.jpg"}],"rowData":null}
字段 |
说明 |
Id |
编号 |
OrderCode |
订单号 |
GoodsType |
产品类型 |
BatchCode |
批次号 |
PurchasePrice |
进货价 |
DiscountPrice |
折后价 |
StartTime |
计时产品开始时间 |
EndTime |
计时产品结束时间 |
PriceUnit |
计时计费单位 1、分钟 2、小时 3、天 |
PriceNum |
计时结算密度 |
Number |
购买数量 计时商品则记录时间(单位秒) |
RefundableQty |
可退数量 |
TotalMoney |
产品总费用 |
IsPoint |
产品是否积分 |
PointPercent |
积分比例 |
失败时返回:
{"status":0,"message":"99"}
字段 |
是否必须 |
说明 |
status |
是 |
状态(1,成功;其它,失败) |
message |
是 |
错误码(00,成功;其它,失败) |