shipping_info

This class provides RESTful services to get and update shipping information in the shopping cart.

Handler Class:

com.ibm.commerce.rest.order.handler.ShippingInfoHandler

Method Summary

HTTP MethodPathDescription
GET/store/{storeId}/cart/@self/shipping_infoGets shipping information for the shopping cart.
PUT/store/{storeId}/cart/@self/shipping_infoUpdates shipping information for the shopping cart.

Method Details

GET /store/{storeId}/cart/@self/shipping_info

Gets shipping information for the shopping cart.

Handler Method:

getShippingInfo

Secure Call Mandatory:

true

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
pageNumberPage number, starting at 1. Valid values include positive integers of 1 and above. The "pageSize" must be specified for paging to work.queryintegerfalsefalse
pageSizePage size. Used to limit the amount of data returned by a query. Valid values include positive integers of 1 and above. The "pageNumber" must be specified for paging to work.queryintegerfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
404The specified resource couldn't be found.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

cart-shipping_info

PUT /store/{storeId}/cart/@self/shipping_info

Updates shipping information for the shopping cart.

Handler Method:

updateOrderShippingInfo

Secure Call Mandatory:

true

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
bodyRequest body.bodycom.ibm.commerce.rest.order.handler.ShippingInfoHandler$UpdateShippingInfoBodyDescriptionfalseN/A
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
404The specified resource couldn't be found.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

cart-cartUpdate


Example

Request:
PUT /wcs/resources/store/10001/cart/@self/shipping_info?responseFormat=json
Body:
{
	"addressId": "15808",
	"orderId": ".",
	"orderItem": [
		{
			"addressId": "15808"
		}
	],
	"x_calculationUsage": "-1,-2,-3,-4,-5,-6,-7"
}
HTTP Status Code:

200

Response:
{
	"orderId": "25206",
	"orderItem": [
		{
			"orderItemId": "85205"
		}
	]
}

Data Type Details

cart-cartUpdate

Properties:
NameData TypeRequired
Ordercart-cartUpdate_item arrayfalse

cart-cartUpdate_item

Properties:
NameData TypeRequired
orderItemcart-cartUpdate_item.orderItem arrayfalse
userDataFieldcart-cartUpdate_item.userDataField arrayfalse
orderIdstringfalse

cart-cartUpdate_item.orderItem

Properties:
NameData TypeRequired
UOMstringfalse
userDataFieldcart-cartUpdate_item.orderItem.userDataField arrayfalse
productIdstringfalse
itemAttributescart-cartUpdate_item.orderItem.itemAttributes arrayfalse
quantitystringfalse
partNumberstringtrue
orderItemIdstringfalse
contractIdstringfalse
fulfillmentCenterIdstringfalse
fulfillmentCenterNamestringfalse
commentstringfalse

cart-cartUpdate_item.orderItem.itemAttributes

Properties:
NameData TypeRequired
attrValuestringfalse
attrNamestringtrue

cart-cartUpdate_item.orderItem.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

cart-cartUpdate_item.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

cart-OrderItemShippingInfo

Properties:
NameData TypeRequired
shipTieCodestringfalse
userDataFieldcart-OrderItemShippingInfo.userDataField arrayfalse
physicalStoreIdstringfalse
shippingAddressstringfalse
shippingCarrierAccountNumberstringfalse
shippingChargePolicyIDstringfalse
physicalStoreExternalIdstringfalse
shippingModestringfalse
shipInstructionstringfalse
requestedShipDatestringfalse
shipCarrAccntNumstringfalse
shippingChargeTypestringtrue
isExpeditedstringfalse

cart-OrderItemShippingInfo.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

cart-OrderShippingInfo

Properties:
NameData TypeRequired
userDataFieldcart-OrderShippingInfo.userDataField arrayfalse
requestedShipDatestringfalse
shipModeIdstringfalse
pysicalStoreIdstringfalse
addressIdstringfalse

