话费下单接口

话费下单接口,请求方式:POST;请求的Content-Type,必须设置为:application/x-www-form-urlencoded

请求地址

请求地址:/api/order/phone

请求参数

参数名称
字段类型
是否必填
示例值
描述
customerId String 10001
客户ID(平台分配)
customerOrderNo String 20190409165922
客户订单号
goodsId String 100011
产品编号
account String 15669726393
充值账号
num Int 1
充值数量(整数)
buyerIp String 115.198.101.58
下单用户的ip地址
notifyURL String http://www.xxx.com/callback
通知回调URL
sign String 375d05b41775e1ddf2098504444af1e2
签名,详细算法见“开发指南 - 签名算法”

请求示例


  "customerId": "10001",
  "customerOrderNo": "20190409165922",
  "goodsId": "100011",
  "account": "475503798",
  "num": "1",
  "buyerIp": "115.198.101.58",
  "notifyURL": "http://www.xxx.com/callback",
  "sign": "8b2360303cd3e05ab5d5e71f0a4bbd6e",
 

响应参数

参数名称
字段类型
是否必填
示例值
描述
orderNo string 2019041000234267381
平台订单号
customerOrderNo string 20190409165922
客户订单号
account string 15669726393
充值账号
num int 1
充值数量
price string 49.95
商品单价
amount string 49.95
扣款金额
crateTime date 2019-04-10 00:23:42
订单创建时间

响应示例

{
    "code": 200,
    "message": "接口调用成功",
    "data": {
        "orderNo": "2019041000234267381",
        "customerOrderNo": "20190409165922",
        "account": "15669726393",
        "num": "1",
        "price": "49.95"
        "amount": "49.95",
        "crateTime": "2019-04-10 00:23:42"
    },
}