充值系统接口(新版)

用于所有平台充值用


话费充值

[TOC]

简要描述
  • 话费充值
请求URL
  • https://topup-api-test.bawanli.com/v1/topup
请求方式
  • POST
参数
参数名 必选 类型 说明
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即可)
备注

页面列表

ITEM_HTML