Deactivate Promotion Code
curl --request PUT \
--url https://uat-api.clinkbill.com/api/promotion-code/{promotionCodeId}/deactivate \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>'HttpResponse<String> response = Unirest.put("https://uat-api.clinkbill.com/api/promotion-code/{promotionCodeId}/deactivate")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/promotion-code/{promotionCodeId}/deactivate"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>"
}
response = requests.put(url, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Timestamp': '<x-timestamp>', 'X-API-KEY': '<api-key>'}
};
fetch('https://uat-api.clinkbill.com/api/promotion-code/{promotionCodeId}/deactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "success"
}"<string>"Promotion Code
停用促销码
Deactivate a promotion code.
PUT
/
promotion-code
/
{promotionCodeId}
/
deactivate
Deactivate Promotion Code
curl --request PUT \
--url https://uat-api.clinkbill.com/api/promotion-code/{promotionCodeId}/deactivate \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>'HttpResponse<String> response = Unirest.put("https://uat-api.clinkbill.com/api/promotion-code/{promotionCodeId}/deactivate")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/promotion-code/{promotionCodeId}/deactivate"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>"
}
response = requests.put(url, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Timestamp': '<x-timestamp>', 'X-API-KEY': '<api-key>'}
};
fetch('https://uat-api.clinkbill.com/api/promotion-code/{promotionCodeId}/deactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "success"
}"<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 promotion code