In order to create an address for a user, you must pass either the user's email address or their monthly account id. You must also pass a valid UserAddress object.
UserAddress Object
{
"address":"string",
"address2":"string",
"addressName":"string",
"attention":"string",
"channels":["string"
],
"city":"string",
"class":"string",
"company":"string",
"country":"string",
"defaultAddress":false,
"documentId":"string",
"fullName":"string",
"state":"string",
"userId":"string",
"zip":"string"
}
Sample Response:
{
"documentId":"address::adbffcd0-b7f9-4cdf-b068-aae0da71bcf2",
"channels":[],
"userId":"MonthlyAccount::e3f81995-1f7d-4450-adbb-2f3ca2b6ef0b",
"company":"",
"attention":"",
"address":"14 Irving Avenue",
"address2":"",
"city":"Englewood Cliffs",
"state":"NJ",
"zip":"07632",
"country":"United States",
"fullName":" JOHN PAYNE",
"addressName":"",
"defaultAddress":false,
"class":"address"
}
