Error subscription API - RESOURCE NOT FOUND
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Background:
- Subscription was initiated and created via normal paypal checkout button (not REST API).
- Paypal sent IPN to us and we store the details internally.
- Using the subscription ID from IPN, we wanted to lookup and modify a subscription (e.g cancel/edit).
However "Show subscription details" API (https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_get) returns an error , stating that "The specified resource does not exist.".
Error response: https://prnt.sc/qtricz
Is is possible to manipulate a subscription that was created through paypal checkout button?
any leads would be greatly appreciated!
- Labels:
-
Payments REST APIs
-
Payouts Rest APIs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is possible to update few of the subscription properties. You can check the update subscription method in API reference guide.
If the subscription is created, then you should be able to definitely get that using the 'Get Subscription Details' method. Can you post the IPN JSON that you got?
Also, do you mean a webhook event OR the IPN?
Webhook works with REST like IPN (Instant Payment Notifications) works with NVP/SOAP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
I have the same problem. I create the subscription and after I receive the webhook event, I try to get the subscription details and the api response is RESOURCE_NOT_FOUND.
Could you help me?
{
"id": "WH-7EG44078B3398933H-9GC284746C2342220",
"event_version": "1.0",
"create_time": "2022-08-22T19:20:12.451Z",
"resource_type": "subscription",
"resource_version": "2.0",
"event_type": "BILLING.SUBSCRIPTION.CREATED",
"summary": "Subscription created",
"resource": {
"start_time": "2022-08-22T19:20:12Z",
"quantity": "1",
"subscriber": {
"email_address": "",
"name": {
"given_name": "Carla",
"surname": "xxx"
}
},
"create_time": "2022-08-22T19:20:12Z",
"custom_id": "ZpAYZCrllp",
"links": [
{
"href": "https://www.paypal.com/webapps/billing/subscriptions?ba_token=BA-43L62065F66377421",
"rel": "approve",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/billing/subscriptions/I-MMCMGGBV7MHV",
"rel": "edit",
"method": "PATCH"
},
{
"href": "https://api.paypal.com/v1/billing/subscriptions/I-MMCMGGBV7MHV",
"rel": "self",
"method": "GET"
}
],
"id": "I-MMCMGGBV7MHV",
"plan_overridden": false,
"plan_id": "P-6F918502SG246841CMMB5N3A",
"status": "APPROVAL_PENDING"
},
"links": [
{
"href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-7EG44078B3398933H-9GC284746C2342220",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-7EG44078B3398933H-9GC284746C2342220/resend",
"rel": "resend",
"method": "POST"
}
]
}
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Receiving a PAYMENT.SALE.COMPLETED webhook notification - how can I trace the parent Subscription in REST APIs
- paypal recurring payments and ipn management in REST APIs
- Get subscription_id from payment in REST APIs
- Advance integration form field processing in REST APIs
- PayPal API 403 PERMISSION_DENIED on get order and capture order in REST APIs