Happy Business Starts Here

Creating a subscription via API

sayam
Valued Scholar

Creating a subscription via API

I need to create a subscription using Workflow REST API but the subscriptions created have to be for the 1st of next month from when the workflow is run and not the day the workflow runs. (Say workflow runs on 18th August. Subscription should get created for 1st September)

2 REPLIES 2
Menelion
Advanced Tutor

Re: Creating a subscription via API

Hi,

When creating your subscription (I'd suggest using the newer Orders API though), set the contract Effective date to whatever you want, and you'll get the result you want to achieve.

sayam
Valued Scholar

Re: Creating a subscription via API

Hi Menelion,

But how can I dynamically take the first date of next month? The WF is set to callout and would be triggered at any instant (any day of any month)