话费充值接口
接口说明
给指定手机号充值话费
接口地址
https://api.paynicorn.com/trade/topup/api/topup
请求方式:post
请求参数
参数名 | 参数类型 | 填写要求 | 描述 |
---|---|---|---|
appKey | string | M | 商户应用Appkey |
transId | string | M | 商户交易号 |
countryCode | string | M | 国家码 |
bizType | string | M | 业务类型 说明:固定是m_topup 话费 |
operatorCode | string | M | 运营商编码(根据手机号查询运营商接口获取) |
benefitNo | string | M | 要充值的号码(不需要国家码) |
amount | BigDecimal | M | 充值金额(支持的金额以paynicorn 运营提供为准) |
memo | string | O | 备注 |
currency | string | O | 充值币种(默认本币) |
响应参数
参数名 | 参数类型 | 填写要求 | 备注 |
---|---|---|---|
code | int | M | 请求处理的标识 |
msg | string | M | 请求处理信息 |
result | JsonObj | O | 返回结果 |
result对象参数
参数名 | 参数类型 | 填写要求 | 描述 |
---|---|---|---|
transId | string | M | 交易ID |
statusCode | string | M | 交易状态 |
description | string | M | 描述 |
示例
Request
{
"appKey": "p3k0Y312LzX6Dv87lVa1",
"transId": "123456789",
"countryCode": "NG",
"bizType": "m_topup",
"operatorCode": "9mobile",
"benefitNo": "08184123954",
"amount": 100,
"memo": "话费充值",
"currency": "USD"
}
Response
{
"code": 1200,
"msg": "success",
"result": {
"transId": "123456789",
"statusCode": "0",
"description": "transaction in processing"
}
}