- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- PartialRefund
- FullRefund
- Try it!
Refunds or partially refunds an existing external transaction.
HTTP request
POST https://androidpublisher.googleapis.com/androidpublisher/v3/{name=applications/*/externalTransactions/*}:refund
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The name of the external transaction that will be refunded. Format: applications/{packageName}/externalTransactions/{externalTransaction} |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "refundTime": string, // Union field |
Fields | |
---|---|
refund |
Required. The time that the transaction was refunded. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Union field refund_type . Required. Type of external transaction refund. refund_type can be only one of the following: |
|
partial |
A partial refund. |
full |
A full-amount refund. |
Response body
If successful, the response body contains an instance of ExternalTransaction
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher
PartialRefund
A partial refund of a transaction.
JSON representation |
---|
{
"refundId": string,
"refundPreTaxAmount": {
object ( |
Fields | |
---|---|
refund |
Required. A unique id distinguishing this partial refund. If the refund is successful, subsequent refunds with the same id will fail. Must be unique across refunds for one individual transaction. |
refund |
Required. The pre-tax amount of the partial refund. Should be less than the remaining pre-tax amount of the transaction. |
FullRefund
This type has no fields.
A full refund of the remaining amount of a transaction.