Re: API - PHP Add "state" field ("state" and/or "state_code") - Error

Hi,

Are you using our PHP SDK? Whether you are or not, this issue probably stems from the fact that address infromation is stored inside arrays, whereas most of the other contact information (like name and company) are stored NOT in arrays). If you're using our PHP SDK, below is a quick example of how to add the state. I would avoid the state_code field and use the 'state' field, since the user interface when you login to the account uses the state field to fill in the information.

You can post a new message in the Community or find us on Twitter Mon-Fri 8am-8pm ET, Sat 10am-8pm ET, & Sun 10am-6pm ET. We've got real people waiting to help you out. Click below to start a conversation!