post deprecatedhttps://api.cashfree.com/api/v2/api/v2/subscriptions
You can now easily create a subscription as per the plan created in the previous step.
The Auth Link received in the response will be redirected to a link hosted on cashfree.com. Once the authorization is complete, your customer will be redirected to returnUrl. Store the subReferenceId as this is the unique id generated by Cashfree for the subscription and will be required for subsequent operations.
Split Payments Received via Subscriptions
To split the payments received using subscriptions with multiple vendors.
- Create a subscription using Create Subscription API.
- Use the Charge Subscription API to raise a charge for ON-DEMAND subscriptions.
- Get the “cf_orderId” received in the webhook SUBSCRIPTION_NEW_PAYMENT for successful subscription payment, or, get the “orderId” received in Get All Subscription Payments API, Get Single Subscription Payment API.
- Use this order_id in Split After Successful Payment API to initiate the split.
For this, merchants must write to care@cashfree to enable EasySplit, Order Split after payment with Order Split max delay in days (1-45 days).