1

当我为取消订阅进行 API 调用时,它会给出令牌过期错误作为响应。

要求:

{"subscriptionId":"163912368****.7CA2****.****","purchaseToken":" 0000017da36282f5f6****aeac1cc6c128e7e787253****4da40c6e8837469b272c2e88eb48b32d9x494e.****","accountflag": 1} 

contentType - application/json
encoding - Encoding.UTF8
httpurl - https://subscr-at-dre.iap.dbankcloud.com/sub/applications/v2/purchases/stop
headers = {Authorization: Basic QVBQQVQ6Q3dFQUFBQUFFMF****dUYTdFVmhzaGhIU3ZseGVGMXloTHphQkhtbnQ0bmNUYk9JV1p****TUGtLcE83UXN6eG1ubm****s4YXhLU2MwMk1TUHBibjN5OFlBTXEwWT**********
}

回复:

{"responseCode":"6","responseMessage":"Token is expired or invalid"}

请帮助解决此问题。

4

1 回答 1

1

问题可能是由访问令牌过期引起的。所以

  1. 请重新获取访问令牌并重试该界面。

rootUrl 的值因站点而异。您必须选择最近站点的订阅服务地址才能访问。有关详细信息,请参阅下面的站点信息和站点选择链接。

https://developer.huawei.com/consumer/en/doc/development/HMSCore-References/api-common-statement-0000001050986127#section1741234185817

https://developer.huawei.com/consumer/en/doc/development/HMSCore-References/api-common-statement-0000001050986127#section1954123781815

于 2022-02-16T07:36:44.887 回答