Error - quantity[0] : “Cannot be blank” when multi decimal support is enabled

Modified on: Thu, 9 Dec, 2021 at 12:58 PM

This article covers 

Why am I getting the "Cannot be Blank" error when using Chargebee's Cart-customization?
How do we pass a quantity parameter when the multi decimal is enabled for a site? 


Solution


Suppose Multi-decimal support is true, you may get the below error(screenshot) when you are trying to pass only a quantity parameter for per unit item_model.
 


This error occurs usually in cart_sub_create API.


As Multi_Decimal_Support is true you need to pass 
quantity_in_decimal parameter instead of quantity.


Related articles and Documentation

What is multi-decimal support in Chargebee? How does it work?

Configuring Multi-decimal Support





Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×