3.5末笔查询
POST
getLastOrder
接口描述
查询指定消费卡的最后一笔已支付的消费订单
请求参数
参数名
类型
描述
必填
token
String
登录TOKEN
必填
appid
String
商户appid
必填
card_no
String
会员卡号或动态会员码
必填
响应参数
参数名
类型
描述
必填
code
int
错误码,成功返回 200,失败返回其它
必填
message
String
错误描述
必填
order_id
Long
订单 ID
必填
total_amount
Double
订单金额
必填
sale_date
String
下单时间, 时间格式为 yyyy-MM-dd HH:mm:ss
必填
customer_sn
String
会员卡号
必填
customer_name
String
会员名
可选
customer_code
String
会员卡编号
可选
pay_status
int
支付状态:0未支付,1已支付,-2已退款
必填
trade_status
int
交易状态:0未付款,1已完成,-1已取消,-2已退款
必填
update_date
String
订单最后更新时间,时间格式为 yyyy-MM-dd HH:mm:ss
必填
payment
String
支付方式:BALANCE会员卡余额支付,CASH 现金支付,WEIXIN微信支付,ALIPAY 支付宝支付
必填