跳转到主要内容
PUT
/
coupon
/
{couponId}
/
name
Rename Coupon
curl --request PUT \
  --url https://uat-api.clinkbill.com/api/coupon/{couponId}/name \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-Timestamp: <api-key>' \
  --data '
{
  "newName": "Summer Sale 2026"
}
'
{
  "code": 200,
  "msg": "success"
}

授权

X-API-KEY
string
header
必填

Your secret API key obtained from the Clink dashboard (Developers section)

X-Timestamp
string
header
必填

Current timestamp in milliseconds since Unix epoch (required for request signing)

路径参数

couponId
string
必填

Unique identifier of the coupon

请求体

application/json
newName
string
必填

New coupon name

Maximum string length: 40

响应

Coupon renamed successfully

Body of the response message

code
integer<int32>

Response status code, 200 when success

示例:

200

msg
string

Brief description of what happened, 'success' when happy case

示例:

"success"