The GetShippingGroups actor-chain displays all of the shipping groups that are available.
Parameter | Description |
|---|---|
| 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 |
| If set to |
| 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"
}]}
}
