---
schema_version: "1"
id: 17cf233bb9e90109d7b8067f1ad553b3998ccf21319c827624a3f484a7c459c8
title: getAccounts
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/getAccounts.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/getAccounts.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9c37e977702dc1316228c0ff6e0debbf00a2d3cd7908c36c490f000b7369b834
description: This method returns the list of accounts valid for the period defined by the input date from and the date through.
---
# getAccounts

This method returns the list of accounts valid for the period defined by the input date from and the date through.

## Input Parameters

| Name | Description |
| --- | --- |
| dateFrom | Valid account start date |
| dateThru | Valid account end date |

## Input Sample

{
    "class": "NewPromotionWizardCallable",
    "method": "getAccounts",
    "cache": true,
    "params": {
        "dateFrom": "{! promoDateFrom }",
        "dateThru": "{! promoDateThru }"
    }
}

## 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

This method returns a list of items with the following properties:

| Name | Description |
| --- | --- |
| Id | Account SFDC ID |
| Name | Account Name. |