getAccounts
This method returns the list of accounts valid for the target promotion. Target promotion
timeframe is calculated by the difference in days between the original promotion date and the new
date.
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
promotionId | String | YES | ID of the promotion. |
inStoreDateFrom | String | YES | New start date of the promotion. |
Input Sample
"source": {
"class": "CopyPromotionWizardCallable",
"method": "getAccounts",
"cache": true,
"params": {
"promotionId": "{! promotionId }",
"inStoreDateFrom": "{! promoDateFrom }"
}
}
Response Sample
[
{
"Name": "*Kroger Atlanta",
"Id": "0012X000023GAClQAO"
},
{
"Name": "*Kroger Store #201",
"Id": "0012X000023GACxQAO"
},
{
"Name": "*Safeway South-East",
"Id": "0012X000023GAC5QAO"
},
{
"Name": "+Kroger Detroit",
"Id": "0012X000023GACWQA4"
}
]
Response Properties
Name | Description |
---|---|
Id | ID of the Account. |
Name | Name of the Account. |