Get subscription_id from payment




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?

Login to Me Too


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:


If you are still facing issues, please create an MTS ticket via -  with the detailed information and error details.




PayPal MTS


If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.