Method: purchases.subscriptions.refund
המערכת מחזירה את התשלום על המינוי שרכש המשתמש, אבל המינוי יישאר בתוקף עד לתאריך התפוגה שלו והוא ימשיך להתחדש.
בקשת HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund
כתובת ה-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)."],[[["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"]]