The GetShippingGroups actor-chain displays all of the shipping groups that are available.

Parameter

Description

createOneInfoPerUnit

A Boolean parameter that controls if one Commerce Item Shipping Info (CISI) is created for each item unit. For example, if you add an item with a quantity of five, you will end up with five CommerceItemShippingInfos, each with a quantity of one.

init

If set to true, clears shippingInfos and shippingGroups and reinitializes these values in the /atg/commerce/order/purchase/
ShippingGroupDroplet
.

shippingGroupTypes

Identifies the shipping group types.

Display Shipping Groups Example
curl -L -v -b customer_cookies.txt -H "Content-Type: application/json" -d "{
\"createOneInfoPerUnit\":\"true\", \"init\":\"true\", \"shippingGroupTypes\":
\"hardgoodShippingGroup\" }" "http://localhost:8280/rest/model/
atg/commerce/order/purchase/ShippingGroupActor/getShippingGroups"

The server response may be similar to the following:

{
  "shippingGroups": {"Test": {
    "specialInstructions": {},
    "priceInfo": {
      "amount": 0,
      "currencyCode": null,
      "amountIsFinal": false,
      "discounted": false
    },
    "description": "sg140012",
    "actualShipDate": null,
    "submittedDate": null,
    "state": 0,
    "locationId": null,
    "shipOnDate": null,
    "shippingMethod": "hardgoodShippingGroup",
    "shippingAddress": {
      "lastName": "Smith",
      "postalCode": "02046",
      "phoneNumber": "6176378687",
      "email": "jsmith@example.com",
      "state": "MA",
      "address1": "1 Main St",
      "address2": null
      "firstName": "John",
      "city": "Cambridge",
      "country": "USA"
    },
    "stateDetail": null
  }},
  "shippingInfos": {"ci11000002": [{
    "handlingInstructionInfos": [],
    "commerceItemId": "ci11000002"
  }]}
}

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