Method: orders.batchget
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
orders.get order details for a list of orders.
בקשת HTTP
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/orders:batchGet
כתובת ה-URL משתמשת בתחביר של gRPC Transcoding.
פרמטרים של נתיב
פרמטרים |
packageName |
string
חובה. שם החבילה של האפליקציה שבה נרכש המינוי או הפריט בתוך האפליקציה (לדוגמה, com.some.thing).
|
פרמטרים של שאילתה
פרמטרים |
orderIds[] |
string
חובה. רשימת מזהי ההזמנות שאותן רוצים לאחזר. כל בקשה חייבת לכלול בין 1 ל-1,000 (כולל) מספרי הזמנות. אם לא נמצא מזהה הזמנה או שהוא לא תואם לחבילה שצוינה, הבקשה כולה תיכשל ותוצג שגיאה. מזהי ההזמנות צריכים להיות שונים.
|
גוף הבקשה
גוף הבקשה צריך להיות ריק.
גוף התשובה
תגובה ל-API orders.batchGet.
אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:
ייצוג ב-JSON |
{
"orders": [
{
object (Order )
}
]
} |
שדות |
orders[] |
object (Order )
פרטים על מזהי ההזמנות שביקשתם.
|
היקפי הרשאה
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/androidpublisher
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],[],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`"]]