---
title: "Create a Company"
method: POST
path: "/2024-11/companies"
tags: ["Companies"]
---

# Create a Company

`POST /2024-11/companies`

Create a new company in specific organization.

Required authorization scope: `enterprise.company:write`

## Request body

- CompanyCreate
  - `organization_id` Id, required — unresolved $ref
  - `name` Name, required — unresolved $ref
  - `external_id` ExternalId, required — unresolved $ref
  - `country_alpha2` CountryAlpha2, required — unresolved $ref
  - `owner` object, required — Company Owner
    - `email` string, (?i-mx:\A(?:[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])\z), required — Email address
    - `first_name` string, required — First name of the company owner
    - `last_name` string, required — Last name of the company owner
    - `mobile_phone` string, nullable — Optional phone number of the company owner.
  - `address` object, required — Company address.
    - `line_1` string, required — First line of the street address
    - `line_2` string, nullable — Second line of the street address
    - `state` string, nullable — State, Province, or other top-level administrative region. Mandatory for these countries: AU, CA, CN, ID, MX, MY, TH, US, VN. Use abbreviations for naming the state if possible (2 letters for the US/CA, 2 or 3 letters for AU). For countries using provinces, use the full province names.
    - `city` string, required — City or Suburb
    - `postal_code` string, required — Postal code. Leave it null or 0 if the country does not have postal codes. Mandatory for these countries: AD, AF, AI, AL, AM, AQ, AR, AS, AT, AU, AX, AZ, BA, BB, BD, BE, BG, BL, BM, BN, BQ, BR, BT, BV, BY, CA, CC, CH, CL, CN, CO, CR, CU, CV, CX, CY, CZ, DE, DK, DO, DZ, EC, EE, EG, EH, ES, ET, FI, FK, FM, FO, FR, GA, GB, GE, GF, GG, GI, GL, GP, GR, GS, GT, GU, GW, HM, HN, HR, HT, HU, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JO, JP, KG, KH, KR, KW, KY, KZ, LA, LB, LI, LK, LR, LS, LT, LU, LV, MA, MC, MD, ME, MF, MG, MH, MK, MM, MN, MP, MQ, MT, MV, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NZ, OM, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PW, PY, RE, RO, RS, RU, SD, SE, SG, SH, SI, SJ, SK, SM, SN, SS, SV, SX, SZ, TC, TD, TH, TJ, TM, TN, TR, TW, UA, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, WF, WS, YT, ZA, ZM.
    - `contact_name` string, nullable — The full name of a person at the address. Owner name will be used if not provided.
    - `contact_phone` string, required — Phone number used to reach the person in contact_name (may or may not be SMS-ready).

## Response `201`

company successfully created with duplicated email

- CompanySingleAfterCreate — Account Detail
  - `company` CompanyAfterCreate
    - `name` Name — unresolved $ref
    - `country_alpha2` CountryAlpha2 — unresolved $ref
    - `easyship_company_id` EasyshipCompanyId — unresolved $ref
    - `external_id` ExternalId — unresolved $ref
    - `created_at` CreatedAt — unresolved $ref
    - `updated_at` UpdatedAt — unresolved $ref
    - `owner` CompanyOwner — Company Owner
      - `email` string, (?i-mx:\A(?:[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])\z) — Email address
      - `first_name` string — First name of the company owner
      - `last_name` string — Last name of the company owner
      - `mobile_phone` string, nullable — Optional phone number of the company owner.
    - `organization` Organization
      - `id` string, uuid — Organization ID
      - `name` string — Organization name
      - `updated_at` string, datetime
      - `created_at` string, datetime
    - `address` union
      - object, nullable
      - object
        - `id` string, uuid — Address ID
        - `line_1` string — First line of the street address
        - `line_2` string, nullable — Second line of the street address
        - `state` string, nullable — State, Province, or other top-level administrative region. Mandatory for these countries: AU, CA, CN, ID, MX, MY, TH, US, VN. Use abbreviations for naming the state if possible (2 letters for the US/CA, 2 or 3 letters for AU). For countries using provinces, use the full province names.
        - `city` string — City or Suburb
        - `postal_code` string — Postal code. Leave it null or 0 if the country does not have postal codes. Mandatory for these countries: AD, AF, AI, AL, AM, AQ, AR, AS, AT, AU, AX, AZ, BA, BB, BD, BE, BG, BL, BM, BN, BQ, BR, BT, BV, BY, CA, CC, CH, CL, CN, CO, CR, CU, CV, CX, CY, CZ, DE, DK, DO, DZ, EC, EE, EG, EH, ES, ET, FI, FK, FM, FO, FR, GA, GB, GE, GF, GG, GI, GL, GP, GR, GS, GT, GU, GW, HM, HN, HR, HT, HU, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JO, JP, KG, KH, KR, KW, KY, KZ, LA, LB, LI, LK, LR, LS, LT, LU, LV, MA, MC, MD, ME, MF, MG, MH, MK, MM, MN, MP, MQ, MT, MV, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NZ, OM, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PW, PY, RE, RO, RS, RU, SD, SE, SG, SH, SI, SJ, SK, SM, SN, SS, SV, SX, SZ, TC, TD, TH, TJ, TM, TN, TR, TW, UA, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, WF, WS, YT, ZA, ZM.
        - `contact_name` string, nullable — The full name of a person at the address. Owner name will be used if not provided.
        - `contact_phone` string — Phone number used to reach the person in contact_name (may or may not be SMS-ready).
  - `meta` Meta
    - `request_id` string — An unique ID represent the request.

## Other responses

- `404` — organization not found
- `422` — invalid params

---

[API](https://skmtc.net/easyship/apis/easyship-public-api.md) · [All operations](https://skmtc.net/easyship/apis/easyship-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/easyship/easyship-public-api/revisions/71d737a5fcbf/schema)
