I'm using the Create endpoint, with the request straight from the documentation:
curl 'https://[nation].nationbuilder.com/api/v1/people?access_token=[token]' -X POST -H 'Content-Type: application/json' -d '{"person":{"email":"[email protected]","last_name":"Smith","first_name":"Bob","sex":"M","employer":"DexterLabs","party":"P","registered_address":{"state":"TX","country_code":"US"}}}'
I receive a full response body, but with
"registered_address":null
Any help appreciated.
Official response from Farz Sokhansanj
I tested this code with my sandbox nation slug and access token and was able to confirm that the response body does return TX and US for the registered_address state and country code. It also shows up for this signup record in the nation:
- "registered_address": { "address1": null, "address2": null, "address3": null, "city": null, "county": null, "state": "TX", "country_code": "US",
Share this post
Showing 4 reactions
Sign in with