Associate spare parts to a warehouse

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

Input parameters

Parámetro

Tipo

Requerido

Descripción

code

Text

Yes

Spare part code

code_warehouse

Text

Yes

Code 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_warehouse

Text

Yes

Id 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

stock

Real

Optional

Existence of the spare part within the warehouse. Applies only to integrated warehouses (Default value is 0).

unit_cost_stock

Real

Optional

Unit cost of the spare part within the warehouse. Applies only to integrated warehouses (Default value is 0).

max_stock_level

Integer

Optional

Maximum stock of the spare part in the warehouse. (This value is only informative to generate alerts within Fracttal).

min_stock_level

Integer

Optional

Minimum stock of the spare part in the warehouse. Default is 0. (This value is only informative to generate alerts within Fracttal).

location

Text

Optional

Location

order_quantity

Integer

Optional

Quantity to order

Output parameters

Parameter

Type

Description

code

Text

Spare part code

description

Text

Description of spare part

field_1

Text

Spare part name

field_2

Text

Part number

field_3

Text

Manufacturer

field_4

Text

Model

field_5

Text

Other 1

field_6

Text

Other 2

warehouses

Array Json

Array 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