Method: purchases.subscriptions.revoke
החזרים כספיים על רכישת מינוי של משתמש וביטול המינוי באופן מיידי. הגישה למינוי תבוטל באופן מיידי והתשלומים הקבועים יפסיקו.
בקשת HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
packageName |
string
שם החבילה של האפליקציה שבשבילה נרכש המנוי (לדוגמה, 'com.some.thing').
|
subscriptionId |
string
מזהה המינוי שנרכש (לדוגמה, 'monthly001').
|
token |
string
האסימון שסופק למכשיר של המשתמש כשהמינוי נרכש.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יהיה ריק.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/androidpublisher
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]