Billing and shipping region invalid when updating contact

I’ve been getting a “400 Bad Request” HTTP response with an error message “BILLING Region is invalid, SHIPPING Region is invalid” when updating contact through REST API.

Region data that I’m sending isn’t updated and it is a plain string (“CA” for example).

If I set the region param to empty string (in both addresses) then the request passes and the contact is updated.

1 Like

Through REST the Billing, Shipping and Other address fields are required to either use the ISO standard name or code for region. The region code for California is US-CA. This means that if the state field (region through REST) isn’t either ‘California’ or ‘US-CA’ an issue will occur.