1
votes

I am trying to call GET https://www.googleapis.com/androidpublisher/v2/applications/packageName/purchases/subscriptions/subscriptionId/tokens/token endpoint of google play developer api to get the information about the purchased subscription.But, everytime I receive the below error message when I call this endpoint. Did anyone get this error before ?

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "Invalid Value"
   }
  ],
  "code": 400,
  "message": "Invalid Value"
 }
}
1
I catch the same problem. Did you solve it?Stafox
Nope, I dropped working on my project.Bhupinder Singh
your token is wrong, I actually purchase and get purchaseToken in the result. paste it in token and it workedLe Vu Minh Huy

1 Answers

0
votes

You are not formatting your request properly. An HTTP code 400 means that the syntax you used for the request was incorrect, and so the server didn't know how to handle it. Re-check your GET request code to make sure it is formatted correctly.