Happy Business Starts Here

Highlighted
Support SME

[KNOWN ISSUE] REST API unknown error encountered when preview a Subscription

We noticed that when using REST API to preview a Subscription containing Volume/Tiered Charge, if endingUnit field is left as blank, an error with code 53022700 will occur. However, in Web UI, you could preview without endingUnit field.

 

 

POST https://apisandbox-api.zuora.com/rest/v1/subscriptions/preview


{
"previewAccountInfo":{
"currency":"CAD",
"billCycleDay":0,
"billToContact":{
"city":"Nanaimo",
"state":"BC",
"country":"Canada",
"zipCode":"V9R5G8"
}
},
"termType":"EVERGREEN",
"contractEffectiveDate":"2016-05-12",
"subscribeToRatePlans":[
{
"productRatePlanId":"2c92c0f8475dcea701476e0a307b6452",
"chargeOverrides":[
{
"productRatePlanChargeId":"2c92c0f8475dcea701476e0a308a7603",
"tiers":[
{
"tier":"1",
"startingUnit":"1",
"endingUnit":"100",
"price":"120.00",
"priceFormat":"PerUnit"
},
{
"tier":"2",
"startingUnit":"101",
"price":"105.00",
"priceFormat":"PerUnit"
}
]
}
]
}
]
}

 

ERROR

{
"success": false,
"processId": "32FFFDBB1DA07DDB",
"reasons": [
{
"code": 53022700,
"message": null
}
]
}

 

An engineering ticket has been created, the tracking number is SUB-4771.

 

The workaround is to add the endingUnit field in the REST call. 

 

 

 

 

 





SigNowBlue.png

 


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