
Apply promotion code to the shopping cart.
The following example shows how to apply promotion code to the shopping cart.
Request
POST /wcs/resources/store/10101/cart/@self/assigned_promotion_code HTTP/1.1
Host: testserver.mycompany.com
Content-Type: application/json
{
promoCode:"12345"
}
Response
HTTP/1.1 201 Created
Content-Type: application/json
{
"orderId": "11001",
"promoCode": "12345"
}