Hi @smalanki,
Currently, you can create multiple subscriptions under an existing account using subscribe() call. Here is a sample template.
POST https://rest.zuora.com/v1/action/subscribe
{
"subscribes":[
{
"Account":{
"Id":"2c92a0fb3929bf1a01392adf9e980929"
},
"PreviewOptions":{
"EnablePreviewMode":false,
"NumberOfPeriods":3
},
"SubscribeOptions":{
"GenerateInvoice":false,
"ProcessPayments":false,
"SubscribeInvoiceProcessingOptions":{
}
},
"SubscriptionData":{
"RatePlanData":[
{
"RatePlan":{
"ProductRatePlanId":"4028e487343ac85101343f605cff1512"
}
},
{
"RatePlan":{
"ProductRatePlanId":"2c92a0f94a37f8bc014a3f7244be7b7e"
}
}
],
"Subscription":{
"AutoRenew":false,
"ContractAcceptanceDate":"2017-10-20",
"ContractEffectiveDate":"2017-10-20",
"InitialTerm":12,
"Notes":"this is notes",
"RenewalTerm":12,
"ServiceActivationDate":"2017-10-20",
"TermStartDate":"2017-10-20",
"TermType":"TERMED"
}
}
},
{
"Account":{
"Id":"2c92a0fb3929bf1a01392adf9e980929"
},
"PreviewOptions":{
"EnablePreviewMode":false,
"NumberOfPeriods":3
},
"SubscribeOptions":{
"GenerateInvoice":false,
"ProcessPayments":false,
"SubscribeInvoiceProcessingOptions":{
}
},
"SubscriptionData":{
"RatePlanData":[
{
"RatePlan":{
"ProductRatePlanId":"4028e487343ac85101343f605cff1512"
}
}
],
"Subscription":{
"AutoRenew":false,
"ContractAcceptanceDate":"2017-10-20",
"ContractEffectiveDate":"2017-10-20",
"InitialTerm":12,
"Notes":"this is notes",
"RenewalTerm":12,
"ServiceActivationDate":"2017-10-20",
"TermStartDate":"2017-10-20",
"TermType":"TERMED"
}
}
}
]
}
For a new account you would need to create two subscribe() calls. The first call is to create the account and the first subscription. Once you have the AccountId, you can pass it into the second subscribe() calls to create multiple subscriptions under this account.
... View more