cart-OrderShippingInfo.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

cart-shipping_info

Properties:
NameData TypeRequired
orderItemcart-ShippingInfoOrderItem arrayfalse
userDataFieldcart-shipping_info.userDataField arrayfalse
shipAsCompletestringfalse
orderIdstringfalse
orderShippingInfostringfalse

cart-shipping_info.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

cart-ShippingAddress

Properties:
NameData TypeRequired
middleNamestringfalse
lastNamestringfalse
organizationUnitNamestringfalse
primarystringfalse
personTitlestringfalse
phone1stringtrue
phone2stringtrue
mobilePhone1stringtrue
addressLinestring arrayfalse
phone1Publishstringfalse
nickNamestringtrue
addressTypestringfalse
stateOrProvinceNamestringfalse
mobilePhone1Countrystringtrue
statestringfalse
email1stringtrue
email2stringtrue
countrystringfalse
attributescart-ShippingAddress.attributes arrayfalse
languagestringfalse
postalCodestringfalse
internalOfficeAddressstringfalse
firstNamestringfalse
phone1Typestringfalse
phone2Typestringfalse
organizationNamestringfalse
personIdentifiercom.ibm.commerce.foundation.common.datatypes.PersonIdentifierTypefalse
phone2Publishstringfalse
citystringfalse
bestCallingTimestringfalse
zipCodestringfalse
addressIdstringfalse
fax1stringtrue
fax2stringtrue
geographicalTaxCodestringfalse
businessTitlestringfalse
organizationIdentifiercom.ibm.commerce.foundation.common.datatypes.OrganizationIdentifierTypefalse
geographicalShippingCodestringfalse

cart-ShippingAddress.attributes

Properties:
NameData TypeRequired
attrValuestringfalse
attrKeystringtrue

cart-ShippingInfoOrderItem

Properties:
NameData TypeRequired
userDataFieldcart-ShippingInfoOrderItem.userDataField arrayfalse
orderItemIdstringfalse
orderItemShippingInfostringfalse

cart-ShippingInfoOrderItem.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

cart-ShippingMode

Properties:
NameData TypeRequired
shipModeLanguagestringfalse
trackingURLstringfalse
languagestringfalse
carrierstringfalse
shipModeIdstringfalse
descriptionstringfalse
storeIdstringfalse
shipModeCodestringfalse
shipModeDescriptionstringfalse

com.ibm.commerce.foundation.common.datatypes.OrganizationIdentifierType

Properties:
NameData TypeRequired
uniqueIDstringfalse
distinguishedNamestringfalse

com.ibm.commerce.foundation.common.datatypes.PersonIdentifierType

Properties:
NameData TypeRequired
externalIdentifiercom.ibm.commerce.foundation.common.datatypes.PersonIdentifierType.externalIdentifierfalse
uniqueIDstringfalse
distinguishedNamestringfalse

com.ibm.commerce.foundation.common.datatypes.PersonIdentifierType.externalIdentifier

Properties:
NameData TypeRequired
identifierstringfalse

com.ibm.commerce.rest.order.handler.ShippingInfoHandler$UpdateShippingInfoBodyDescription

Order update shipping information.

Properties:
NameData TypeRequired
orderItemcom.ibm.commerce.rest.order.handler.ShippingInfoHandler$UpdateShippingInfoBodyDescription$OrderItemBodyDescription arraytrue
shipAsCompletestringtrue
shipModeIdstringtrue
addressIdstringfalse
x_calculationUsagestringtrue

com.ibm.commerce.rest.order.handler.ShippingInfoHandler$UpdateShippingInfoBodyDescription$OrderItemBodyDescription

Order item update shipping information.

Properties:
NameData TypeRequired
shipInstructionsstringfalse
physicalStoreIdstringfalse
shipModeIdstringfalse
orderItemIdstringtrue
addressIdstringfalse