See core principles first
It's very easy to use the web interface to add new subscriptions with your preferred logic.
Add a new payment with a recurring event either in production or your sandbox account.
Simply select how you want your subscription to end (if at all). See images below to set up subscription correctly.
"schedule":{
"interval":"month",
"start_date":"2018-08-01",
"frequency": 3 // every 3 intervals
"end_transactions": 4 // end after 4 intervals
}
The API will accept data on only one of the end parameters. For example:
You can leave unused parameters out of your request.
Step by step how tos