Method: externaltransactions.getexternaltransaction
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
الحصول على معاملة خارجية حالية
طلب HTTP
GET https://androidpublisher.googleapis.com/androidpublisher/v3/{name=applications/*/externalTransactions/*}
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
name |
string
مطلوب. اسم المعاملة الخارجية المطلوب استرجاعها. التنسيق: applications/{packageName}/externalTransactions/{externalTransaction}
|
نص الطلب
يجب أن يكون نص الطلب فارغًا.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال ExternalTransaction
.
عيّنة
في ما يلي مثال على طلب:
```
curl \
-X GET \
'https://androidpublisher.googleapis.com/androidpublisher/v3/applications/com.example.app/externalTransactions/1234567890' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer [YOUR_ACCESS_TOKEN]'
```
في ما يلي مثال على ردّ:
{
"createTime": "2023-04-06T13:48:11.694Z",
"currentPreTaxAmount": {
"currency": "USD",
"priceMicros": "12000000"
},
"currentTaxAmount": {
"currency": "USD",
"priceMicros": "1200000"
},
"externalTransactionId": "ext-trans-id-123",
"oneTimeTransaction": {
"externalTransactionToken": "one-time-token-456"
},
"originalPreTaxAmount": {
"currency": "USD",
"priceMicros": "15000000"
},
"originalTaxAmount": {
"currency": "USD",
"priceMicros": "1500000"
},
"packageName": "com.example.app",
"recurringTransaction": {
"externalSubscription": {
"subscriptionType": "RECURRING"
},
"externalTransactionToken": "recurring-token-789",
"initialExternalTransactionId": "ext-trans-id-001",
"otherRecurringProduct": {}
},
"testPurchase": {},
"transactionProgramCode": 11,
"transactionState": "TRANSACTION_REPORTED",
"transactionTime": "2023-04-06T14:00:00.000Z",
"userTaxAddress": {
"regionCode": "US"
}
}
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/androidpublisher
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-05-28 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-05-28 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Retrieves an existing external transaction using a GET request."],["Requires the `name` path parameter to specify the application package and external transaction ID."],["An empty request body is necessary, and a successful response returns an `ExternalTransaction` object."],["Authorization is required with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document details retrieving an existing external transaction via a `GET` request to a specific URL: `https://androidpublisher.googleapis.com/androidpublisher/v3/{name=applications/*/externalTransactions/*}`. The `name` path parameter is required, specifying the transaction's identifier (format: `applications/{packageName}/externalTransactions/{externalTransaction}`). The request body must be empty. A successful request returns an `ExternalTransaction` instance. The necessary authorization scope is `https://www.googleapis.com/auth/androidpublisher`.\n"]]