The createGiftlist
actor-chain creates a gift list or a wish list.
Note: The following parameters are all optional, unless stated otherwise.
Parameter | Description |
---|---|
| Identifies if the list has been published. |
| The ID of the site. |
| Required. The name of the gift list event. |
| Required. The date of the gift list event. |
| Required. The type of the gift list event. |
| A description of the gift list. |
| Any comments that are included with the list. |
| The ID of the shipping address. |
| Any instructions that are included with the list. |
| Identifies if the address included in this list is new. |
| The first name of the customer. |
| The middle name or initial of the customer. |
| The last name of the customer. |
| The first address field of the customer. |
| The second address field of the customer. |
| The city of the customer’s address. |
| The state or province of the customer’s address. |
| The postal code of the customer’s address. |
| The country of the customer’s address. |
| The phone number associated with the customer. |
Basic Create Gift List Example
This example uses only the required parameters.
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{ \"eventName\" : \"Wedding\", \"eventType\": \"Wedding\", \"eventDate\" : \"AUG 30, 2013\" }" "http://localhost:8180/rest/model/atg/commerce/custsvc/ gifts/CSRGiftlistActor/createGiftlist"
Create Gift List with Existing Address Example
This example uses an existing customer address. The address is identified by the shippingAddressId
parameter.
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{ \"eventName\" : \"Birthday\", \"eventType\": \"Birthday\", \"eventDate\" : \"NOV 10, 2013\",\"shippingAddressId\" : \"270015\" }" "http://localhost:8180/ rest/model/atg/commerce/custsvc/gifts/CSRGiftlistActor/createGiftlist"
Create Gift List with New Address Example
This example creates a new customer address.
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{ \"eventName\" : \"Valentines\", \"eventType\": \"Other\", \"eventDate\" : \"FEB 14, 2014\",\"isNewAddress\" : \"true\", \"firstName\":\"Tara\", \"lastName\":\"Hammond\", \"middleName\":\"C\", \"address1\":"\101 First St\", \"address2\":null, \"city\":\"Cambridge\",\"state\":\"MA\",\"country\":\"USA\", \"postalCode\": \"02146\", \"phoneNumber\":\"617-637-8687\" }" "http://localhost:8180/rest/model/atg/commerce/custsvc/gifts/CSRGiftlistActor/ createGiftlist"