getAccounts

This method returns the list of accounts valid for the target derived promotion.

Input Parameters

Name Type Required Description
promotionId String YES ID of the promotion.
inStoreDateFrom String NO New start date of the promotion. If not provided, then the source promotion dates are considered.

Input Sample

"source": {
    "class": "DerivePromotionWizardCallable",
    "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.