Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google play subscription validation api invalid argument error

I'm using googleapis to verify my subscription server side, but I get following error, google documents have no information about this error, can I ask for help if anyone else had faced the same issue.

Method: https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token} (GET)

Error Response: { "error": { "code": 400, "message": "Your request is invalid for this subscription purchase.", "errors": [ { "message": "Your request is invalid for this subscription purchase.", "domain": "androidpublisher", "reason": "subscriptionInvalidArgument" } ] } }

like image 813
AliAx Avatar asked Nov 27 '25 19:11

AliAx


1 Answers

I figured it out, for newly created inapp subscription items, v2 api should be used

https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}

like image 64
AliAx Avatar answered Nov 30 '25 10:11

AliAx



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!