跳转到主要内容
POST
所有商户都可以暂停由 Clink 管理且符合条件的 active 订阅。不传请求体或传 {} 会立即暂停。要预约暂停,请传未来的 Unix 毫秒时间戳 pauseAt。如果传入的时间等于或早于当前时间,暂停会立即生效。再次提交会替换待执行的暂停计划,包括原计划的原因和自动恢复时间。 以下示例生成“明天暂停、一周后恢复”的请求体。
省略 resumeAt 表示手动恢复。预约成功时,响应中的 status 仍为 active,并返回 pause.pauseAt。暂停生效后,状态变为 paused,响应中会带上实际暂停时间 pause.pausedAt 和剩余服务秒数 pause.remainingSeconds。

授权

X-API-KEY
string
header
必填

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

请求头

X-Timestamp
string
必填

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

示例:

"1783513683000"

路径参数

id
string
必填

Unique identifier of the subscription

请求体

application/json
pauseAt
integer<int64> | null

Time to pause in Unix milliseconds. A future time schedules the pause. Omit, send null, or supply a time at or before now to pause immediately.

示例:

1798761600000

resumeAt
integer<int64> | null

Automatic resume time in Unix milliseconds, later than both now and the pause time and within the allowed scheduling window. Omit or send null for manual resumption.

示例:

1799366400000

reason
string | null

Optional reason for pausing.

Maximum string length: 255

响应

Updated subscription on success. Check the business code in the response.

code
integer<int32>

Clink business result code. A value of 200 indicates success.

msg
string

Human-readable result message describing the outcome of the request.

data
object

Subscription details after the operation, including the current status and billing period.