Method: purchases.subscriptions.revoke
ユーザーの定期購入を払い戻し、直ちに取り消します。定期購入はすぐに利用できなくなり、継続されなくなります。
HTTP リクエスト
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke
この 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。"],[[["Immediately terminates a user's subscription and stops it from recurring."],["Requires the application package name, subscription ID, and purchase token."],["Uses an HTTP POST request with an empty request body."],["A successful operation returns an empty response body."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document outlines the process to revoke a user's subscription purchase via an API. The `POST` request, sent to a specific URL, immediately terminates a subscription and stops recurring payments. The request requires three path parameters: `packageName`, `subscriptionId`, and `token`. The request body must be empty. A successful request results in an empty response body. This action requires the `https://www.googleapis.com/auth/androidpublisher` authorization scope.\n"]]