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

firstName

The first name of the new customer.

middleName

The middle name or initial of the new customer.

lastName

The last name of the new customer.

email

The e-mail address of the new customer.

login

The customer’s login.

password

The customer’s password.

dateOfBirth

The customer’s date of birth.

orderId

Used when creating an account. Indicates the order ID. If this property is set, and saveCreditCards is set to true, copies the credit card information from the order to the user’s profile. Used with Commerce Service Center only.

saveCreditCards

Used when creating an account. Indicates if the credit card information for the customer should be saved. Used with Commerce Service Center only.

address.address1

The first address field associated with the customer’s address.

address.address2

The second address field associated with the customer’s address.

address.city

The city associated with the customer’s address.

address.companyName

A company name associated with the customer’s address.

address.country

A country associated with the customer’s address.

address.county

A county associated with the customer’s address.

address.jobTitle

A job title associated with the customer’s address.

address.postalCode

The postal code associated with the customer’s address.

address.faxNumber

A fax number associated with the customer’s address.

address.firstName

The first name of the customer associated with the address.

address.middleName

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

address.lastName

The last name of the customer associated with the address.

address.phoneNumber

The phone number associated with the customer’s address.

address.prefix

A prefix associated with the customer, such as Mr. or Dr.

address.state

The state associated with the customer’s address.

address.suffix

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"

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