接口文档 / 营销接口
查询营销卡项详情
响应参数
| 名称 | 说明 | 类型 |
|---|---|---|
| Body 参数 | ||
data可选 | object | |
id可选 | string | |
name可选 | string | |
status可选 | integer | |
isNeedCardFee可选 | integer | |
cardFee可选 | number | |
validityType可选 | integer | |
validityPeriod可选 | integer | |
validityPeriodUnit可选 | integer | |
validityEndDate可选 | string | |
perPatientObtainLimit可选 | integer | |
perPatientObtainMax可选 | integer | |
rechargeRights可选 | object | |
discountRights可选 | object | |
presentRights可选 | object | |
error可选可为空 | object | |
响应示例
{
"data": {
"id": 1809264834875924500,
"name": "测试卡",
"status": 0,
"isNeedCardFee": 1,
"cardFee": 100,
"validityType": 0,
"validityPeriod": 7,
"validityPeriodUnit": 1,
"validityEndDate": "2026-01-01T00:00:00Z",
"perPatientObtainLimit": 1,
"perPatientObtainMax": 2,
"rechargeRights": {
"isOpen": 1,
"detail": {
"rechargeRules": [
{
"pay": 100,
"present": 1
}
],
"balanceUsingScope": 0,
"goodsPayWithBalance": [
{
"discountType": 1,
"discount": 0,
"givingLimitType": 1,
"givingCount": 3,
"name": "string",
"type": 0,
"productId": "string",
"exceptItems": [
null
]
}
]
}
},
"discountRights": {
"isOpen": 1,
"detail": {
"goodsList": [
{
"discountType": 1,
"discount": 0,
"givingLimitType": 1,
"givingCount": 3,
"name": "string",
"type": 0,
"productId": "string",
"exceptItems": [
null
]
}
]
}
},
"presentRights": {
"isOpen": 1,
"detail": {
"singlePresentList": [
{
"discountType": 1,
"discount": 0,
"givingLimitType": 1,
"givingCount": 3,
"name": "string",
"type": 0,
"productId": "string",
"exceptItems": [
null
]
}
],
"packagePresentList": [
{
"itemTotalCount": 0,
"itemChoiceCount": 0,
"goodsList": [
{
"discountType": null,
"discount": null,
"givingLimitType": null,
"givingCount": null,
"name": null,
"type": null,
"productId": null,
"exceptItems": null
}
]
}
]
}
}
},
"error": null
}业务失败包装示意
{
"data": null,
"error": {
"code": 11003,
"message": "不支持的授权类型{grantType}"
}
}