5.9批量发通卡

优质
小牛编辑
138浏览
2023-12-01

请求参数说明

参数描述必填示例值类型最大长度
action接口参数组object
└action需要调用的接口名称mb_newcardstring
getGET参数组,本组参数需要参与签名object
└type发卡模式(不填默认为2,2为发通卡模式 15为储值卡模式)15number
└balance储值余额100number
└count发卡数量2number

请求示例

{
    "action": {
        "action": "mb_newcard"
    },
    "get": {
        "type": "15",
        "balance": "100",
        "count": "2",
        "op": "操作员"
    }
}

响应参数说明

参数描述必填示例值类型最大长度
status返回状态。接口成功时为1,出错为01number
info错误时会返回相应的错误信息发卡成功string
type15number
listlist
└id卡id8494359number
└cardno84943593number
└mbno会员卡号84943593number
└pwd卡密码72471939number
└extid会员卡内编码string
└balance储值余额100number
msid24667number

响应示例

{
  "status": "1",
  "info": "发卡成功",
  "type": "15",
  "list": [
    {
      "id": 8494359,
      "cardno": "84943593",
      "mbno": "84943593",
      "pwd": "72471939",
      "extid": "",
      "balance": 100
    },
    {
      "id": 8494360,
      "cardno": "84943602",
      "mbno": "84943602",
      "pwd": "92752938",
      "extid": "",
      "balance": 100
    }
  ],
  "server_timestamp": 1566979040,
  "server_time": "2019-08-28 15:57:20",
  "server_name": "api-98.hz",
  "msid": "24667"
}