Method: purchases.subscriptions.refund
ユーザーの定期購入の払い戻しを行いますが、定期購入は有効期限まで有効で、その期間中は継続(再開)可能です。
HTTP リクエスト
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
packageName |
string
この定期購入が購入されたアプリのパッケージ名(例: 「com.some.thing」)。
|
subscriptionId |
string
購入した定期購入の ID(例: 「monthly001」)。
|
token |
string
定期購入の購入時にユーザーのデバイスに提供されたトークン。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/androidpublisher
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-17 UTC。
[null,null,["最終更新日 2024-12-17 UTC。"],[[["Refunds a user's subscription purchase, keeping the subscription active until its expiration and allowing it to continue recurring."],["The request is made using a `POST` request to a specific URL with path parameters for package name, subscription ID, and purchase token."],["An empty request body is required, and a successful response will also be empty."],["`https://www.googleapis.com/auth/androidpublisher` OAuth scope is necessary for authorization."]]],["This document details how to refund a user's subscription purchase via a `POST` HTTP request to a specific URL. The URL requires three path parameters: `packageName`, `subscriptionId`, and `token`. The request body must be empty. A successful request results in an empty response body. The user's subscription remains valid until it naturally expires. This process requires authorization via the `https://www.googleapis.com/auth/androidpublisher` OAuth scope.\n"]]