Method: monetization.subscriptions.basePlans.deactivate

停用基础方案。基础方案停用后,新订阅者将无法使用,但现有订阅者仍将保留其订阅

HTTP 请求

POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:deactivate

网址采用 gRPC 转码语法。

路径参数

参数
packageName

string

必需。要停用的基础方案的父级应用(软件包名称)。

productId

string

必需。要停用的基础方案的父级订阅 (ID)。

basePlanId

string

必需。要停用的基础方案的唯一基础方案 ID。

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "latencyTolerance": enum (ProductUpdateLatencyTolerance)
}
字段
latencyTolerance

enum (ProductUpdateLatencyTolerance)

可选。此产品更新的传播的延迟容忍度。默认为对延迟敏感。

响应正文

如果成功,则响应正文包含一个 Subscription 实例。

授权范围

需要以下 OAuth 作用域:

  • https://www.googleapis.com/auth/androidpublisher