This is a developer preview of Kubbos API. It's in beta, so it's subject to changes. If you need any of the "Coming soon" API services documented as soon as possible. Contact Us!

#itemsPriceLists.list
#itemsPriceLists.findById
#itemsPriceLists.create
#itemsPriceLists.update
#itemsPriceLists.delete

itemsPriceLists.list

Request

{
/* — search criteria (optional) — */
"reference":"",
"description":"",
"marginPriceCostFrom":"",      // Numeric
"marginPriceCostTo":"",        // Numeric
"surchargePriceCostFrom":"",   // Numeric
"surchargePriceCostTo":"",     // Numeric
"minMargingPriceCostFrom":"",  // Numeric
"minMargingPriceCostTo":"",    // Numeric
"applyMargin":"",              // Boolean
"enabled":"",                  // Boolean
"default":""                   // Boolean
}

Response

{
    "data":     {
        "result":         [
                        {
                "version": 1,
                "id": "1260000001434",
                "enabled": "true",
                "applyMargin": "false",
                "default": "true",
                "surchargePriceCost": 18,
                "reference": "10% Margen",
                "descriptionShort": "10% de margen sobre el PC del Producto"
            },
                        {
                "version": 0,
                "id": "1260000001435",
                "enabled": "true",
                "applyMargin": "false",
                "default": "false",
                "surchargePriceCost": 50,
                "reference": "50 EUR Recargo",
                "descriptionShort": "50 EUR de recargo sobre el PC del producto"
            }
        ],
        "total": 2
    },
    "success": true
}

itemsPriceLists.findById

itemsPriceLists.findById

Request

{"id": "1260000001434"}

Response

{
    "data":     {
        "version": 1,
        "id": "1260000001434",
        "enabled": "true",
        "applyMargin": "false",
        "default": "true",
        "surchargePriceCost": 18,
        "reference": "10% Margen",
        "descriptionShort": "10% de margen sobre el PC del Producto"
    },
    "success": true
}

itemsPriceLists.create

Request

{
"reference": "20% Margen",                     // *Required
"descriptionShort": "20% de margen sobre PC",  // *Required
"descriptionLong": " ",
// marginPriceCost or surchagePriceCost one of both is required
"marginPriceCost": "20",                  // Numeric 
"surchargePriceCost": " ",                // Numeric
"applyMargin": "true",                    // Boolean 
"minMargingPriceCost": "10",              // Numeric. Required if field applyMargin is true
"enabled": "true",                        // Boolean
"default": "false"                        // Boolean
}

Response

{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "1443",
    "success": true,
    "version": 0
}

itemsPriceLists.update

Request

{
"reference": "20% Margen",                     // *Required
"descriptionShort": "20% de margen sobre PC",  // *Required
"descriptionLong": " ",
// marginPriceCost or surchagePriceCost one of both is required
"marginPriceCost": "20",                  // Numeric 
"surchargePriceCost": " ",                // Numeric
"applyMargin": "false",                   // Boolean 
"minMargingPriceCost": " ",               // Numeric. Required if field applyMargin is true
"enabled": "true",                        // Boolean
"default": "false"                        // Boolean
"id": "1443",
"version": 0
}

Response

{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "1443",
    "success": true,
    "version": 1
}

itemsPriceLists.delete

Request

{
"id": "1443",
"version": 1
}

Response

{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "1443",
    "success": true,
    "version": 1
}
  • No labels