Method: monetization.onetimeproducts.purchaseOptions.offers.cancel

取消一次性商品优惠。

HTTP 请求

POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:cancel

网址采用 gRPC 转码语法。

路径参数

参数
packageName

string

必需。要取消的优惠所对应的父级应用(软件包名称)。

productId

string

必需。要取消的优惠所对应的父级一次性商品 (ID)。

purchaseOptionId

string

必需。要取消的优惠所对应的父级购买选项 (ID)。

offerId

string

必需。要取消的优惠的优惠 ID。

请求正文

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

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

enum (ProductUpdateLatencyTolerance)

可选。相应更新的传播延迟容忍度。默认设置为对延迟敏感。

响应正文

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

授权范围

需要以下 OAuth 范围:

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