The following error occurs as I try to access purchases/subscription endpoints of Google Play:
{
"error": {
"code": 401,
"message": "The current user has insufficient permissions to perform the requested operation.",
"errors": [
{
"message": "The current user has insufficient permissions to perform the requested operation.",
"domain": "androidpublisher",
"reason": "permissionDenied"
}
]
}
}
The following configurations are already done :
Below troubleshooting steps will help you to resolve your issue:
Play Developer API
, the publisher was trying to authenticate as an end user Only users (or service accounts
) that are granted the following permissions in Play Console can make Play Developer API
requests. Play Console Permissions
required to use Play Developer API
(dev site):View financial data, orders, and cancellation survey responses
Manage orders and subscriptions
service account email
in the "Users and permissions"
section of Google Play Console and wait for 24-hrs
after adding the user in Google play console.