---
displayed_sidebar: homepage
---

import ParameterTypes from "@site/src/components/ParameterTypes"

# AdminPostStockLocationsReq

## Properties

<ParameterTypes parameters={[
  {
    "name": "address",
    "type": "[StockLocationAddress](medusa.StockLocationAddress.mdx)",
    "description": "A new stock location address to create and associate with the stock location. Only required if `address\\_id` is not provided.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": [
      {
        "name": "address_1",
        "type": "`string`",
        "description": "Stock location address",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "address_2",
        "type": "`string`",
        "description": "Stock location address' complement",
        "optional": true,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "city",
        "type": "`string`",
        "description": "Stock location address' city",
        "optional": true,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "company",
        "type": "`string`",
        "description": "Stock location address' company",
        "optional": true,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "country_code",
        "type": "`string`",
        "description": "The two character ISO code for the country.",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "phone",
        "type": "`string`",
        "description": "Stock location address' phone number",
        "optional": true,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "postal_code",
        "type": "`string`",
        "description": "Stock location address' postal code",
        "optional": true,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "province",
        "type": "`string`",
        "description": "Stock location address' province",
        "optional": true,
        "defaultValue": "",
        "expandable": false,
        "children": []
      }
    ]
  },
  {
    "name": "address_id",
    "type": "`string`",
    "description": "the ID of an existing stock location address to associate with the stock location. Only required if `address` is not provided.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "metadata",
    "type": "`Record<string, unknown>`",
    "description": "An optional key-value map with additional details",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "name",
    "type": "`string`",
    "description": "the name of the stock location",
    "optional": false,
    "defaultValue": "",
    "expandable": false,
    "children": []
  }
]} expandUrl="https://docs.medusajs.com/development/entities/repositories#retrieving-a-list-of-records"/>
