• 开发者平台
  • >
  • 餐饮文档中心

会员充值接口收费

(下行接口)合作方给客如云会员充值

请求描述

HTTP请求方式:POST
HTTP请求头类型:Content-Type=application/json
URI:  /open/v1/crm/member/recharge

请求参数

1.业务参数

详情可查看【公共说明】中的公共参数模块

2.业务参数

参数名 类型 是否必填 参数描述
customerId Long 顾客id
cardType Integer 卡类型 1:虚拟账户 2:会员卡 3:匿名卡 4:权益卡
cardNum String 卡号,匿名卡\权益卡充值时必填 虚拟账户和会员卡不填
businessType Integer 业务类型 1:储值充值
amount Integer 充值金额:单位分
tpOrderId String 第三方订单号
remark String 备注

业务示例(JSON)

{
  "amount": 0,
  "businessType": 1,
  "cardNum": "string",
  "cardType": 1,
  "customerId": 0,
  "remark": "string",
  "tpOrderId": "string"
}

响应参数

参数名 类型 是否必填 参数描述
code Int 返回编码,详见错误码
message String 返回信息
messageUuid String 消息uuid
result MemberRechargeResultVO 返回响应数据,json对象或数组,可空

MemberRechargeResultVO

参数名 类型 是否必填 参数描述
balance Integer 余额

响应示例(JSON)

{
  "code": 0,
  "message": "string",
  "messageUuid": "string",
  "result": {
    "balance": "string"
  }
}

目录