Skip to main content
POST
Preview Subscription Update

授权

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

Subscription update preview request

Parameters required to preview a subscription upgrade or downgrade.

priceId
string
必填

Target recurring price ID. The price must belong to the current merchant and support the subscription payment currency.

promotionCode
string

Promotion code to apply to the updated subscription.

响应

Subscription update preview returned successfully

code
integer<int32>

Response status code, 200 when success

示例:

200

msg
string

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

示例:

"success"

data
object

Preview result for a subscription upgrade or downgrade.