I can access subscription data no problem like so: 
https://www.googleapis.com/androidpublisher/v2/applications/packageName/purchases/subscriptions/subscriptionId/tokens/token

I attempt to cancel the subscription by adding ":cancel" to the end of the 
query 
https://www.googleapis.com/androidpublisher/v2/applications/packageName/purchases/subscriptions/subscriptionId/tokens/token:cancel


This returns JSON (parsed):

Array
(
    [error] => Array
        (
            [errors] => Array
                (
                    [0] => Array
                        (
                            [domain] => global
                            [reason] => invalid
                            [message] => Invalid Value
                        )

                )

            [code] => 400
            [message] => Invalid Value
        )

)




It seems that either 
1) The API is broken (unlikely)
2) I haven't enabled some sort of permissions to cancel a subscription via 
API


Any other ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/eb29976e-89f1-42cc-85c8-712cb8fea3b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to