> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bigcapital.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a warehouse



## OpenAPI

````yaml api-reference/openapi.json post /api/warehouses
openapi: 3.0.0
info:
  title: Bigcapital
  description: Financial accounting software
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /api/warehouses:
    post:
      tags:
        - Warehouses
      summary: Create a warehouse
      operationId: WarehousesController_createWarehouse
      parameters:
        - name: Authorization
          in: header
          description: >-
            Value must be 'Bearer <token>' where <token> is an API key prefixed
            with 'bc_' or a JWT token.
          required: true
          schema:
            type: string
            example: Bearer bc_1234567890abcdef
        - name: organization-id
          in: header
          description: >-
            Required if Authorization is a JWT token. The organization ID to
            operate within.
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWarehouseDto'
      responses:
        '201':
          description: ''
components:
  schemas:
    CreateWarehouseDto:
      type: object
      properties:
        name:
          type: string
          description: The name of the warehouse
        primary:
          type: boolean
          description: Whether the warehouse is primary
        code:
          type: string
          description: The code of the warehouse
        address:
          type: string
          description: The address of the warehouse
        city:
          type: string
          description: The city of the warehouse
        country:
          type: string
          description: The country of the warehouse
        phoneNumber:
          type: string
          description: The phone number of the warehouse
        email:
          type: string
          description: The email of the warehouse
        website:
          type: string
          description: The website of the warehouse
      required:
        - name
        - primary
        - code
        - address
        - city
        - country
        - phoneNumber
        - email
        - website

````