[Google Play Developer API] Response Invalid Value

964 views
Skip to first unread message

twod...@gmail.com

unread,
Aug 22, 2016, 5:25:41 AM8/22/16
to Google APIs Explorer Users Forum
I verify a subscription one month ago, it return a valid result with expiry time and other information. 
https://www.googleapis.com/androidpublisher/v2/applications/com.xxx.app/purchases/subscriptions/com.xxx.app.vip.1mth_sub/tokens/jhfmblfobojihoeicdahgble.AO-J1OzWtjNuPWXpOI56OrzzumU8C2pKS9s71vBWptjomo-m0bCIErB7O_-JWcTlc3s3gudmLNvbqSBtTD3_Yr9yUxNNaOwArzrQcVrvpO6cFXrcunUj-XPNXkEElW3zm3wjNO_CLzhD

This is one month subscription, Now i call it again with same purchase token, it return 400 Bad Request
{
  "error": {
    "errors": [
      {
        "domain": "global",
        "reason": "invalid",
        "message": "Invalid Value"
      }
    ],
    "code": 400,
    "message": "Invalid Value"
  }
}

When the product id changed, It will be return:
https://www.googleapis.com/androidpublisher/v2/applications/com.xxx.app/purchases/subscriptions/com.xxx.app.vip.1mth_sub01/tokens/jhfmblfobojihoeicdahgble.AO-J1OzWtjNuPWXpOI56OrzzumU8C2pKS9s71vBWptjomo-m0bCIErB7O_-JWcTlc3s3gudmLNvbqSBtTD3_Yr9yUxNNaOwArzrQcVrvpO6cFXrcunUj-XPNXkEElW3zm3wjNO_CLzhD
{
  "error": {
    "errors": [
      {
        "domain": "androidpublisher",
        "reason": "purchaseTokenDoesNotMatchSubscriptionId",
        "message": "The subscription purchase token does not match the subscription ID.",
        "locationType": "parameter",
        "location": "token"
      }
    ],
    "code": 400,
    "message": "The subscription purchase token does not match the subscription ID."
  }
}

Why it will be return "Invalid Value" in this case?
Can anyone solve my problem? Thank you.

MoneyCoach UG

unread,
May 13, 2019, 9:06:13 AM5/13/19
to Google APIs Explorer Users Forum
Same here. Any news on this?

Gaurav Agrawal

unread,
May 13, 2022, 4:59:50 PM5/13/22
to Google APIs Explorer Users Forum
Started getting this error all of a sudden. Any updates on this?
Reply all
Reply to author
Forward
0 new messages