查询门店营销规则
测试环境
测试环境
POST
/open/v1/crm/fetchRules
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://gldopenapi.keruyun.com/open/v1/crm/fetchRules?appKey=&shopIdenty=&brandId=&version=×tamp=&sign=' \
--header 'Content-Type: application/json' \
--data-raw ''
响应示例响应示例
{
"code": 1,
"result": [
{
"dishId": 1,
"rules": [
{
"dishId": 1,
"planId": 11,
"ruleId": 1,
"ruleName": "立减3元",
"type": 1,
"reduce": 3,
"periodStart": "07:00:00",
"periodEnd": "23:59:59",
"weekdays": "1111111",
"customerType": 1,
"updateTime": "2016-10-1818: 37: 00"
},
{
"dishId": 1,
"planId": 22,
"ruleId": 222,
"ruleName": "享受8.5折",
"type": 2,
"discount": 8.5,
"periodStart": "07:00:00",
"periodEnd": "23:59:59",
"weekdays": "1111111",
"customerType": 1,
"updateTime": "2016-10-1818: 37: 00"
}
]
},
{
"dishId": 2
}
]
}
请求参数
Query 参数
appKey
string
必需
默认值:
{{appKey}}
shopIdenty
string
必需
默认值:
{{shopIdenty}}
brandId
string
必需
默认值:
{{brandId}}
version
string
必需
默认值:
2.0
timestamp
string
必需
默认值:
{{timestamp}}
sign
string
必需
默认值:
{{sign}}
Body 参数application/json
返回响应
修改于 2021-12-16 06:36:25