Google 玩开发者 Api - 作废的购买

Google play Developer Api - Voided Purchases

我在使用此端点时遇到 403 错误:https://developers.google.com/android-publisher/api-ref/purchases/voidedpurchases/list

但是只有当我传递 startTime/endTime 参数时才会出现错误,没有这个参数我可以正确访问这个端点。

我想知道是否有人知道缺少 权限。

我已经在 google Play 与订单和购买相关的开发者控制台中授予我的服务帐户权限。

https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.voidedpurchases/list

您是否有可能在指定任一参数时出错?您的请求是什么样的?

开始时间 字符串(int64 格式)

The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.

结束时间 字符串(int64 格式)

The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.

也许您指定的值超出了预期范围?

在页面底部有一个“试试这个 api”部分,因此您可以尝试其形式的参数,这样您就可以查看是否犯了某种错误..