The create
actor-chain is used to create a new customer profile. This actor-chain is also used to create a new Commerce Service Center account when the orderId
and saveCreditCards
parameters are used.
Parameter | Description |
---|---|
| The first name of the new customer. |
| The middle name or initial of the new customer. |
| The last name of the new customer. |
| The e-mail address of the new customer. |
| The customer’s login. |
| The customer’s password. |
| The customer’s date of birth. |
| Used when creating an account. Indicates the order ID. If this property is set, and |
| Used when creating an account. Indicates if the credit card information for the customer should be saved. Used with Commerce Service Center only. |
| The first address field associated with the customer’s address. |
| The second address field associated with the customer’s address. |
| The city associated with the customer’s address. |
| A company name associated with the customer’s address. |
| A country associated with the customer’s address. |
| A county associated with the customer’s address. |
| A job title associated with the customer’s address. |
| The postal code associated with the customer’s address. |
| A fax number associated with the customer’s address. |
| The first name of the customer associated with the address. |
| The middle name or initial of the customer associated with the address. |
| The last name of the customer associated with the address. |
| The phone number associated with the customer’s address. |
| A prefix associated with the customer, such as Mr. or Dr. |
| The state associated with the customer’s address. |
| A suffix associated with the customer, such as Jr. |
Create New Customer Profile Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{\"firstName\":\"Bill\", \"middleName\":\"T\", \"lastName\":\"Hitchock\", \"email\":\"bill18@example.com\", \"login\":\"bill18\", \"password\": \"tempPassword\", \"dateOfBirth\":\"AUG 30, 1970\", \"address\": {\"atg-rest-class-type\": \"java.util.HashMap\", \"atg-rest-values\": {\"phoneNumber\":\"555-111-2222\"}} }" "http://localhost:8280/rest/ model/atg/svc/agent/ui/formhandlers/CustomerProfileActor/create"
Create New Customer Account Example
The following example shows how you can create a new C account based upon a customer profile by including the orderId
and the saveCreditCards
parameters. This service is used specifically on the Commerce Service Center Order Completion page, once you have created and completed an order. You could use this service to create a new user, and then copy the payment information from the order into the user’s profile:
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{\"orderId\":\"o99720003\", \"saveCreditCards\":true, \"firstName\":\"Bill\", \"middleName\":\"T\", \"lastName\":\"Hitchock\", \"email\":\"bill14@example.com\", \"login\":\"bill14\", \"password\":\"tempPassword\", \"dateOfBirth\": \"AUG 30, 1970\", \"address\":{\"atg-rest-class-type\":\"java.util.HashMap\", \"atg-rest-values\": {\"phoneNumber\":\"555-111-2222\"}} }" "http://localhost:8280/rest/model/atg/svc/agent/ui/formhandlers/ CustomerProfileActor/create"