Feature Pack 7

Apply coupon to the shopping cart.

The following example shows how to apply coupon to the shopping cart.

Request


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

{
couponId:"100000000501"
}

Response


HTTP/1.1 201 Created
Content-Type: application/json

{
	"couponId": "100000000501",
	"orderId": "11001"
}