Through this EndPoint a warehouse can be created.
EndPoint
Method POST
URL https://app.fracttal.com/api/warehouses
Input Parameters
Parameter | Type of field | Required | Description |
code | text | Yes | Warehouse code. |
description | text | Yes | Warehouse description |
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_location | Text | Optional | Code of the location to which the warehouse will be limited |
external_integration | Boolean | Optional | True if it is an integrated store, false otherwise (By default false) |
active | Boolean | Optional | Active or Inactive (By default true) |
visible_to_all | Boolean | Optional | True if the warehouse will be visible to everyone, false otherwise (By default false) |
Output Parameters
Parameter | Type of field | 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 or is part of |
external_integration | Boolean | True if it is an integration warehouse, false otherwise |
active | Boolean | True if the warehouse is active, false otherwise |
visible_to_all | Boolean | True if it is a warehouse that is visible to all people regardless of their location, false otherwise |
allow_negative_stock | Boolean | True if it allows negative stock, false otherwise |
material_request_approval | Boolean | True if it allows material requisitions to be approved, false otherwise |
Example:
Example Petition: https://app.fracttal.com/api/warehouses
Body:
{
"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
}
Response:
{
"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
}