Method: projects.locations.privateOffers.cancel

取消目标 PrivateOffer。

HTTP 请求

POST https://commerceproducer.googleapis.com/v1beta/{name=projects/*/locations/*/privateOffers/*}:cancel

网址采用 gRPC 转码语法。

路径参数

参数
name

string

必需。资源的名称

请求正文

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

JSON 表示法
{
  "cancellationNote": string
}
字段
cancellationNote

string

可选。与取消相关的内部备注。存储在已取消的优惠中。客户看不到。

响应正文

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

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/cloud-platform

如需了解详情,请参阅 Authentication Overview

IAM 权限

需要拥有 name 资源的以下 IAM 权限:

  • commerceproducer.privateOffers.cancel

如需了解详情,请参阅 IAM 文档