跳转到主要内容
GET
检索计划
附加的促销响应包含一个 promotions 列表,列出附加到该计划的促销,每个促销都带有其覆盖的 cycles 数量、on_pause 行为、type(AUTOMATIC 或 CODE)以及 status。status 为 ENABLED 或 DISABLED,从促销引擎读取。如果引擎未响应,状态为 UNKNOWN。使用将促销附加到计划和从计划中移除促销附加和移除促销。请参阅订阅计划促销。

授权

public-api-key
string
header
默认值:<Your public-api-key>
必填
private-secret-key
string
header
默认值:<Your private-secret-key>
必填

请求头

X-Account-Code
string
必填

您的 Yuno Dashboard 中的 account_id(UUID)。必填:缺少该参数时返回 400 BAD_REQUEST("Invalid x-account-code header.")。

路径参数

plan_id
string
必填

计划的唯一标识符。

响应

200

id
string
account_id
string
name
string
description
string | null
merchant_reference
string
status
string
base_amount
object
frequency
object
country_prices
object[]
allowed_payment_methods
string[]
metadata
object[]
phases
object[]
created_at
string
updated_at
string
account_ids
string[]

计划可用的所有账户。始终返回;当计划仅限单个账户时,包含 account_id。

retries
object | null

基于此计划创建的订阅所继承的重试配置。计划未设置时为 null。

retry_split
object | null

附加到此计划的 Smart Retries A/B 拆分配置。未设置时为 null。

meters
object[]

附加到此计划的计量价格。计划没有按用量定价时为空,参见将计量器附加到计划。

promotions
object[]

附加到此计划的促销。未附加任何促销时为空。参见订阅计划上的促销。