Method: externaltransactions.createexternaltransaction
HTTP 请求
POST https://androidpublisher.googleapis.com/androidpublisher/v3/{parent=applications/*}/externalTransactions
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
必需。要创建的相应外部交易所在的父资源。格式:applications/{packageName}
|
查询参数
参数 |
externalTransactionId |
string
必需。用于外部交易的 ID。在应用的所有其他交易中必须是唯一的。该值应介于 1-63 个字符之间,有效字符为 /a-zA-Z0-9_-/。请勿使用此字段存储任何个人身份信息 (PII),如电子邮件地址。尝试在此字段中存储个人身份信息 (PII) 可能会导致请求被阻止。
|
响应正文
如果成功,响应正文将包含一个新创建的 ExternalTransaction
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/androidpublisher
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-17。
[null,null,["最后更新时间 (UTC):2024-12-17。"],[[["Creates a new external transaction using an HTTP POST request to a specified URL."],["Requires providing path and query parameters, including `parent` to specify the app package and a unique `externalTransactionId`."],["The request body needs to contain an `ExternalTransaction` object, while a successful response returns a newly created `ExternalTransaction`."],["Authorization is needed using the `https://www.googleapis.com/auth/androidpublisher` OAuth scope."]]],["This describes how to create an external transaction using a POST request to the specified URL. The URL includes a required `parent` path parameter representing the application's package name. It also requires an `externalTransactionId` query parameter that must be unique and follow specific character constraints. The request and response bodies utilize the `ExternalTransaction` format. The process is authorized through the `androidpublisher` OAuth scope. It uses gRPC Transcoding syntax.\n"]]