Happy Business Starts Here

Highlighted
Zuora Support Moderator

Error when using the REST Subscribe call to update the Bill Cycle Day

I am trying to autoset the BillCycleDay in the Subscribe call by using a value of 0, however when I use this I get the following resposne

[
{
"Errors": [
{
"Code": "INVALID_VALUE",
"Message": "You can not set bill cycle day to 'Auto-set' when bill cycle day setting option is 'Manual set'."
}
],
"Success": false
}
]

I cannot see where the Manual Set is coming from and there's nothing on the Community or the Developer site that gives any indication

I have pasted below the JSON body I am using

{
"subscribes": [
{
"Account": {
"AutoPay": false,
"Batch": "Batch1",
"BillCycleDay": 0,
"Currency": "AUD",
"Name": "Scott Test5",
"PaymentTerm": "Due Upon Receipt",
"Status": "Draft"
},
"BillToContact": {
"Country": "Australia",
"FirstName": "Scott",
"LastName": "Test"
},
"PreviewOptions": {
"EnablePreviewMode": false,
"NumberOfPeriods": 3
},
"SubscribeOptions": {
"GenerateInvoice": true,
"ProcessPayments": false,
"SubscribeInvoiceProcessingOptions": { }
},
"SubscriptionData": {
"RatePlanData": [
{
"RatePlan": {
"ProductRatePlanId": "2c92c0f963720373016385ca94fd2bee"
}
}
],
"Subscription": {
"AutoRenew": false,
"ContractEffectiveDate": "2018-05-01",
"Notes": "This is a Test",
"ServiceActivationDate": "2018-05-01",
"TermType": "EVERGREEN"
}
}
}
]
}






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 REPLY 1
Zuora Support Moderator

Re: Error when using the REST Subscribe call to update the Bill Cycle Day

In your Subscribe Call, while creating account the Bcdsettingoption parameter is by default set as "ManualSet" and when you try to set the Bill Cycle Day value to 0 it does not allow you to "AutoSet", as the Bill Cycle Day parameter that it is looking for is valid number > 1, resulting in the below exception,

"Code": "INVALID_VALUE",
"Message": "You can not set bill cycle day to 'Auto-set' when bill cycle day setting option is 'Manual set'."

 

Details related to Bcdsettingoption is detailed in the article below under Auto-Set option is provided as part of the below article,

https://knowledgecenter.zuora.com/CB_Billing/WA_Dates_in_Zuora/C_Customer_Account_Dates%3A_Bill_Cycl...,

Snippet for your reference:
For WSDL 33+: If you want to automatically set the BCD to the same day as the triggering date of the account's first recurring charge, then set the optional field, BcdSettingOption to AutoSet, and set the BillCycleDay field to null or to 0.

 

Use the below Subscribe call for desired result,

{
"subscribes": [
{
"Account": {
"AutoPay": false,
"Batch": "Batch1",
"BcdSettingOption":"AutoSet",
"BillCycleDay": 0,
"Currency": "USD",
"Name": "Scott Test5",
"PaymentTerm": "Due Upon Receipt",
"Status": "Draft"
},
"BillToContact": {
"Country": "Australia",
"FirstName": "Scott",
"LastName": "Test"
},
"PreviewOptions": {
"EnablePreviewMode": false,
"NumberOfPeriods": 3
},
"SubscribeOptions": {
"GenerateInvoice": true,
"ProcessPayments": false,
"SubscribeInvoiceProcessingOptions": { }
},
"SubscriptionData": {
"RatePlanData": [
{
"RatePlan": {
"ProductRatePlanId": "2c92c0f96329a97401633b025765355c"
}
}
],
"Subscription": {
"AutoRenew": false,
"ContractEffectiveDate": "2018-05-01",
"Notes": "This is a Test",
"ServiceActivationDate": "2018-05-01",
"TermType": "EVERGREEN"
}
}
}
]
}

Hope this calrifies.






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √