[TOC]
简要描述
请求URL
https://topup-api-test.bawanli.com/v1/topup
请求方式
参数
参数名 |
必选 |
类型 |
说明 |
operation_code |
是 |
string |
电信商 马来西亚(如DG)、印度、俄罗斯、泥泊尔、孟加拉为operatorCode操作码 |
country_code |
是 |
string |
国家代码 |
msisdn |
是 |
string |
手机号 |
order_no |
是 |
string |
订单编号 |
amount |
是 |
string |
充值金额 |
platform |
是 |
string |
来源平台 代理 agent,app,公众号 shops |
callback_url |
否 |
string |
回调地址(泰国、菲律宾必传) |
msisdn_type |
否 |
string |
手机号类型(1 dito,其他值为非dito) ,马来西亚 付费类型(1后付费 0预付费) |
product_id |
否 |
int |
马来西亚和新加坡、迪拜必传 充值类型 1话费 8后付费 |
code |
是 |
int |
印度、俄罗斯、泥泊尔、孟加拉必传 充值代码 |
请求示例(加密前)
{
"country_code": "lw",
"operation_code": "ltc",
"order_no": "434343434343",
"msisdn": "000000",
"amount": "1000",
"package_code": "3434343"
}
返回参数说明(加密前)
{
"data": {
"msg": "成功",
"error": "00",
"data": {
"topupResult": {
"resultCode": "20",
"resultDesc": "Operation successfully.",
"trans_id": "167804614845042"
}
}
}
}
参数名 |
类型 |
说明 |
data |
array |
所有响应体 |
msg |
string |
相应消息 |
error |
string |
错误码 00 成功 1 充值中 2 充值失败 |
data |
array |
详细数据(注:每个电信商返回数据不一致,成功与否只判断error即可) |
备注