The DuplicateOrderActor allows you to duplicate an existing order. When you duplicate the order, you can duplicate the ticket disposition of the order. For additional information on working with ticket dispositions, refer to the Working with Ticket Disposition Warnings and Messages section. This actor is located at /atg/commerce/custsvc/order/DuplicateOrderActor.

This actor uses the duplicateOrder actor-chain, which contains the following parameters:

Parameter

Description

orderToDuplicate

The ID of the scheduled order or scheduled order item.

doWarnings

If set to true, will present a warning to the agent when proceeding to the new site.

doTicketDispositionPrompt

If set to true, will present ticket disposition prompts to the agent.

ticketDispositionOptions.dispositionOption

If doTicketDispositionPrompt is enabled, this provides a ticket disposition option.

ticketDispositionOptions.reasonCode

If doTicketDispositionPrompt is selected, this provides a ticket disposition reason code.

ticketDispositionOptions.ticketNote

If doTicketDispositionPrompt is selected,provides a note associated with the ticket.

ticketDispositionOptions.publicNote

If doTicketDispositionPrompt is selected, identifies if the ticket note is public.

Duplicate an Order Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{
\"orderToDuplicate\":\"xco30012\", \"doWarnings\":false,
\"doTicketDispositionPrompt\":true, "dispositionOption":\"save\" }"
"http://localhost:8080/rest/model/atg/commerce/custsvc/order/DuplicateOrderActor/
duplicateOrder"

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