Method: orders.batchget
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/orders:batchGet
网址采用 gRPC 转码语法。
路径参数
参数 |
packageName |
string
必需。购买的相应订阅或应用内商品所对应的应用的软件包名称(例如:“com.some.thing”)。
|
查询参数
参数 |
orderIds[] |
string
必需。要检索订单详细信息的订单 ID 列表。对于每个请求,订单 ID 数量必须介于 1 到 1000(包含 1 和 1000)之间。如果未找到任何订单 ID 或没有任何订单 ID 与提供的软件包匹配,则整个请求将失败并返回错误。订单 ID 必须各不相同。
|
响应正文
针对 orders.batchGet API 的响应。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"orders": [
{
object (Order )
}
]
} |
字段 |
orders[] |
object (Order )
关于请求的订单 ID 的详细信息。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/androidpublisher
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[],[],null,["# Method: orders.batchget\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.BatchGetOrdersResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\norders.get order details for a list of orders.\n\n### HTTP request\n\n`GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/orders:batchGet`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| `packageName` | `string` Required. The package name of the application for which this subscription or in-app item was purchased (for example, 'com.some.thing'). |\n\n### Query parameters\n\n| Parameters ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `orderIds[]` | `string` Required. The list of order IDs to retrieve order details for. There must be between 1 and 1000 (inclusive) order IDs per request. If any order ID is not found or does not match the provided package, the entire request will fail with an error. The order IDs must be distinct. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse for the orders.batchGet API.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------|\n| ``` { \"orders\": [ { object (/android-publisher/api-ref/rest/v3/orders#Order) } ] } ``` |\n\n| Fields ||\n|------------|------------------------------------------------------------------------------------------------------------|\n| `orders[]` | `object (`[Order](/android-publisher/api-ref/rest/v3/orders#Order)`)` Details for the requested order IDs. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]