文档
测试

刷卡订单回调Swipe order callback

POST
第三方提供给技术人员配置

接口描述

刷卡订单回调,即设备刷卡后若开电成功,设备会创建刷卡订单,开放平台会通过回调的形式,把该刷卡订单回调通知开发者 Credit card order callback, that is, if the device is successfully powered on after the card is swiped, the device will create a credit card order, and the open platform will notify the developer of the credit card order callback in the form of callback注:回调地址路径可调用即行,例:http://test.lbbtech.com/cardCharge... 路径可自由设置 Note: The path of the callback address can be called, for example: http://test.lbbtech.com/cardCharge... The path can be set freely

请求参数

application/x-www-form-urlencoded
参数名
类型
描述
必填
orderNum
String
订单号 order number
必填
workTime
Integer
工作时间(分钟) Working hours
必填
inTime
Long
当前时间 Current time
必填
userId
Integer
用户id User id
必填
price
Double
消费金额(单位分) Consumption amount (unit points)
必填
balance
Double
余额 Balance 单位:元
必填
deviceId
String
设备id Device id
必填
portNum
Integer
插座号 Socekt No.
必填
status
Integer
订单状态 Order Status
必填
cardNum
String
卡号 card number
必填

响应参数

参数名
类型
描述
必填
data
object
数据字典
必填
success
boolean
请求成功与否标识 Identification for request success or no
必填

说明 / 示例

返回示例 Return the example { "success":true, "data": [ ], "error":null, "code":null }