
Get available coupons for the current shopper.
The following example shows how to get available coupons for the current shopper.
Request
GET /wcs/resources/store/10101/coupon/@self HTTP/1.1
Host: testserver.mycompany.com
Content-Type: application/json
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"Coupon": [
{
"couponDescription": [
{
"language": "-1",
"longDescription": null,
"shortDescription": null,
"userData": null
}
],
"couponId": "100000000501",
"effectiveDateTime": "2013-11-01T08:14:25.814Z",
"expirationDateTime": "2013-11-02T08:14:25.814Z",
"promotion": {
"calculationCodeIdentifier": null,
"externalIdentifier": {
"name": "testCoupon-10000151",
"revision": "0",
"storeIdentifier": null,
"version": "1"
},
"uniqueID": "10000151"
},
"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10001\/coupon\/100000000501",
"status": "0",
"userData": {
"userDataField": [
{
"key": "promotionAdministrativeDescription",
"value": "testCoupon"
},
{
"key": "promotionStatus",
"value": "1"
}
]
}
},
{
"couponDescription": [
{
"language": "-1",
"longDescription": null,
"shortDescription": null,
"userData": null
}
],
"couponId": "100000001001",
"effectiveDateTime": "2013-11-08T06:58:58.460Z",
"expirationDateTime": "2013-11-09T06:58:58.460Z",
"promotion": {
"calculationCodeIdentifier": null,
"externalIdentifier": {
"name": "testCoupon-10000151",
"revision": "0",
"storeIdentifier": null,
"version": "1"
},
"uniqueID": "10000151"
},
"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10001\/coupon\/100000001001",
"status": "0",
"userData": {
"userDataField": [
{
"key": "promotionAdministrativeDescription",
"value": "testCoupon"
},
{
"key": "promotionStatus",
"value": "1"
}
]
}
}
],
"recordSetComplete": "true",
"recordSetCount": "2",
"recordSetStartNumber": "0",
"recordSetTotal": "2",
"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10001\/coupon\/@self",
"resourceName": "coupon"
}