4WS Suite
Home
API Reference
  • Data mangement API
  • Documents API
Home
API Reference
  • Data mangement API
  • Documents API
Fourwayshop
  1. Product
  • Login
    • login
      POST
  • Product
    • Brand
      • Get All Brands
      • Get A Brand
      • Insert brand
      • Update brand
    • Season
      • Get All Seasons
      • Get A Season
      • Insert season
      • Update season
    • Attribute
      • Get All Attribute Types
      • Get Attribute Type
      • Get Attribute
      • Insert attribute
      • Update attribute
    • Hierarchy
      • Insert hierarchy
      • Update hierarchy
    • Dimension groups
      • Insert dimension group
      • Update dimension group
    • Dimension
      • Insert dimension
      • Update dimension
      • Delete dimension
    • Product
      • Get products
        GET
      • Get product
        GET
      • Get product grouping
        GET
      • Get SKU's barcodes
        GET
      • Get product stock
        GET
      • Insert product
        POST
      • Update product
        PATCH
    • Activate dimensions on products
      • Insert active dimensions
      • Delete active dimensions
    • Barcode
      • Get SKU from barcode
      • Generate missing barcodes
      • Generate missing barcode for SKU
      • Insert barcode
      • Delete barcode
    • Prices
      • Get product prices
    • Price dimension groupings
      • Get Dimension Price Grouping
      • Get All Dimension Price Grouping
      • Insert dimension grouping
      • Update dimension grouping
      • Delete dimension grouping
    • Assortment
      • insert product assortment
      • delete product assortment
    • Image
      • Get images
      • Add image
      • Replace image
      • Delete image
    • Supplier
      • Get Item suppliers
      • Insert item supplier
      • Delete item supplier
      • Update item supplier
    • Custom category
      • Get Custom code
      • Insert Custom code
      • Update Custom code
    • Vat
      • Vat types
        • Get VAT type
        • Get VAT types
      • VATs
        • Get VATs
        • Get VATs by type
        • Get VAT
      • Vat rates
        • Get VAT rates
        • Get single VAT rates
    • Stock
      • Insert stock
      • Get stock
  • Price lists
    • Get price lists
      GET
    • Get price lists by type
      GET
    • Get price list
      GET
    • Get prices from price list
      GET
    • Get entities from price lists
      GET
    • Insert Price List
      POST
    • Insert Product Price
      POST
    • Insert Entity On Price Lists
      POST
    • Update price list
      PATCH
    • Delete all product prices
      DELETE
    • Delete single product price
      DELETE
    • Delete entity from a price lists
      DELETE
  • Supplier
    • Supplier contacts
    • Supplier addresses
    • Get Suppliers
    • Get A Specific Supplier
    • Insert supplier
    • Update supplier
  • Entities
    • Get entities
    • Get entity
    • Insert entity
    • Update entity
  • Miscellaneous
    • Get requests rate limits
  • Catalog
    • Get Catalogs details
    • Get Catalog details by Code
    • Get products by Catalog Code
  • Export
    • Get bulk CSV Export
  1. Product

Insert product

POST
/api/v1/products
Last modified:2025-02-07 14:43:36

Create a New Product in 4WS Trade System#

An external system needs to create a new product in the 4WS Trade system’s product catalog. The system will return the internal code (prog_id) and the product code (item_code) once the product is successfully created.
Auto generated code
If the item_code is not passed in the JSON body of the request and auto_generate_code is set to true, the system will automatically generate the product code following the rules configured for the tenant.
All product data fields that have been configured for code auto-generation must be provided as mandatory. For example, if the code is generated using the collection code and year, the first hierarchy level, and the supplier, the product creation request must include these fields populated.

Actors#

API Client: The system or user initiating the request.
4ws.trade: The backend system that processes the request.

Languages#

To understand how languages are managed, please refer to our Managing Languages Documentation.

Preconditions#

The external system must have the necessary permissions and access to the document creation service, please refer to Authentication.
If the tenant has auto-generation for product codes enabled, the request must include the auto_generate_code flag set to true, and the item_code field can be omitted.

Main Success Scenario#

If the product is successfully created, the system will return an HTTP 200 response with the newly created product’s details, including the internal prog_id and item_code.
Example Success Response:
{
  "product": {
    "prog_id": 90941,
    "item_code": "MININTSAB-52311090940"
  }
}

Alternate Flows#

