Orders: refund

Requires authorization

Refund a user's subscription or in-app purchase order.

Request

HTTP request

POST https://www.googleapis.com/androidpublisher/v3/applications/packageName/orders/orderId:refund

Parameters

Parameter name Value Description
Path parameters
orderId string The order ID provided to the user when the subscription or in-app order was purchased.
packageName string The package name of the application for which this subscription or in-app item was purchased (for example, 'com.some.thing').
Optional query parameters
revoke boolean Whether to revoke the purchased item. If set to true, access to the subscription or in-app item will be terminated immediately. If the item is a recurring subscription, all future payments will also be terminated. Consumed in-app items need to be handled by developer's app. (optional)

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/androidpublisher

Request body

Do not supply a request body with this method.

Response

If successful, this method returns an empty response body.