List Promotion Codes by Coupon
curl --request GET \
--url https://uat-api.clinkbill.com/api/promotion-code/coupon/{couponId} \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>'HttpResponse<String> response = Unirest.get("https://uat-api.clinkbill.com/api/promotion-code/coupon/{couponId}")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/promotion-code/coupon/{couponId}"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Timestamp': '<x-timestamp>', 'X-API-KEY': '<api-key>'}
};
fetch('https://uat-api.clinkbill.com/api/promotion-code/coupon/{couponId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "success",
"data": [
{
"couponId": "<string>",
"promotionCodeId": "<string>",
"code": "<string>",
"status": "active",
"firstOrderOnly": true,
"redemptionCount": 123,
"maxRedemptionLimit": 123,
"validPeriodEnd": 1754819711382,
"createTime": 1754819711382,
"mirroring": true
}
]
}"<string>"Promotion Code
查询优惠券促销码列表
List promotion codes attached to a coupon.
GET
/
promotion-code
/
coupon
/
{couponId}
List Promotion Codes by Coupon
curl --request GET \
--url https://uat-api.clinkbill.com/api/promotion-code/coupon/{couponId} \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>'HttpResponse<String> response = Unirest.get("https://uat-api.clinkbill.com/api/promotion-code/coupon/{couponId}")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/promotion-code/coupon/{couponId}"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Timestamp': '<x-timestamp>', 'X-API-KEY': '<api-key>'}
};
fetch('https://uat-api.clinkbill.com/api/promotion-code/coupon/{couponId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "success",
"data": [
{
"couponId": "<string>",
"promotionCodeId": "<string>",
"code": "<string>",
"status": "active",
"firstOrderOnly": true,
"redemptionCount": 123,
"maxRedemptionLimit": 123,
"validPeriodEnd": 1754819711382,
"createTime": 1754819711382,
"mirroring": true
}
]
}"<string>"授权
Your secret API key obtained from the Clink dashboard (Developers section)
请求头
Current timestamp in milliseconds since Unix epoch (required for request signing)
示例:
"1783513683000"
路径参数
Unique identifier of the coupon