{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adyen/main/json-schema/adyen-get-stores-under-account-response-schema.json",
  "title": "GetStoresUnderAccountResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adyen-getstoresunderaccount-api-openapi.yml#/components/schemas/GetStoresUnderAccountResponse",
  "properties": {
    "stores": {
      "description": "Array that returns a list of all stores for the specified merchant account, or for all merchant accounts under the company account.",
      "items": {
        "$ref": "#/$defs/Store"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "Address": {
      "properties": {
        "city": {
          "type": "string"
        },
        "countryCode": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "stateOrProvince": {
          "type": "string"
        },
        "streetAddress": {
          "type": "string"
        },
        "streetAddress2": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "Store": {
      "properties": {
        "address": {
          "description": "The address of the store.",
          "$ref": "#/$defs/Address"
        },
        "description": {
          "description": "The description of the store.",
          "type": "string"
        },
        "inStoreTerminals": {
          "description": "The list of terminals assigned to the store.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "merchantAccountCode": {
          "description": "The code of the merchant account.",
          "type": "string"
        },
        "status": {
          "description": "The status of the store:\n\n- `PreActive`: the store has been created, but not yet activated. \n\n- `Active`: the store has been activated. This means you can process payments for this store. \n\n- `Inactive`: the store is currently not active. \n\n- `InactiveWithModifications`: the store is currently not active, but payment modifications such as refunds are possible. \n\n- `Closed`: the store has been closed. ",
          "type": "string"
        },
        "store": {
          "description": "The code of the store.",
          "type": "string"
        }
      },
      "required": [
        "store"
      ],
      "type": "object"
    }
  }
}