Feature Pack 7

Get shopping cart

The following example shows how to get shopping cart.

Request


GET /wcs/resources/store/10101/cart/@self HTTP/1.1
Host: testserver.mycompany.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",
			"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:\/\/testserver.mycompany.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",
			"usableShippingChargePolicy": [
				{
					"name": "StandardShippingChargeBySeller",
					"type": "ShippingCharge",
					"uniqueID": "-7001"	
				}
			],
			"xitem_field1": "3",
			"xitem_field2": "4.0"
		},
		{
			"UOM": "C62",
			"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:\/\/testserver.mycompany.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",
			"usableShippingChargePolicy": [
				{
					"name": "StandardShippingChargeBySeller",
					"type": "ShippingCharge",
					"uniqueID": "-7001"
				}
			],
			"xitem_field1": "1",
			"xitem_field2": "2.0"
		},
		{
			"UOM": "C62",
			"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:\/\/testserver.mycompany.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",
			"usableShippingChargePolicy": [
				{
					"name": "StandardShippingChargeBySeller",
					"type": "ShippingCharge",
					"uniqueID": "-7001"
				}
			]
		}
	],
	"orderStatus": "P",
	"prepareIndicator": "false",
	"recordSetComplete": "true",
	"recordSetCount": "3",
	"recordSetStartNumber": "0",
	"recordSetTotal": "3",
	"resourceId": "https:\/\/testserver.mycompany.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:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/cart\/@self\/usable_payment_info",
	"usableShippingInfoUrl": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/cart\/@self\/usable_shipping_info"
	"paymentInstructionUrl": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/cart\/@self\/payment_instruction",
	"shippingInfoUrl": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/cart\/@self\/shipping_info",
	"precheckoutUrl": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/cart\/@self\/precheckout",
	"checkoutUrl": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/cart\/@self\/checkout",
}