文档
测试

解除绑定用户卡Unbind user card

POST
/card/unbind

接口描述

应用场景Application scenarios 解除绑定用户 Unbind user

请求参数

application/x-www-form-urlencoded
参数名
类型
描述
必填
token
String
身份标识 Identification
必填
userId
Integer
用户Id,传入用户id时将会解绑用户下所有绑定的卡 User ID: All the bound cards under the user will be unbound when the user id is returned.
可选
phone
String
手机号(校验手机号卡号同时为某一用户时解绑),解绑单张卡 Phone Number When verifying that the mobile phone number and card number are unbound for a same user at the same time, unbind the single card
可选
cardNum
String
卡号(校验手机号卡号同时为某一用户时解绑),解绑单张卡 Card Number When verifying that the mobile phone number and card number are unbound for a same user at the same time, unbind the single card.
可选

响应参数

参数名
类型
描述
必填
data
object
数据字典
必填
success
boolean
请求成功与否标识 Identification for request success or no
必填

说明 / 示例

说明 eg1:userId不为空,cardNum为空,解绑用户名下所有卡 eg1: 'userld’ is not empty, ‘cardNum’ is empty, unbind all cards of the user . eg2:phone不为空,cardNum不为空,若此卡属于用户名下,则解绑此卡,否则提示卡号有误 eg2:‘Phone’ is not empty, ‘cardNum’ is not empty, If the card belongs to the eg3:userId不为空,cardNum不为空,若此卡属于用户名下,则解绑此卡,否则提示卡号有误 eg3: 'userld’ is not empty, ‘cardNum’ is not empty, If the card belongs to the user, should unbind the card, otherwise it will prompt that the card number is wrong eg4:提示数据有误 Reminder data is wrong 优先级:eg1 > eg2 > eg3,需要传userId解绑用户名下单张卡,请勿传phone字段 priority: eg1 > eg2 > eg3,need return ‘userld’ unbind user single card, do not return ‘phone’ field 返回示例 Return the example ``` { "data":"1", "success":true } ```