Method: purchases.subscriptionsv2.revoke
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
subscriptionv2.rev 要求使用者購買訂閱項目。
HTTP 要求
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:revoke
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
packageName |
string
必要欄位。購買這個訂閱項目的應用程式套件 (例如「com.some.thing」)。
|
token |
string
必要欄位。購買訂閱項目時提供給使用者裝置的權杖。
|
要求主體
要求主體的資料會採用以下結構:
欄位 |
revocationContext |
object (RevocationContext )
必要欄位。訂閱撤銷的其他詳細資料。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidpublisher
RevocationContext
撤銷 Purchase.subscriptionsv2.revoke API 的撤銷結構定義。
JSON 表示法 |
{
// Union field RefundType can be only one of the following:
"proratedRefund": {
object (ProratedRefund )
}
// End of list of possible types for union field RefundType .
} |
欄位 |
聯集欄位 RefundType 。決定應核發的退款類型。必須在有效要求中指定退款類型。RefundType 只能是下列其中一項: |
proratedRefund |
object (ProratedRefund )
選用設定。用途是依據訂閱項目的剩餘時間,向使用者按比例退還訂閱項目的金額。
|
ProratedRefund
這個類型沒有任何欄位。
用來判斷 RevocationContext 中的退款類型是否為按比例計費的退款。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-04-12 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]