Feature Pack 5Feature Pack 6Feature Pack 4

Get usable shipping information for the cart

The following example shows how to get usable shipping information for the cart.

Request


GET /wcs/resources/store/10101/cart/@self/usable_shipping_info HTTP/1.1
Host: testserver.mycompany.com
Content-Type: application/json

Response


HTTP/1.1 200 OK
Content-Type: application/json

{
	"orderId": "21503",
	"orderItem": [
		{
			"orderItemId": "130007",
			"usableShippingAddress": [
				{
					"addressId": "20922",
					"nickName": "Mary"
				},
				{
					"addressId": "20935",
					"nickName": "jsmith2"
				}
			],
			"usableShippingChargePolicy": [
				{
					"name": "StandardShippingChargeBySeller",
					"type": "ShippingCharge",
					"uniqueID": "-7001"
				}
			],
			"usableShippingMode": [
				{
					"carrier": "International Carrier",
					"description": "International Priority",
					"language": "-1",
					"shipModeCode": "International Priority",
					"shipModeId": "10154"
				},
				{
					"carrier": "International Carrier",
					"description": "International Regular",
					"language": "-1",
					"shipModeCode": "International Regular",
					"shipModeId": "10155"
				},
				{
					"description": "Pickup in store",
					"language": "-1",
					"shipModeCode": "PickupInStore",
					"shipModeId": "10101"
				},
				{
					"carrier": "XYZ Carrier",
					"description": "US - 2-Day Express Delivery",
					"language": "-1",
					"shipModeCode": "US - 2-Day Express Delivery",
					"shipModeId": "10153"
				},
				{
					"carrier": "XYZ Carrier",
					"description": "US - Overnight Delivery",
					"language": "-1",
					"shipModeCode": "US - Overnight Delivery",
					"shipModeId": "10152"
				},
				{
					"carrier": "XYZ Carrier",
					"description": "US - Regular Delivery",
					"language": "-1",
					"shipModeCode": "US Regular Delivery",
					"shipModeId": "10151"
				}
			]
		},
		{
			"orderItemId": "130008",
			"usableShippingAddress": [
				{
					"addressId": "20922",
					"nickName": "Mary"
				},
				{
					"addressId": "20935",
					"nickName": "jsmith2"
				}
			],
			"usableShippingChargePolicy": [
				{
					"name": "StandardShippingChargeBySeller",
					"type": "ShippingCharge",
					"uniqueID": "-7001"
				}
			],
			"usableShippingMode": [
				{
					"carrier": "International Carrier",
					"description": "International Priority",
					"language": "-1",
					"shipModeCode": "International Priority",
					"shipModeId": "10154"
				},
				{
					"carrier": "International Carrier",
					"description": "International Regular",
					"language": "-1",
					"shipModeCode": "International Regular",
					"shipModeId": "10155"
				},
				{
					"description": "Pickup in store",
					"language": "-1",
					"shipModeCode": "PickupInStore",
					"shipModeId": "10101"
				},
				{
					"carrier": "XYZ Carrier",
					"description": "US - 2-Day Express Delivery",
					"language": "-1",
					"shipModeCode": "US - 2-Day Express Delivery",
					"shipModeId": "10153"
				},
				{
					"carrier": "XYZ Carrier",
					"description": "US - Overnight Delivery",
					"language": "-1",
					"shipModeCode": "US - Overnight Delivery",
					"shipModeId": "10152"
				},
				{
					"carrier": "XYZ Carrier",
					"description": "US - Regular Delivery",
					"language": "-1",
					"shipModeCode": "US Regular Delivery",
					"shipModeId": "10151"
				}
			]
		},
		{
			"orderItemId": "130009",
			"usableShippingAddress": [
				{
					"addressId": "20922",
					"nickName": "Mary"
				},
				{
					"addressId": "20935",
					"nickName": "jsmith2"
				}
			],
			"usableShippingChargePolicy": [
				{
					"name": "StandardShippingChargeBySeller",
					"type": "ShippingCharge",
					"uniqueID": "-7001"
				}
			],
			"usableShippingMode": [
				{
					"carrier": "International Carrier",
					"description": "International Priority",
					"language": "-1",
					"shipModeCode": "International Priority",
					"shipModeId": "10154"
				},
				{
					"carrier": "International Carrier",
					"description": "International Regular",
					"language": "-1",
					"shipModeCode": "International Regular",
					"shipModeId": "10155"
				},
				{
					"description": "Pickup in store",
					"language": "-1",
					"shipModeCode": "PickupInStore",
					"shipModeId": "10101"
				},
				{
					"carrier": "XYZ Carrier",
					"description": "US - 2-Day Express Delivery",
					"language": "-1",
					"shipModeCode": "US - 2-Day Express Delivery",
					"shipModeId": "10153"
				},
				{
					"carrier": "XYZ Carrier",
					"description": "US - Overnight Delivery",
					"language": "-1",
					"shipModeCode": "US - Overnight Delivery",
					"shipModeId": "10152"
				},
				{
					"carrier": "XYZ Carrier",
					"description": "US - Regular Delivery",
					"language": "-1",
					"shipModeCode": "US Regular Delivery",
					"shipModeId": "10151"
				}
			]
		}
	],
	"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/cart\/@self\/usable_shipping_info",
	"resourceName": "cart",
	"usableShippingAddress": [
		{
			"addressId": "20922",
			"nickName": "Mary"
		},
		{
			"addressId": "20935",
			"nickName": "jsmith2"
		}
	]
}