流量充值接口
接口说明
给指定手机充值流量
接口地址
post https://api.paynicorn.com/trade/topup/api/data/topup
请求参数
参数名 | 参数类型 | 填写说明 | 描述 |
---|---|---|---|
appKey | string | M | 商户应用Appkey |
transId | string | M | 商户交易号 |
benefitNo | string | M | 要充值的号码 |
goodsId | string | M | 产品ID(根据流量产品查询接口返回或者联系运营获取支持列表) |
memo | string | O | 备注 |
响应参数
参数名 | 参数类型 | 填写要求 | 描述 |
---|---|---|---|
code | int | M | 请求处理的标识 |
msg | string | M | 请求处理信息 |
result | JsonObj | O | 返回结果 |
result对象参数
参数名 | 参数类型 | 填写要求 | 描述 |
---|---|---|---|
transId | string | M | 交易ID |
orderId | string | M | 系统订单号 |
statusCode | string | M | 交易状态 |
description | string | M | 描述 |
示例
Request
{
"appKey": "p3k0Y312LzX6Dv87lVa1",
"transId": "123456789",
"benefitNo": "08184123954",
"goodsId": "NG72347153587",
"memo": "流量充值"
}
Response
{
"code": 1200,
"msg": "success",
"result": {
"transId": "123456789",
"orderId": "1057312678641614851",
"statusCode": "0",
"description": "transaction in processing"
}
}