API Endpoints
Fracttal →

Associate spare parts to a warehouse

This EndPoint can be used to associate an existing Fracttal spare part to a warehouse.

Input parameters

ParámetroTipoRequeridoDescripción
codeTextYesSpare part code
code_warehouseTextYesCode of the warehouse to which the spare part will be assigned. You can send the code or the id of the warehouse. It is not necessary both
id_warehouseTextYesId of the warehouse to which the spare part will be assigned. You can send the code or the id of the warehouse. It is not necessary both
stockRealOptionalExistence of the spare part within the warehouse. Applies only to integrated warehouses (Default value is 0).
unit_cost_stockRealOptionalUnit cost of the spare part within the warehouse. Applies only to integrated warehouses (Default value is 0).
max_stock_levelIntegerOptionalMaximum stock of the spare part in the warehouse. (This value is only informative to generate alerts within Fracttal).
min_stock_levelIntegerOptionalMinimum stock of the spare part in the warehouse. Default is 0. (This value is only informative to generate alerts within Fracttal).
locationTextOptionalLocation
order_quantityIntegerOptionalQuantity to order

Output parameters

ParameterTypeDescription
codeTextSpare part code
descriptionTextDescription of spare part
field_1TextSpare part name
field_2TextPart number
field_3TextManufacturer
field_4TextModel
field_5TextOther 1
field_6TextOther 2
warehousesArray JsonArray with the information of the warehouses with which the spare part is associated

Example:

Request: (POST) https://app.fracttal.com/api/inventories_associate_warehouse

{
  "code": "0001010000102283",
  "code_warehouse": "FTTL-COP",
  "stock": 50,
  "unit_cost_stock": 1000,
  "max_stock_level":20,
  "min_stock_level":3
}
{
    "success": true,
    "message": "200",
    "data": {
        "id": 611,
        "description": "ACEITE   BESLUX  (SM) SERIAL MARCA MODELO { 0001010000102283 }",
        "field_1": "ACEITE   BESLUX  (SM)",
        "field_2": "SERIAL",
        "field_3": "MARCA",
        "field_4": "MODELO",
        "field_5": "PROVEEDOR",
        "field_6": "0100-LUBRICANTES,ACEITES,ADITIVOS Y OTROS",
        "warehouses": [
            {
                "id_warehouse": 18,
                "location": "",
                "max_stock_level": 20,
                "min_stock_level": 3,
                "reorder_level": 1,
                "stock": 50,
                "stock_temp": 0,
                "unit_cost_stock": 1000,
                "code_warehouse": "FTTL-COP"
            },
            {
                "id_warehouse": 4,
                "location": null,
                "max_stock_level": null,
                "min_stock_level": null,
                "reorder_level": null,
                "stock": 0,
                "stock_temp": 0,
                "unit_cost_stock": 3560.43,
                "code_warehouse": "BOG_INTG"
            }
        ]
    },
    "total": 1
}

Test It

Language