---
schema_version: "1"
id: 7a5ec7d2b6881d31e7c076281e9035178cc22a6533ce88f5b3b1271da164737b
title: getAccounts
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/derive_promo_getaccounts.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/derive_promo_getaccounts.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e9c89ded93cc1d318edbc1d917ae9c0581a46d19ae4a01203676b25829759619
description: This method returns the list of accounts valid for the target derived promotion.
---
# 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. |