1.
Auto-generate Product Code:
If the tenant is configured to auto-generate product codes, the auto_generate_code parameter must be set to true, and the item_code field can be omitted. The 4WS Trade system will automatically generate the product code.
Example Request:
{
  "auto_generate_code": true,
  "description_it": "Product description",
  "description_en": "Product description",
  "brand_code": "SAB",
  "season_code": "231"
}
2.
Unique Constraint Error:
If a product with the same item_code already exists, the system will return an HTTP 422 error.
Example Error Response:
{
  "message": "Unique constraint error"
}
Best Practices
Please refer to Best Practices for Error Handling in External System for best practices on implementation.

Sequence Diagram#

Code Examples in Node.js#

Below is an example of how to create a new product in 4WS Trade using Node.js and Axios.
This Node.js code demonstrates how to create a new product by sending a POST request with product data. It handles both successful and error responses (e.g., unique constraint errors).

Request

Body Params application/json

Example
{
    "type": "object",
    "properties": {
        "item_code": {
            "type": "string",
            "description": "Codice prodotto"
        },
        "description_it": {
            "type": "string",
            "description": "Descrizione It"
        },
        "description_en": {
            "type": "string",
            "description": "Descrizione En"
        },
        "season_code": {
            "type": [
                "string",
                "null"
            ],
            "description": "Codice stagione del prodotto"
        },
        "brand_code": {
            "type": [
                "string",
                "null"
            ],
            "description": "Codice marchio prodotto"
        },
        "made_in": {
            "type": [
                "string",
                "null"
            ],
            "description": "Codice made in del prodotto ISO 2 codice nazione"
        },
        "hierarchy_level1": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level2": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "attribute_level1": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "dimension_group1": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gruppo dimensionale"
        },
        "dimension_group2": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gruppo dimensionale"
        },
        "item_supplier_code": {
            "type": [
                "string",
                "null"
            ],
            "description": "Codice prodotto fornitore"
        },
        "composition": {
            "type": [
                "string",
                "null"
            ]
        },
        "customs_category": {
            "type": [
                "string",
                "null"
            ]
        },
        "enabled_sale": {
            "type": [
                "boolean",
                "null"
            ]
        },
        "exposition_type": {
            "type": [
                "string",
                "null"
            ],
            "description": "Tipologia di esposizione"
        },
        "free_promotion": {
            "type": [
                "boolean",
                "null"
            ],
            "description": "Possibilità di essere omaggiato durante le promozioni"
        },
        "free_sale": {
            "type": [
                "boolean",
                "null"
            ],
            "description": "Possibilità di essere omaggiato"
        },
        "item_depth": {
            "type": [
                "number",
                "null"
            ],
            "description": "Profondità",
            "minimum": 0
        },
        "item_heigth": {
            "type": [
                "number",
                "null"
            ],
            "description": "Altezza",
            "minimum": 0
        },
        "item_width": {
            "type": [
                "number",
                "null"
            ],
            "description": "Larghezza",
            "minimum": 0
        },
        "manual_cost": {
            "type": [
                "boolean",
                "null"
            ],
            "description": "Possibilità di applicare un costo manuale"
        },
        "measure_unit": {
            "type": [
                "string",
                "null"
            ],
            "description": "Unità di misura"
        },
        "minimum_pack": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0
        },
        "pack_depth": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Profondità pacco",
            "minimum": 0
        },
        "pack_heigth": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Altezza pacco",
            "minimum": 0
        },
        "pack_width": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Larghezza pacco",
            "examples": [
                0
            ],
            "minimum": 0
        },
        "shop_description_it": {
            "type": "string",
            "description": "Descrizione scontrino It"
        },
        "shop_description_en": {
            "type": "string",
            "description": "Descrizione scontrino En"
        },
        "sartorial_code": {
            "type": [
                "string",
                "null"
            ]
        },
        "set_item": {
            "type": [
                "boolean",
                "null"
            ],
            "description": "Indica se un prodotto è un set"
        },
        "set_quantity": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Quantità set",
            "minimum": 0
        },
        "weight": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Peso netto del prodotto in grammi",
            "minimum": 0
        },
        "tailor_selection": {
            "type": [
                "string",
                "null"
            ]
        },
        "vat_code": {
            "type": [
                "string",
                "null"
            ],
            "description": "Codice aliquota IVA"
        },
        "season": {
            "type": [
                "string",
                "null"
            ],
            "description": "Stagione"
        },
        "year": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Anno",
            "minimum": 1000,
            "examples": [
                2024
            ]
        },
        "brand": {
            "type": [
                "string",
                "null"
            ],
            "description": "Descrizione brand"
        },
        "main_supplier": {
            "type": "string",
            "description": "Descrizione fornitore"
        },
        "hierarchy_level3": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level4": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level5": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level6": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level7": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level8": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level9": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level10": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "attribute_level2": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level3": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level4": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level5": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level6": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level7": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level8": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level9": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level10": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "dimension_group3": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gruppo dimensionale"
        },
        "dimension_group4": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gruppo dimensionale"
        },
        "dimension_group5": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gruppo dimensionale"
        },
        "enabled_discount": {
            "type": [
                "boolean",
                "null"
            ],
            "description": "Possibilità di applicargli sconti"
        },
        "packages": {
            "type": [
                "string",
                "null"
            ],
            "description": "Numero di pacchi"
        },
        "packages_hanging": {
            "type": [
                "string",
                "null"
            ],
            "description": "Numero di pacchi appesi"
        },
        "item_type": {
            "type": "string",
            "description": "Tipologia prodotto",
            "enum": [
                "PRODUCT"
            ],
            "x-apidog": {
                "enumDescriptions": {
                    "PRODUCT": "Prodotto"
                }
            }
        },
        "item_subtype": {
            "type": "string",
            "description": "Sottotipo prodotto",
            "enum": [
                "ITEM"
            ],
            "x-apidog": {
                "enumDescriptions": {
                    "ITEM": "Prodotto"
                }
            }
        },
        "price_management_type": {
            "type": "string",
            "enum": [
                "ITEM",
                "SIZE"
            ],
            "x-apidog": {
                "enumDescriptions": {
                    "ITEM": "Prodotto",
                    "SIZE": "Fascia"
                }
            },
            "description": "Gestione prezzo"
        },
        "vat_department": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0,
            "maximum": 999
        },
        "tax_rate": {
            "type": [
                "string",
                "null"
            ],
            "description": "Aliquota IVA %"
        },
        "main_supplier_code": {
            "type": "string",
            "description": "Codice fornitore"
        },
        "prog_id": {
            "type": "integer",
            "description": "Identificativo interno",
            "minimum": 0
        },
        "season_sale_code": {
            "type": [
                "string",
                "null"
            ],
            "description": "Codice stagione di vendita"
        },
        "season_sale": {
            "type": [
                "string",
                "null"
            ],
            "description": "Stagione di vendita"
        },
        "season_sale_year": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Anno stagione di vendita",
            "examples": [
                2024
            ],
            "minimum": 1000
        }
    },
    "required": [
        "item_code",
        "description_it",
        "description_en",
        "item_type",
        "item_subtype",
        "price_management_type",
        "prog_id"
    ],
    "x-apidog-orders": [
        "prog_id",
        "item_code",
        "item_type",
        "item_subtype",
        "price_management_type",
        "vat_code",
        "vat_department",
        "tax_rate",
        "description_it",
        "description_en",
        "shop_description_it",
        "shop_description_en",
        "season_code",
        "season",
        "year",
        "season_sale_code",
        "season_sale",
        "season_sale_year",
        "brand_code",
        "brand",
        "made_in",
        "main_supplier_code",
        "main_supplier",
        "item_supplier_code",
        "hierarchy_type1",
        "hierarchy_type2",
        "hierarchy_type3",
        "hierarchy_type4",
        "hierarchy_type5",
        "hierarchy_type6",
        "hierarchy_type7",
        "hierarchy_type8",
        "hierarchy_type9",
        "hierarchy_type10",
        "hierarchy_level1",
        "hierarchy_level2",
        "hierarchy_level3",
        "hierarchy_level4",
        "hierarchy_level5",
        "hierarchy_level6",
        "hierarchy_level7",
        "hierarchy_level8",
        "hierarchy_level9",
        "hierarchy_level10",
        "attribute_type1",
        "attribute_type2",
        "attribute_type3",
        "attribute_type4",
        "attribute_type5",
        "attribute_type6",
        "attribute_type7",
        "attribute_type8",
        "attribute_type9",
        "attribute_type10",
        "attribute_level1",
        "attribute_level2",
        "attribute_level3",
        "attribute_level4",
        "attribute_level5",
        "attribute_level6",
        "attribute_level7",
        "attribute_level8",
        "attribute_level9",
        "attribute_level10",
        "dimension_group1",
        "dimension_group2",
        "dimension_group3",
        "dimension_group4",
        "dimension_group5",
        "minimum_pack",
        "measure_unit",
        "item_heigth",
        "item_width",
        "item_depth",
        "pack_heigth",
        "pack_width",
        "pack_depth",
        "set_item",
        "set_quantity",
        "exposition_type",
        "enabled_discount",
        "enabled_sale",
        "free_promotion",
        "free_sale",
        "manual_cost",
        "tailor_selection",
        "packages",
        "packages_hanging",
        "weight",
        "composition",
        "customs_category",
        "sartorial_code"
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/products' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "object",
    "properties": {
        "item_code": {
            "type": "string",
            "description": "Codice prodotto"
        },
        "description_it": {
            "type": "string",
            "description": "Descrizione It"
        },
        "description_en": {
            "type": "string",
            "description": "Descrizione En"
        },
        "season_code": {
            "type": [
                "string",
                "null"
            ],
            "description": "Codice stagione del prodotto"
        },
        "brand_code": {
            "type": [
                "string",
                "null"
            ],
            "description": "Codice marchio prodotto"
        },
        "made_in": {
            "type": [
                "string",
                "null"
            ],
            "description": "Codice made in del prodotto ISO 2 codice nazione"
        },
        "hierarchy_level1": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level2": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "attribute_level1": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "dimension_group1": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gruppo dimensionale"
        },
        "dimension_group2": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gruppo dimensionale"
        },
        "item_supplier_code": {
            "type": [
                "string",
                "null"
            ],
            "description": "Codice prodotto fornitore"
        },
        "composition": {
            "type": [
                "string",
                "null"
            ]
        },
        "customs_category": {
            "type": [
                "string",
                "null"
            ]
        },
        "enabled_sale": {
            "type": [
                "boolean",
                "null"
            ]
        },
        "exposition_type": {
            "type": [
                "string",
                "null"
            ],
            "description": "Tipologia di esposizione"
        },
        "free_promotion": {
            "type": [
                "boolean",
                "null"
            ],
            "description": "Possibilità di essere omaggiato durante le promozioni"
        },
        "free_sale": {
            "type": [
                "boolean",
                "null"
            ],
            "description": "Possibilità di essere omaggiato"
        },
        "item_depth": {
            "type": [
                "number",
                "null"
            ],
            "description": "Profondità",
            "minimum": 0
        },
        "item_heigth": {
            "type": [
                "number",
                "null"
            ],
            "description": "Altezza",
            "minimum": 0
        },
        "item_width": {
            "type": [
                "number",
                "null"
            ],
            "description": "Larghezza",
            "minimum": 0
        },
        "manual_cost": {
            "type": [
                "boolean",
                "null"
            ],
            "description": "Possibilità di applicare un costo manuale"
        },
        "measure_unit": {
            "type": [
                "string",
                "null"
            ],
            "description": "Unità di misura"
        },
        "minimum_pack": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0
        },
        "pack_depth": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Profondità pacco",
            "minimum": 0
        },
        "pack_heigth": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Altezza pacco",
            "minimum": 0
        },
        "pack_width": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Larghezza pacco",
            "examples": [
                0
            ],
            "minimum": 0
        },
        "shop_description_it": {
            "type": "string",
            "description": "Descrizione scontrino It"
        },
        "shop_description_en": {
            "type": "string",
            "description": "Descrizione scontrino En"
        },
        "sartorial_code": {
            "type": [
                "string",
                "null"
            ]
        },
        "set_item": {
            "type": [
                "boolean",
                "null"
            ],
            "description": "Indica se un prodotto è un set"
        },
        "set_quantity": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Quantità set",
            "minimum": 0
        },
        "weight": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Peso netto del prodotto in grammi",
            "minimum": 0
        },
        "tailor_selection": {
            "type": [
                "string",
                "null"
            ]
        },
        "vat_code": {
            "type": [
                "string",
                "null"
            ],
            "description": "Codice aliquota IVA"
        },
        "season": {
            "type": [
                "string",
                "null"
            ],
            "description": "Stagione"
        },
        "year": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Anno",
            "minimum": 1000,
            "examples": [
                2024
            ]
        },
        "brand": {
            "type": [
                "string",
                "null"
            ],
            "description": "Descrizione brand"
        },
        "main_supplier": {
            "type": "string",
            "description": "Descrizione fornitore"
        },
        "hierarchy_level3": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level4": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level5": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level6": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level7": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level8": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level9": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "hierarchy_level10": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gerarchia"
        },
        "attribute_level2": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level3": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level4": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level5": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level6": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level7": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level8": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level9": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "attribute_level10": {
            "type": [
                "string",
                "null"
            ],
            "description": "Attributo"
        },
        "dimension_group3": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gruppo dimensionale"
        },
        "dimension_group4": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gruppo dimensionale"
        },
        "dimension_group5": {
            "type": [
                "string",
                "null"
            ],
            "description": "Gruppo dimensionale"
        },
        "enabled_discount": {
            "type": [
                "boolean",
                "null"
            ],
            "description": "Possibilità di applicargli sconti"
        },
        "packages": {
            "type": [
                "string",
                "null"
            ],
            "description": "Numero di pacchi"
        },
        "packages_hanging": {
            "type": [
                "string",
                "null"
            ],
            "description": "Numero di pacchi appesi"
        },
        "item_type": {
            "type": "string",
            "description": "Tipologia prodotto",
            "enum": [
                "PRODUCT"
            ],
            "x-apidog": {
                "enumDescriptions": {
                    "PRODUCT": "Prodotto"
                }
            }
        },
        "item_subtype": {
            "type": "string",
            "description": "Sottotipo prodotto",
            "enum": [
                "ITEM"
            ],
            "x-apidog": {
                "enumDescriptions": {
                    "ITEM": "Prodotto"
                }
            }
        },
        "price_management_type": {
            "type": "string",
            "enum": [
                "ITEM",
                "SIZE"
            ],
            "x-apidog": {
                "enumDescriptions": {
                    "ITEM": "Prodotto",
                    "SIZE": "Fascia"
                }
            },
            "description": "Gestione prezzo"
        },
        "vat_department": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0,
            "maximum": 999
        },
        "tax_rate": {
            "type": [
                "string",
                "null"
            ],
            "description": "Aliquota IVA %"
        },
        "main_supplier_code": {
            "type": "string",
            "description": "Codice fornitore"
        },
        "prog_id": {
            "type": "integer",
            "description": "Identificativo interno",
            "minimum": 0
        },
        "season_sale_code": {
            "type": [
                "string",
                "null"
            ],
            "description": "Codice stagione di vendita"
        },
        "season_sale": {
            "type": [
                "string",
                "null"
            ],
            "description": "Stagione di vendita"
        },
        "season_sale_year": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Anno stagione di vendita",
            "examples": [
                2024
            ],
            "minimum": 1000
        }
    },
    "required": [
        "item_code",
        "description_it",
        "description_en",
        "item_type",
        "item_subtype",
        "price_management_type",
        "prog_id"
    ],
    "x-apidog-orders": [
        "prog_id",
        "item_code",
        "item_type",
        "item_subtype",
        "price_management_type",
        "vat_code",
        "vat_department",
        "tax_rate",
        "description_it",
        "description_en",
        "shop_description_it",
        "shop_description_en",
        "season_code",
        "season",
        "year",
        "season_sale_code",
        "season_sale",
        "season_sale_year",
        "brand_code",
        "brand",
        "made_in",
        "main_supplier_code",
        "main_supplier",
        "item_supplier_code",
        "hierarchy_type1",
        "hierarchy_type2",
        "hierarchy_type3",
        "hierarchy_type4",
        "hierarchy_type5",
        "hierarchy_type6",
        "hierarchy_type7",
        "hierarchy_type8",
        "hierarchy_type9",
        "hierarchy_type10",
        "hierarchy_level1",
        "hierarchy_level2",
        "hierarchy_level3",
        "hierarchy_level4",
        "hierarchy_level5",
        "hierarchy_level6",
        "hierarchy_level7",
        "hierarchy_level8",
        "hierarchy_level9",
        "hierarchy_level10",
        "attribute_type1",
        "attribute_type2",
        "attribute_type3",
        "attribute_type4",
        "attribute_type5",
        "attribute_type6",
        "attribute_type7",
        "attribute_type8",
        "attribute_type9",
        "attribute_type10",
        "attribute_level1",
        "attribute_level2",
        "attribute_level3",
        "attribute_level4",
        "attribute_level5",
        "attribute_level6",
        "attribute_level7",
        "attribute_level8",
        "attribute_level9",
        "attribute_level10",
        "dimension_group1",
        "dimension_group2",
        "dimension_group3",
        "dimension_group4",
        "dimension_group5",
        "minimum_pack",
        "measure_unit",
        "item_heigth",
        "item_width",
        "item_depth",
        "pack_heigth",
        "pack_width",
        "pack_depth",
        "set_item",
        "set_quantity",
        "exposition_type",
        "enabled_discount",
        "enabled_sale",
        "free_promotion",
        "free_sale",
        "manual_cost",
        "tailor_selection",
        "packages",
        "packages_hanging",
        "weight",
        "composition",
        "customs_category",
        "sartorial_code"
    ]
}'

Responses

🟢200Success
application/json
Body

Example
{
    "product": {
        "prog_id": 90941,
        "item_code": "MININTSAB-52311090940"
    }
}
🟠401Authentication failed
🟠403Operation not allowed
🟠422Unique constraint error
Modified at 2025-02-07 14:43:36
Previous
Get product stock
Next
Update product
Built with