Feature Pack 7

Get assigned coupon for the shopping cart.

The following example shows how to get assigned coupon for the shopping cart.

Request


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

Response


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

{
	"couponCode": [
		{
			"description": [
				{
					"language": "-1",
					"longDescription": null,
					"shortDescription": null,
					"userData": null
				}
			],
			"effectiveDateTime": "2013-10-18T05:46:42.498Z",
			"expirationDateTime": "2013-10-19T05:46:42.498Z",
			"promotion": {
				"calculationCodeIdentifier": null,
				"externalIdentifier": {
					"name": "testCoupon-10000151",
					"revision": "0",
					"storeIdentifier": null,
					"version": "1"
				},
				"uniqueID": "10000151"
			},
			"status": "2"
		}
	],
	"orderId": "11001",
	"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10001\/cart\/@self\/assigned_coupon",
	"resourceName": "cart"
}