# createSite

## Overview

Creates a new site (warehouse, office, etc.) under a company with address and timezone details. The site is created in ACTIVE status.

## Modules Commands Used

- [organization] CreateSite

## Exception Handling

| Error Code | Description |
| --- | --- |
| ORGANIZATION_INVALID_NAME | Site name is empty or missing |
| ORGANIZATION_INVALID_TYPE | Site type is not a valid option |
| ORGANIZATION_COMPANY_NOT_FOUND | The specified company does not exist |
| ORGANIZATION_COMPANY_INACTIVE | The specified company is not in active status |
| ORGANIZATION_DUPLICATE_NAME | A site with this name already exists in the company |
| ORGANIZATION_MISSING_REQUIRED_FIELDS | Required address fields (street, city, postalCode, country) are missing |
| ORGANIZATION_INVALID_COUNTRY | Country code is not a valid ISO 3166-1 alpha-2 code |
| ORGANIZATION_INVALID_TIMEZONE | Timezone is not a valid IANA timezone identifier |
