The addAddress
actor-chain is used to create a new address in a customer profile.
Parameter | Description |
---|---|
| The first name of the customer associated with this address. |
| The middle name or initial of the customer associated with this address. |
| The last name of the customer associated with this address. |
| The first address field of the address. |
| The second address field of the address. |
| The city of the address. |
| The state or province of the address. |
| The postal code of the address. |
| The country of the address. |
| The phone number associated with this address. |
| Boolean value that sets the address as the default billing address. |
| Boolean value that sets the address as the default shipping address |
Add Address to Customer Profile Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{ "firstName" : "Jack", "lastName" : "Dill", "address1" : \"123 Main Dr\", "city" : "Seaside", "state" : "CA", "postalCode" : "99021", "phoneNumber" : "123-123-1234", "country" : "US" }" "http://localhost:8280/rest/model/atg/svc/agent/ profile/AddressBookActor/addAddress"
The server response would be:
{"addressId" : "270015"}