取得現有的外部交易。
HTTP 要求
GET https://androidpublisher.googleapis.com/androidpublisher/v3/{name=applications/*/externalTransactions/*}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 | |
---|---|
name |
必要欄位。要擷取的外部交易名稱。格式: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