卡券批量发放
POST
/fast-common-service/v1/0.0/api/coupon/grant/batch
卡券场景
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-vpjq75s2e4.kylin.shuyun.com/fast-common-service/v1/0.0/api/coupon/grant/batch' \
--header 'Authorization;' \
--header 'X-Caller-Service: ' \
--header 'X-Caller-sign: ' \
--header 'X-Caller-Timestamp: ' \
--header 'X-Caller-Sign: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"bizCode": "CTFCN",
"requestChannel": "WECHAT",
"requestSystem": "WECHAT_MALL",
"transactionId": "TX2024030490569",
"holders": [
"string"
],
"projectId": "string",
"grantNum": 1,
"grantShop": "string",
"grantReason": "string"
}'
响应示例响应示例
{
"success": true,
"code": "string",
"message": "string",
"data": [
{
"memberId": "string",
"id": "string",
"projectId": "string",
"code": "string",
"grantAt": "2019-08-24T14:15:22.123Z",
"state": "string"
}
]
}
请求参数
Header 参数
Authorization
string
必需
默认值:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJicmFuY2hfMzgxMCIsImF1ZCI6InNtYXJ0X3BvcnRhbF91YXQiLCJpc3MiOiJzc28iLCJpcF9hZGRyZXNzIjoiMTAuMjAwLjE4MC43NiIsImV4cCI6MTczOTc5ODIzMCwiYnJhbmNoIjoiMzgxMCIsImlhdCI6MTczOTc5MTAzMH0.jqwTnQ0ah3k94Yjpn7hw91QtmKwsvXhjyibZpXDrGifaBcvzPdz8MjCg66FUohyKTS4ciZILl6xXJ5a1pQ_iIg
X-Caller-Service
string
可选
默认值:
{{caller}}
X-Caller-sign
string
可选
默认值:
{{sign}}
X-Caller-Timestamp
string
可选
默认值:
{{currentTime}}
X-Caller-Sign
string
网关签名
默认值:
{{sign}}
Body 参数application/json