v1

latestOpenAPI 3.0.02026-08-06102347.7 KB
Subscription

Cancel subscription

post/subscription/cancel

Headers

Datestring

GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request.

Authorizationstring

HMAC-SHA256 Signature header. See the Authentication guide.

Digeststring

SHA-256 digest of the request body (when a body is present).

Request body

merchant_sub_idstring string required

商户订阅ID

cancel_reason'user_request' | 'by_merchant_api' | 'by_operation' string required

Cancel reason: user_request / by_merchant_api / by_operation

notestring string

备注

Response

subscription_idstring string

系统订阅ID

merchant_sub_idstring string

商户订阅ID

statusstring string

订阅状态

canceled_atinteger

取消时间 (unix timestamp)

cancel_reasonstring string

取消原因