Method: externaltransactions.getexternaltransaction
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Ruft eine vorhandene externe Transaktion ab.
HTTP-Anfrage
GET https://androidpublisher.googleapis.com/androidpublisher/v3/{name=applications/*/externalTransactions/*}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
name |
string
Erforderlich. Der Name der externen Transaktion, die abgerufen werden soll. Format: applications/{packageName}/externalTransactions/{externalTransaction}
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von ExternalTransaction
.
Beispiel
Hier ein Beispiel für eine Anfrage:
```
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]'
```
Hier ist eine Beispielantwort:
{
"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"
}
}
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/androidpublisher
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["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"]]