The addAddress actor-chain is used to create a new address in a customer profile.

Parameter

Description

firstName

The first name of the customer associated with this address.

middleName

The middle name or initial of the customer associated with this address.

lastName

The last name of the customer associated with this address.

address1

The first address field of the address.

address2

The second address field of the address.

city

The city of the address.

state

The state or province of the address.

postalCode

The postal code of the address.

country

The country of the address.

phoneNumber

The phone number associated with this address.

setBillingAddress

Boolean value that sets the address as the default billing address.

setShippingAddress

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"}

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices