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!

#supplierTypes.list
#supplierTypes.findById
#supplierTypes.create
#supplierTypes.update
#supplierTypes.delete

supplierTypes.list

Request

{
/* — search criteria (optional) — */
"name":"",
"description":"",
"remarks":""
}

Response

{
    "data":     {
        "result":         [
                        {
                "version": 0,
                "id": "1260000000042",
                "description": "Proveedor homologado, activo",
                "name": "Homologado",
                "remarks": "Se le pueden pedir y aceptar presupuestos"
            },
                        {
				....
            },
                        {
                "version": 0,
                "id": "1260000000043",
                "description": "Proveedor cuya homologación ha sido negada",
                "name": "Descartado",
                "remarks": "No se le pueden pedir presupuestos"
            }
        ],
        "total": 4
    },
    "success": true
}

supplierTypes.findById

supplierTypes.findById

Request

{"id": "1260000000042"}

Response

{
    "data":     {
        "version": 0,
        "id": "1260000000042",
        "description": "Proveedor homologado, activo",
        "name": "Homologado",
        "remarks": "Se le pueden pedir y aceptar presupuestos"
    },
    "success": true
}

supplierTypes.create

Request

{
"name": "Habitual",          // *Required
"description": "Proveedor Habitual",
"remarks": "Mercancía interesante y a buen precio"
}

Response

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

supplierTypes.update

Request

{
"name": "Habitual",            // *Required
"description": "Proveedor Habitual",
"remarks": "Buena mercancía y a buen precio",
"id": "64",
"version": 0
}

Response

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

supplierTypes.delete

Request

{
"id": "64",
"version": 
}

Response

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