find_store_view_codes
Find store view codes by filtering with optional website and store codes to discover available options for a given environment.
Instructions
Find and filter store views by website and/or store code.
Useful for discovering available store view codes when you know the
website and store codes but need to find valid store view codes.
Args:
environment_id: Adobe Commerce Cloud environment ID
website_code: Optional website code to filter by
store_code: Optional store code to filter by
timeout: Request timeout in seconds (default: 15.0)
Returns:
Dict containing:
- status: Success or error status
- environment_id: The queried environment ID
- matching_store_views: List of matching store views
- count: Number of matching store views
Example:
>>> result = find_store_view_codes(
... environment_id='7059bb71-341a-4ccb-b543-d7b2948b73e4',
... website_code='base',
... store_code='main_website_store'
... )
>>> print([sv['storeViewCode'] for sv in result['matching_store_views']])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| store_code | No | ||
| website_code | No | ||
| environment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |