Get subscription_id from payment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
While integrating subscriptions i stuck on a question:
When recieving a PAYMENT.SALE.COMPLETED webhook i can't find the subscription id in the transmitted JSON data.
But i need the subscription id to assign the payment to the user.
Is there a way to get the subscription details by using "resource.parent_payment" ?
Or i'm completey on the wrong way?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @aktiweb,
Thank you for posting to the PayPal community.
The "PAYMENT.SALE.COMPLETED" webhook is triggered whenever a payment is successfully made on a subscription. To make a payment on a subscription, you need to pass the subscription ID in the path parameters of the " Capture authorized payment on subscription" API call.
After making the API call, you will receive a response with a status code of 202. It is important to note that this response does not include any JSON data to indicate the status of the payment. If you would like to learn more about the meaning of a 202 status code, please refer to the following code URL: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202.
If you are still facing issues, please create an MTS ticket via - https://www.paypal-support.com/s/?language=en_US with the detailed information and error details.
Sincerely,
Vaishnavi
PayPal MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- where does paypal payments go to if there is no linked phone or email to the seller ? in PayPal Payments Standard
- Couldn't receive International payment in PayPal Payments Standard
- Is it possible to make payments in RON (Romanian Leu) through PayPal? in REST APIs
- My PayPal is not allowing me to receive or send requests. in PayPal Payments Standard
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment