- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: REST api to create subscription with draft status
Here is another example of creating a draft subscription via REST / CRUD API.
POST https://rest.zuora.com/v1/action/subscribe { "subscribes": [{ "Account": { "Id": "2c92a0fb4f2b5e17014f2d370646466d" }, "SubscribeOptions": { "GenerateInvoice": false, "ProcessPayments": false }, "SubscriptionData": { "Subscription": { "RenewalTerm": 12, "TermType": "TERMED", "IsInvoiceSeparate": false, "InitialTerm": 12, "AutoRenew": false }, "RatePlanData": [{ "RatePlan": { "ProductRatePlanId": "4028e487343ac85101343f605cff1512" }, "RatePlanChargeData": [{ "RatePlanCharge": { "ProductRatePlanChargeId": "4028e48833fd603f01343f60b822245b", "Price": "70" } }] }] } }] }
Reference
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: REST api to create subscription with draft status
Hello,
I am also concerned about a way to create a Subscription in Draft status (i.e. without Contract Effective Date) with REST apis.
Is it planned to allow doing this with the Create Subscription call ? (https://www.zuora.com/developer/api-reference/#operation/POST_Subscription)
I know it is currently possible to do so using the Subscribe call but I would prefer using the Create Subscription as JSON structure is way closer to what we can also get with the Get Subscriptions by Key call (https://www.zuora.com/developer/api-reference/#operation/GET_SubscriptionsByKey).
Thanks in advance.
Simon Gaestel
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: REST api to create subscription with draft status
Hello @Sgaestel , I have good news for you! There is a REST equivalent of the Subscribe call, the /action/subscribe call! It's basically the same Subscribe feature, but using the JSON format.
You can find more information on: https://www.zuora.com/developer/api-reference/#operation/Action_POSTsubscribe
Hope this helps!
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: REST api to create subscription with draft status
Hello @Viktor.
I already saw that, but the JSON structure is way more clear in the Create Subscription API than the Subscribe one as I only need to create a subscription...
Thanks anyway
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: REST api to create subscription with draft status
- « Previous
- Next »