5.8线下发通卡

优质
小牛编辑
129浏览
2023-12-01
本协议用于线下发新卡,会员数据将与微信会员统一。

请求参数说明

参数描述必填示例值类型最大长度
action接口参数组object
└action需要调用的接口名称mb_newcardstring
getGET参数组,本组参数需要参与签名object
postPOST参数组object
└list发卡列表list
└└cardno线下卡号11351number
└└password卡密码123456number
└└extid会员卡内编码19number
└└balance储值金额100number
└└ext_info卡摘要测试string
└└subject摘要备注string
└└expirydate有效期20190725number
└└sex性别性别(0=女,1=男)number
└└birthday生日19900203number
└└name姓名雪碧string
└└phone手机号15606132502number
└└level会员等级1number
└└idnumber身份证号3205011000000number
└└type发卡模式2number
└└count发卡数量(type为15时,选择发卡数量。系统可随机生成对应数量卡号)10number

请求示例

{
  "action": {
    "action": "mb_newcard"
  },
  "get": {
    "op": "操作员"
  },
  "post": {
    "list": [
      {
        "cardno": "100101",
        "name": "西瓜",
        "phone": "18862302465",
        "level": 1,
        "sex": 1,
        "birthday": "19940103",
        "extid": "109",
        "password": "123456",
        "balance": 100.88,
        "points": 200,
        "subject": "备注",
        "expirydate": "20201225"
      }
    ]
  }
}

响应参数说明

参数描述必填示例值类型最大长度
status返回状态。接口成功时为1,出错为01number
info错误时会返回相应的错误信息发卡成功string
type发卡模式2number
list数组list
└id8481085number
└cardno15696132601number
└mbno15696132601number
└pwd123456number
└extid100000001number
└balancestring
msid接口调用门店24667number

响应示例

{
  "status": "1",
  "info": "发卡成功",
  "type": "2",
  "list": [
    {
      "id": 8481085,
      "cardno": "15696132601",
      "mbno": "15696132601",
      "pwd": "123456",
      "extid": "100000001",
      "balance": ""
    }
  ],
  "server_timestamp": 1566894518,
  "server_time": "2019-08-27 16:28:38",
  "server_name": "api-111.hz",
  "msid": "24667"
}

批量发通卡:POST提交多个会员数据到线上