The ConfirmOrderActor is used to re-price the order prior to confirming the order. The path to this actor is: /atg/commerce/pricing/ConfirmOrderActor.

This actor contains the confirmOrder actor-chain.

Confirm Order Example
curl -L -v -b customer_cookies.txt -H "Content-Type: application/json" –d
"http://localhost:8280/rest/model/atg/commerce/order/purchase/ConfirmOrderActor/
confirmOrder"

The server response may be similar to the following:

{"order": {
  "lastModifiedTime": 1363287004602,
  "shippingGroupCount": 1,
  "paymentGroupCount": 1,
  "shippingGroups": [{
    "specialInstructions": {},
    "handlingInstructions": [],
    "state": 0,
    "locationId": null,
    "shippingMethod": "Ground",
    "id": "sg140002",
    "trackingNumber": null,
    "priceInfo": {
      "amount": 6.5,
      "currencyCode": "USD",
      "amountIsFinal": false,
      "discounted": false,
      "rawShipping": 6.5
    },
    "description": "sg140002",
    "actualShipDate": null,
    "submittedDate": null,
    "shipOnDate": null,
    "shippingAddress": {
      "middleName": null,
      "lastName": "Smith",
      "ownerId": null,
      "state": "MA",
      "address1": "1 Main St",
      "address2": "",
      "address3": null,
      "companyName": null,
      "suffix": null,
      "city": "Cambridge",
      "country": "USA",
      "id": null,
      "postalCode": "02046",
      "faxNumber": null,
      "phoneNumber": "6176378687",
      "county": null,
      "email": "jsmith@example.com",
      "prefix": null,
      "firstName": "John",
      "jobTitle": null
    },
    "stateDetail": null
  }],
  "commerceItems": [{
    "id": "ci11000001",
    "productDisplayName": "Hubbard Chair",
    "returnedQuantity": 0,
    "priceInfo": {
      "amount": 119.2,
      "quantityDiscounted": 1,
      "discountable": true,
      "priceListId": "listPrices",
      "onSale": false,
      "rawTotalPrice": 149,
      "currencyCode": "USD",
      "amountIsFinal": false,
      "listPrice": 149,
      "discounted": true,
      "currentPriceDetailsSorted": [{
        "amount": 119.2,
        "itemPriceInfo": null,
        "currencyCode": "USD",
        "tax": 0,
        "range": {
          "lowBound": 0,
          "class": "atg.core.util.Range",
          "highBound": 0,
          "size": 1
        },
        "amountIsFinal": false,
        "discounted": true,
        "quantity": 1,
        "detailedUnitPrice": 119.2
      }],
      "salePrice": 0
    },
    "catalogId": null,
    "quantity": 1,
    "catalogRefId": "xsku2126",
    "catalogKey": "en_US",
    "productId": "xprod2126"
  }],
  "id": "o120001",
  "siteId": "homeSite",
  "taxPriceInfo": {
    "amount": 0,
    "currencyCode": "USD",
    "countyTax": 0,
    "amountIsFinal": false,
    "countryTax": 0,
    "discounted": false,
    "stateTax": 0,
    "cityTax": 0,
    "districtTax": 0
  },
  "priceInfo": {
    "amount": 109.2,
    "total": 115.7,
    "shipping": 6.5,
    "currencyCode": "USD",
    "tax": 0,
    "amountIsFinal": false,
    "discounted": true,
    "manualAdjustmentTotal": 0,
    "rawSubtotal": 119.2,
    "discountAmount": 10
  },
  "paymentGroups": [{
    "amount": 0,
    "currencyCode": null,
    "expirationMonth": "1",
    "expirationYear": "2014",
    "paymentId": "pg140002",
    "creditCardNumber": "1111",
    "expirationDayOfMonth": null,
    "billingAddress": {
      "middleName": null,
      "lastName": "Smith",
      "ownerId": null,
      "state": "MA",
      "address1": "1 Main St",
      "address2": null,
      "address3": null,
      "companyName": null,
      "suffix": null,
      "city": "Cambridge",
      "country": "USA",
      "id": null,
      "postalCode": "02046",
      "faxNumber": null,
      "phoneNumber": "6176378687",
      "county": null,
      "email": "jsmith@example.com",
      "prefix": null,
      "firstName": "John",
      "jobTitle": null
    },
    "creditCardType": "Visa",
    "orderId": null
  }],
  "profileId": "230000",
  "creationTime": 1363282777057,
  "relationships": [
    {
      "id": "r110002",
      "amount": 0,
      "relationshipType": "SHIPPINGQUANTITY",
      "returnedQuantity": 0,
      "shippingGroupId": "sg140002",
      "commerceItemId": "ci11000001",
      "quantity": 1
    },
    {
      "amount": 0,
      "id": "r110004",
      "relationshipType": "ORDERAMOUNTREMAINING",
      "paymentGroupId": "pg140002",
      "orderId": "o120001"
    }
  ],
  "totalCommerceItemCount": 1
}}

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