Finds the promotion by promotion name.
The following example shows how to finds the promotion by promotion name.
Request
GET /wcs/resources/store/10101/promotion/findByName/Discount for Repeat Customers HTTP/1.1
Host: testserver.mycompany.com
Content-Type: application/json
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"Promotion": [
{
"Description": [
{
"longDescription": "Use US Regular shipping and pay only $5 for shipping for your entire order.",
"shortDescription": "Flat $5 US-Regular shipping!"
}
],
"administrativeName": "Flat Shipping",
"description": [
{
"language": "-1",
"longDescription": "Use US Regular shipping and pay only $5 for shipping for your entire order.",
"shortDescription": "Flat $5 US-Regular shipping!",
"userData": {
"userDataField": [
{
"key": "custom1",
"value": "\""
},
{
"key": "custom2",
"value": "\""
},
{
"key": "custom3",
"value": "\""
},
{
"key": "custom4",
"value": "\""
},
{
"key": "custom5",
"value": "\""
},
{
"key": "admin",
"value": "Shipping discount"
}
]
}
}
],
"promotionId": "10000006",
"promotionName": "Flat Shipping",
"promotionType": "OrderLevelFixedShippingDiscount",
"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10001\/promotion10000006",
"schdule": {
"dailyEndTime": "15:59:59.000",
"dailyStartTime": "16:00:00.000",
"endDate": "2999-12-30T16:00:00.000Z",
"startDate": "2003-12-31T16:00:00.000Z",
"weekDays": [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
]
},
"status": "Active"
}
],
"recordSetComplete": "true",
"recordSetCount": "1",
"recordSetStartNumber": "0",
"recordSetTotal": "1",
"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10001\/promotion",
"resourceName": "promotion"
}