The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Update to an empty field for customer_save on 0.7.2 API

freshjonesfreshjones Member
in Help edited January 2015
I am using the customer_save api to create and update customers from our website and I have a situation with trying to update a populated field with an empty or null value, the api wont allow it and always returns the previous populated value instead of updating the field to null.

Here is my situation, I send a request to the api with the customer_address2 field populated, then I send a new request with the customer_address2 field empty or false or null or completely removed or blank space, anything but populated, but the api always returns with the original value and not what i need which is empty?

is there a way to update to an empty value using the api? as mentioned I've tried a number of the obvious options:
* not including the field,
* passing NULL
* passing false
* passing 0
* passing ""
* passing \s

  • fc_adamfc_adam FoxyCart Team

    Unfortunately this is a known issue with our current API, it doesn't allow you to blank out a field. You'll need to provide some sort of value to replace the existing field. It might make the most sense to send it through as something like "n/a".
Sign In or Register to comment.