---
title: "Create a new facility for an account"
method: POST
path: "/accounts/public/{accountId}/facilities"
tags: ["Customers"]
---

# Create a new facility for an account

`POST /accounts/public/{accountId}/facilities`

## Request

- Base URL: `https://api.paperlessparts.com/v1`
- URL: `https://api.paperlessparts.com/v1/accounts/public/{accountId}/facilities`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/paperlessparts/apis/paperless-parts-api/docs/accounts/public/:accountId/facilities/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `accountId` integer, required: The account id

## Request body

- object
  - `name` string, nullable: Name of Facility
  - `attention` string, nullable: The person or department to ship packages to at the facility
  - `address` object, nullable: The address of the facility.
    - `address1` string: The street address
    - `address2` string, nullable: Unit
    - `city` string: The city of the address
    - `country` string: The three character country abbreviation
    - `postal_code` string: The postal code for the address
    - `state` string: The two character state abbreviation
    - `erp_code` string: The unique identifier for this address record in the ERP
  - `salesperson` object, nullable: the contacts salesperson
    - `email` string: The salespersons email address. Must correspond to an active team member in your Paperless Parts account.

## Response `201`

Successful response

- Facility, nullable
  - `account_id` integer
  - `address` Address
    - `id` integer
    - `address1` string: (Required)
    - `address2` string, nullable: (Required)
    - `city` string: (Required)
    - `state` string: (Required) State/Province must be specified as standard postal abbreviation
    - `postal_code` string: (Required) US postal codes may optionally contain 4-digit extension, e.g., `'02114-1234'`
    - `country` string: (Required) Country must be ISO 3166-1 alpha-3 code. Currently allowed values are `'USA'`, `'CAN'`.
    - `erp_code` string: The unique identifier for this address record in the ERP
  - `attention` string
  - `id` integer
  - `name` string
  - `salesperson` SalesPerson
    - `uuid` string, uuid
    - `first_name` string
    - `last_name` string
    - `email` string, email
    - `erp_code` string

---

[API](https://skmtc.dev/paperlessparts/apis/paperless-parts-api.md) - [All operations](https://skmtc.dev/paperlessparts/apis/paperless-parts-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paperlessparts/apis/paperless-parts-api/revisions/3eb132ead1fe?raw)
