Hi @stefanomurino
In conclusion, adding "invoiceCollect": false to the request body may be able to prevent errors. That is, change it like this:
{
"accountKey": "A00000030",
"autoRenew": true,
"contractEffectiveDate": "2018-07-10",
"initialTerm": "12",
"initialTermPeriodType": "Week",
"invoiceCollect": false,
"notes": "Test POST subscription from z-ruby-sdk",
"renewalTerm": "3",
"renewalTermPeriodType": "Week",
"subscribeToRatePlans": [
{
"chargeOverrides": [
{
"billCycleDay": "5",
"billCycleType": "SpecificDayofMonth",
"billingPeriodAlignment": "AlignToCharge",
"billingTiming": "IN_ARREARS",
"description": "This is rate plan charge description",
"number": "TestCharge",
"price": 12.01,
"productRatePlanChargeId": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"triggerDate": "2018-07-10",
"triggerEvent": "EUR"
}
],
"productRatePlanId": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
],
"termType": "TERMED"
}
If "AR Settlement" is enabled, something restrictions apply when creating Payment. (Sorry, I do not know the concrete contents about this "restrictions")
By default, the Create Subscription call has the invoiceCollect field set to true. In this case, when you call this API, Zuora creates Invoice and Payment at the same time. If invoiceCollect is set to false, Payment will not be created.
I can not verify this because my tenant has not enabled the "AR Settlement" function. Please tell us the results you tried.
Note: Recently, the "AR Settlement" function was renamed as "Invoice Settlement". https://knowledgecenter.zuora.com/AA_Whats_New/R_Previous_Releases/23_2018_New_Features/L_Release_Notes_for_Zuora_Release_228%2C_July_2018
... View more