The CommitOrderActor saves or persists an order. It is located in: /atg/commerce/custsvc/
order/CommitOrderActor
.

The CommitOrderActor has the following actor-chains:

Actor-Chain

Description

persistOrder

Saves the order..

commitOrder

Commits the order.

sendConfirmationMessage

Sends a confirmation message to an e-mail address. For information on this actor-chain, refer to the Working with Scheduled Orders section.

validateTemplateOrder

Validates a scheduled order template order. For information on this actor-chain, refer to the Working with Scheduled Orders section.

The persistOrder actor-chain saves the order

Parameters: None:

Save or Persist Order Example
curl -x 127.0.0.1:8888 -L -v -b agent_cookies.txt -H "Content-Type:
application/json" "http://localhost:8280/rest/model/atg/commerce/custsvc/
order/CommitOrderActor/persistOrder"

The commitOrder actor-chain commits an order and contains the following parameters:

Parameter

Description

allowEmptyOrders

This parameter allows you to commit empty orders.

salesChannel

Identifies the sales channel used for this order.

siteId

Identifies the site ID used for this order.

createTemplateFromSubmittedOrder

Allows you to create a template from this submitted order. Used for Scheduled Orders. Refer to the Working with Scheduled Orders section.

Commit Customer’s Order Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json"
"http://localhost:8280/rest/model/atg/commerce/custsvc/order/CommitOrderActor/
commitOrder"

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