v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13136338403.5 KB
externaltransactions

Creates a new external transaction.

post/androidpublisher/v3/{+parent}/externalTransactions

Path parameters

parentstring required

Required. The parent resource where this external transaction will be created. Format: applications/{package_name}

Query parameters

externalTransactionIdstring

Required. The id to use for the external transaction. Must be unique across all other transactions for the app. This value should be 1-63 characters and valid characters are /a-zA-Z0-9_-/. Do not use this field to store any Personally Identifiable Information (PII) such as emails. Attempting to store PII in this field may result in requests being blocked.

Request body

testPurchaseExternalTransactionTestPurchase

Represents a transaction performed using a test account. These transactions will not be charged by Google.

transactionState'TRANSACTION_STATE_UNSPECIFIED' | 'TRANSACTION_REPORTED' | 'TRANSACTION_CANCELED'

Output only. The current state of the transaction.

transactionTimestring google-datetime

Required. The time when the transaction was completed.

transactionProgramCodeinteger

Optional. The transaction program code, used to help determine service fee for eligible apps participating in partner programs. Developers participating in the Play Media Experience Program (https://play.google.com/console/about/programs/mediaprogram/) must provide the program code when reporting alternative billing transactions. If you are an eligible developer, please contact your BDM for more information on how to set this field. Note: this field can not be used for external offers transactions.

packageNamestring

Output only. The resource name of the external transaction. The package name of the application the inapp products were sold (for example, 'com.some.app').

externalTransactionIdstring

Output only. The id of this transaction. All transaction ids under the same package name must be unique. Set when creating the external transaction.

createTimestring google-datetime

Output only. The time when this transaction was created. This is the time when Google was notified of the transaction.

Response

Successful response