400 Error when trying to post a constituent.

I get a 400 error when I try adding a new constituent with the post API. I have narrowed it down to the Address block of the body. I got phone/email to work fine. After messaging the support chat yesterday I was told to do a get and see what fields are there. I have added the formatted_address and inactive fields to see if that solved the problem but it did not. below is an example of the json body being generated

{
"address":{
"address_lines":"address_line here",
"city":"City",
"country":"country",
"postal_code":"00000",
"state":"AA",
"type":"Home",
"do_not_mail":false,
"formatted_address":"address_line here City AA country 00000",
"inactive":false
},
"phone":{
"do_not_call":false,
"number":"000-000-0000",
"type":"Phone"
},
"birthdate":{
"y":1960
},
"first":"John",
"last":"Smith",
"middle":"R",
"type":"Individual",
"preferred_name":"John",
"gender":"Male",
"inactive":false,
"suffix":"",
"title":""

Categories