Method: purchases.subscriptions.revoke
Kullanıcının abonelik satın alma işleminin geri ödemesini yapar ve aboneliği hemen iptal eder. Aboneliğe erişim derhal sonlandırılır ve abonelik tekrarlanmayı durdurur.
HTTP isteği
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
packageName |
string
Bu aboneliğin satın alındığı uygulamanın paket adı (ör. "com.bir.şey").
|
subscriptionId |
string
Satın alınan abonelik kimliği (ör. "monthly001").
|
token |
string
Abonelik satın alındığında kullanıcının cihazına sağlanan jeton.
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
Başarılı olursa yanıt metni boş olur.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/androidpublisher
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-12-17 UTC.
[null,null,["Son güncelleme tarihi: 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"]]