I am following this documentation: https://developer.paypal.com/docs/platforms/subscriptions/customize/revise-subscriptions/
I can make a get subscription request and I do find the resource, so it does exists, I'm trying to change a plan for user with no success.
I have tried multiple subscriptions upgrades and keep getting this error with a 404 status code:
{
"name": "RESOURCE_NOT_FOUND",
"message": "The specified resource does not exist.",
"debug_id": "badd307417e54",
"details": [
{
"issue": "INVALID_RESOURCE_ID",
"description": "Requested resource ID was not found."
}
],
"links": [
{
"href": "https://developer.paypal.com/docs/api/v1/billing/subscriptions#RESOURCE_NOT_FOUND",
"rel": "information_link",
"method": "GET"
}
]
}
Request made using postman:
curl --location --request POST 'https://api-m.paypal.com/v1/billing/subscriptions/I-23GL8JDYX/revise' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxX' \
--data-raw '{"plan_id":"P-1WF812957C7GL853XMASCMQI"}'
Validated plan by makin a get request https://api-m.paypal.com/v1/payments/billing-plans/P-1WF812957C7GL853XMASCMQI
{
"id": "P-1WF812957C7GL853XMASCMQI",
"state": "ACTIVE",
...
Also validated the subscription by making this get call https://api-m.paypal.com/v1/billing/subscriptions/I-23GL8JDYX I have searched and found many similar question without a solution All ID's posted here are masked Thanks in advance
... View more