Method: orders.refund
ユーザーの定期購入またはアプリ内購入の注文の払い戻しを行います。3 年以上前の注文は払い戻しできません。
HTTP リクエスト
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
packageName |
string
この定期購入またはアプリ内アイテムを購入したアプリのパッケージ名(例: 「com.some.thing」)。
|
orderId |
string
定期購入またはアプリ内注文の購入時にユーザーに提供されたオーダー ID。
|
クエリ パラメータ
パラメータ |
revoke |
boolean
購入されたアイテムを取り消すかどうか。これを true に設定した場合、定期購入またはアプリ内アイテムは直ちに取り消し済みとなります。アイテムが継続的な定期購入である場合、今後の支払いもすべて取り消されます。消費したアプリ内アイテムは、デベロッパーのアプリで処理する必要があります(省略可)。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の 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。"],[[["This operation refunds a user's subscription or in-app purchase order, provided the order is less than 3 years old."],["It uses an HTTP POST request to the specified URL with path parameters for package name and order ID."],["An optional query parameter \"revoke\" can be included to immediately terminate access to the purchased item."],["The request body should be empty, and a successful response will also be empty."],["Authorization requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope."]]],["This document details how to refund a user's subscription or in-app purchase via a `POST` HTTP request. The request URL requires the application's `packageName` and the `orderId` as path parameters. An optional `revoke` query parameter determines if the purchased item should be immediately revoked. The request body must be empty, and a successful response also returns an empty body. Orders over 3 years old are ineligible for refunds. This action requires the `https://www.googleapis.com/auth/androidpublisher` authorization scope.\n"]]