I’m getting an error ‘card[billing_zip] : cannot be blank’ while creating a new customer via API. What should I do?

Modified on: Tue, 30 May, 2023 at 5:39 PM

This article also answers
Why should I pass the ZIP code if my gateway doesn’t mandate it?


You would have to disable zip code validation on your Card Address verification mechanism in order to create customers via APIs without passing the zip code information.

Please navigate to Settings >> Billing LogIQ  >> Card Address Verification >> Uncheck ZIP/Postal 



1)  If ZIP codes are passed via API for the billing address, they'd be validated invariably. Ensure that you do not pass the ‘card[billing_zip]’ parameter if you do not have the zip code information.

2) Please note that you are not required to pass the ZIP code information if the gateway doesn't mandate it. ZIP code gets always validated if it's passed via APIs, and all you need to do is follow the steps above and disable zip code validation.

If you have any further questions regarding this, please reach out to support@chargebee.com.

Did you find it helpful? Yes No

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