Feature Pack 4Feature Pack 5Feature Pack 6

Get shopping cart

The following example shows how to get shopping cart.

Request


GET /wcs/resources/store/10101/cart/@self HTTP/1.1
Host: wcstestserver.raleigh.ibm.com
Content-Type: application/json

Response


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

{
	"adjustment": [
		{
			"amount": "-19.99000",
			"code": "Free gift with orders over $100",
			"currency": "USD",
			"description": "Free gift with orders over $100 USD",
			"descriptionLanguage": "-1",
			"displayLevel": "Order",
			"usage": "Discount"
		},
		{
			"amount": "-249.99000",
			"code": "Furniture Category Discount",
			"currency": "USD",
			"description": "Save 20% on Furniture!",
			"descriptionLanguage": "-1",
			"displayLevel": "OrderItem",
			"usage": "Discount"
		}
	],
	"buyerDistinguishedName": "uid=jsmith,o=default organization,o=root organization",
	"buyerId": "3",
	"grandTotal": "1068.93000",
	"grandTotalCurrency": "USD",
	"lastUpdateDate": "2011-11-08T14:58:08.345Z",
	"orderId": "14502",
	"orderItem": [
		{
			"UOM": "C62",
			"UsableShippingChargePolicy": [
				{
					"usableShippingChargePolicyId": "-7001",
					"usableShippingChargePolicyName": "StandardShippingChargeBySeller",
					"usableShippingChargePolicyType": "ShippingCharge"
				}
			],
			"contractId": "10008",
			"correlationGroup": "60008",
			"createDate": "2011-11-08T14:56:25.280Z",
			"currency": "USD",
			"freeGift": "false",
			"fulfillmentCenterId": "",
			"lastUpdateDate": "2011-11-08T14:58:08.053Z",
			"offerID": "11190",
			"orderItemFulfillmentStatus": "Unreleased",
			"orderItemId": "60008",
			"orderItemInventoryStatus": "Unallocated",
			"orderItemPrice": "68.97000",
			"orderItemStatus": "P",
			"partNumber": "MW-0124-E205",
			"productId": "10823",
			"productUrl": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/productview\/byId\/10823",
			"quantity": "3.0",
			"salesTax": "0.00000",
			"salesTaxCurrency": "USD",
			"shippingCharge": "0.00000",
			"shippingChargeCurrency": "USD",
			"shippingTax": "0.00000",
			"shippingTaxCurrency": "USD",
			"unitPrice": "22.99000",
			"unitQuantity": "1.0",
			"unitUom": "C62"
		},
		{
			"UOM": "C62",
			"UsableShippingChargePolicy": [
				{
					"usableShippingChargePolicyId": "-7001",
					"usableShippingChargePolicyName": "StandardShippingChargeBySeller",
					"usableShippingChargePolicyType": "ShippingCharge"
				}
			],
			"adjustment": [
				{
					"amount": "-249.99000",
					"code": "Furniture Category Discount",
					"currency": "USD",
					"description": "Save 20% on Furniture!",
					"language": "-1",
					"usage": "Discount"
				}
			],
			"contractId": "10008",
			"correlationGroup": "60009",
			"createDate": "2011-11-08T14:56:25.355Z",
			"currency": "USD",
			"freeGift": "false",
			"fulfillmentCenterId": "",
			"lastUpdateDate": "2011-11-08T14:56:25.581Z",
			"offerID": "10410",
			"orderItemFulfillmentStatus": "Unreleased",
			"orderItemId": "60009",
			"orderItemInventoryStatus": "Unallocated",
			"orderItemPrice": "1249.95000",
			"orderItemStatus": "P",
			"partNumber": "FUOF-0101",
			"productId": "10260",
			"productUrl": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/productview\/byId\/10260",
			"quantity": "5.0",
			"salesTax": "0.00000",
			"salesTaxCurrency": "USD",
			"shippingCharge": "0.00000",
			"shippingChargeCurrency": "USD",
			"shippingTax": "0.00000",
			"shippingTaxCurrency": "USD",
			"unitPrice": "249.99000",
			"unitQuantity": "1.0",
			"unitUom": "C62"
		},
		{
			"UOM": "C62",
			"UsableShippingChargePolicy": [
				{
					"usableShippingChargePolicyId": "-7001",
					"usableShippingChargePolicyName": "StandardShippingChargeBySeller",
					"usableShippingChargePolicyType": "ShippingCharge"
				}
			],
			"adjustment": [
				{
					"amount": "-19.99000",
					"code": "Free gift with orders over $100",
					"currency": "USD",
					"description": "Free gift with orders over $100 USD",
					"language": "-1",
					"usage": "Discount"
				}
			],
			"contractId": "10008",
			"correlationGroup": "60011",
			"createDate": "2011-11-08T14:58:08.335Z",
			"currency": "USD",
			"freeGift": "true",
			"fulfillmentCenterId": "",
			"lastUpdateDate": "2011-11-08T14:58:08.479Z",
			"offerID": "10636",
			"orderItemFulfillmentStatus": "Unreleased",
			"orderItemId": "60011",
			"orderItemInventoryStatus": "Unallocated",
			"orderItemPrice": "19.99000",
			"orderItemStatus": "P",
			"partNumber": "AC_1701",
			"productId": "10454",
			"productUrl": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/productview\byId\/10454",
			"quantity": "1.0",
			"salesTax": "0.00000",
			"salesTaxCurrency": "USD",
			"shippingCharge": "0.00000",
			"shippingChargeCurrency": "USD",
			"shippingTax": "0.00000",
			"shippingTaxCurrency": "USD",
			"unitPrice": "19.99000",
			"unitQuantity": "1.0",
			"unitUom": "C62"
		}
	],
	"orderStatus": "P",
	"prepareIndicator": "false",
	"recordSetComplete": "true",
	"recordSetCount": "3",
	"recordSetStartNumber": "0",
	"recordSetTotal": "3",
	"resourceId": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/cart\/@self",
	"resourceName": "cart",
	"rewardOption": [
		{
			"adjustmentCode": "Free gift with orders over $100",
			"adjustmentDescription": "Free gift with orders over $100 USD",
			"adjustmentDisplayLevel": "Order",
			"adjustmentLanguage": "-1",
			"adjustmentUsage": "Discount",
			"rewardChoiceGiftItem": [
				{
					"productId": "10454",
					"quantity": "1.0",
					"uom": "C62"
				}
			],
			"rewardOptionExternalId": "182",
			"rewardOptionId": "182",
			"rewardSpecGiftItem": [
				{
					"productId": "10454",
					"uom": "C62",
					"value": "1.0"
				}
			],
			"rewardSpecMaxQuantity": "1.0",
			"rewardSpecMaxQuantityUom": "C62"
		}
	],
	"shipAsComplete": "true",
	"storeNameIdentifier": "Madisons",
	"storeUniqueID": "10101",
	"totalAdjustment": "-269.98000",
	"totalAdjustmentCurrency": "USD",
	"totalProductPrice": "1338.91000",
	"totalProductPriceCurrency": "USD",
	"totalSalesTax": "0.00000",
	"totalSalesTaxCurrency": "USD",
	"totalShippingCharge": "0.00000",
	"totalShippingChargeCurrency": "USD",
	"totalShippingTax": "0.00000",
	"totalShippingTaxCurrency": "USD",
	"usablePaymentInfoUrl": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/cart\/@self\/usable_payment_info",
	"usableShippingInfoUrl": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/cart\/@self\/usable_shipping_info"
	"paymentInstructionUrl": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/cart\/@self\/payment_instruction",
	"shippingInfoUrl": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/cart\/@self\/shipping_info",
	"precheckoutUrl": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/cart\/@self\/precheckout",
	"checkoutUrl": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/cart\/@self\/checkout",
}