500 INTERNAL_SERVICE_ERROR while Cancel Subscription
NagarajuRaghava
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Mar-22-2019
02:21 AM
Implementing PayPal Subscriptions:
- Subscriptions via PayPal Payment standard.
- Cancel Subscriptions via PayPal API (Without SDK).
I am facing issues while cancelling the Subscription/Recurring Payment via PayPal API. I was able to get the AccessToken via the API. Below is the API for cancelling subscriptions:
curl -v -X POST https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-1TJ3GAGG82Y9/cancel \ -H "Content-Type: application/json" \ -H "Authorization: Bearer Access-Token" \ -d '{ "note": "Canceling the profile." }'
I get the following response everytime:
{ "name": "INTERNAL_SERVICE_ERROR", "message": "An internal service error occurred.", "information_link": "https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR", "debug_id": "c121fd139b91b" }
Can someone assure me if i am on the right track & what might be the cause for the issue. Thanks!
Labels:
- Labels:
-
Payments REST APIs
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Activating a subscription after capturing outstanding_balance will charge the customer again in REST APIs
- Subscriptions API is highly inconsistent in REST APIs
- Know if subscription cancelled due to failed payment in REST APIs
- INVALID RESOURCE ID paypal Cancel Subcription in Sandbox Environment
- How to test Subscription payments in Sandbox Environment