The createGiftlist actor-chain creates a gift list or a wish list.

Note: The following parameters are all optional, unless stated otherwise.

Parameter

Description

isPublished

Identifies if the list has been published.

siteId

The ID of the site.

eventName

Required. The name of the gift list event.

eventDate

Required. The date of the gift list event.

eventType

Required. The type of the gift list event.

description

A description of the gift list.

comments

Any comments that are included with the list.

shippingAddressId

The ID of the shipping address.

instructions

Any instructions that are included with the list.

isNewAddress

Identifies if the address included in this list is new.

firstName

The first name of the customer.

middleName

The middle name or initial of the customer.

lastName

The last name of the customer.

address1

The first address field of the customer.

address2

The second address field of the customer.

city

The city of the customer’s address.

state

The state or province of the customer’s address.

postalCode

The postal code of the customer’s address.

country

The country of the customer’s address.

phoneNumber

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"

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