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!

#supplierGrades.list
#supplierGrades.findById
#supplierGrades.create
#supplierGrades.update
#supplierGrades.delete

supplierGrades.list

Request

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

Response

{
    "data":     {
        "result":         [
                        {
                "version": 0,
                "id": "1260000000028",
                "description": "Normal",
                "remarks": "Proveedor conforme, se le debe mantener",
                "grade": 2
            },
						{
				....
			},
                        {
                "version": 0,
                "id": "1260000000027",
                "description": "Insuficiente",
                "remarks": "No se podrá tener la misma nota en la siguiente revisión (o baja y se le descarta o sube)",
                "grade": 1
            }
        ],
        "total": 4
    },
    "success": true
}

supplierGrades.findById

supplierGrades.findById

Request

{"id": "1260000000028"}

Response

{
    "data":     {
        "version": 0,
        "id": "1260000000028",
        "description": "Normal",
        "remarks": "Proveedor conforme, se le debe mantener",
        "grade": 2
    },
    "success": true
}

supplierGrades.create

Request

{
"grade": "5",        // Numeric, *Required
"description": "Proveedor Provisional", 
"remarks": " "
}

Response

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

supplierGrades.update

Request

{
"grade": "5",           // Numeric, *Required
"description": "Proveedor Provisional", 
"remarks": "En trámite de ser aprobado",
"id": "40",
"version": 0
}

Response

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

supplierGrades.delete

Request

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

Response

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