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!

#salesQuoteTypes.list
#salesQuoteTypes.findById
#salesQuoteTypes.create
#salesQuoteTypes.update
#salesQuoteTypes.delete

salesQuoteTypes.list

Request

{
/* — search criteria (optional) — */
"shortName":"",
"description":"",
"remarks":"",
"takeinAccount":""       // Boolean
}

Response

{
    "data":     {
        "result":         [
                        {
                "version": 0,
                "id": "1260000000315",
                "shortName": "PC",
                "takeinAccount": "true",
                "description": "Propuesta Colaboración",
                "remarks": "Oferta detallando el servicio."
            },
                        {
				....
            },
                        {
                "version": 0,
                "id": "1260000000316",
                "shortName": "PE",
                "takeinAccount": "true",
                "description": "Propuesta Económica",
                "remarks": "Propuesta que detalla la valoración económica."
            }
        ],
        "total": 5
    },
    "success": true
}

salesQuoteTypes.findById

salesQuoteTypes.findById

Request

{"id": "1260000000315"}

Response

{
    "data":     {
        "version": 0,
        "id": "1260000000315",
        "shortName": "PC",
        "takeinAccount": "true",
        "description": "Propuesta Colaboración",
        "remarks": "Oferta detallando el servicio."
    },
    "success": true
}

salesQuoteTypes.create

Request

{
"shortName": "PR",              // *Required
"description": "Presupuesto",   // *Required
"remarks": "Presupuesto sencillo",
"takeinAccount": "true"
}

Response

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

salesQuoteTypes.update

Request

{
"shortName": "PR",              // *Required
"description": "Presupuesto",   // *Required
"remarks": "Presupuesto sencillo",
"takeinAccount": "false",
"id": "328",
"version": 0
}

Response

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

salesQuoteTypes.delete

Request

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

Response

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