post https://app.fracttal.com/api/warehouses/
This EndPoint can be used to create a warehouse.
Input parameters
| Parameter | Type | Required | Description | 
|---|---|---|---|
| code | Text | Yes | Warehouse code. | 
| description | Text | Yes | Description of the warehouse. | 
| address | Text | Optional | Warehouse address | 
| state | Text | Optional | State/Region | 
| city | Text | Optional | City | 
| country | Text | Optional | Country | 
| zip_code | Text | Optional | Zip Code | 
| code_parent_location | Text | Optional | Code of the location to which the warehouse is to be restricted | 
| external_integration | Boolean | Optional | True if it is an integrated store, false otherwise (Default false) | 
| active | Boolean | Optional | Active or Inactive (Default true) | 
| visible_to_all | Boolean | Optional | True if the store will be visible to all, false otherwise (Default false) | 
Output parameters
| Parameter | Type | Description | 
|---|---|---|
| code | Text | Warehouse code | 
| description | Text | Description | 
| address | Text | Address | 
| state | Text | State | 
| country | Text | Country | 
| city | Text | City | 
| zip_code | Text | Zip Code | 
| location_description | Text | Located in or is part of | 
| external_integration | Boolean | True if it is an integration store, false otherwise | 
| active | Boolean | True if the store is active, false otherwise | 
| visible_to_all | Boolean | True if it is a warehouse is visible to all people regardless of location, false otherwise | 
| allow_negative_stock | Boolean | True if negative stock is permitted, false otherwise | 
| material_request_approval | Boolean | True if material requisitions can be approved, false otherwise | 
Example:
Request: (POST)https://app.fracttal.com/api/warehouses
{
  "code": "FTTL-COP",
  "description": "Almacén Fracttal Colombia SAS",
  "address": "Cra 43 N 25 a 129",
  "state": "Antioquia",
  "country": "Colombia",
  "city": "Medellin",
  "zip_code": "050021",
  "external_integration": false,
  "active": true,
  "visible_to_all": false
}{
    "success": true,
    "message": "200",
    "data": {
        "description": "Almacén Fracttal Colombia SAS",
        "code": "FTTL-COP",
        "address": "Cra 43 N 25 a 129",
        "state": "Antioquia",
        "country": "Colombia",
        "city": "Medellin",
        "zip_code": "050021",
        "location_description": "// ",
        "external_integration": false,
        "active": true,
        "visible_to_all": false,
        "allow_negative_stock": false,
        "material_request_approval": false,
        "prefix_po": null,
        "suffix_po": null,
        "folio_po": 1,
        "prefix": null,
        "folio": 1,
        "suffix": null
    },
    "total": 1
}Test It
