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!

#chargesPaymentsCategories.list
#chargesPaymentsCategories.findById
#chargesPaymentsCategories.create
#chargesPaymentsCategories.update
#chargesPaymentsCategories.delete

chargesPaymentsCategories.list

readonly=true means that the entity is created by the application and it's not possible to modify it

Request

{
/* — search criteria (optional) — */
"description":"",
"transactionType":"",   // values: "charge", "payment"
"enabled":""
}

Response

{
	"data":     {
		"result":         [
						{
				"version": 0,
				"enabled": "true",
				"readonly": false,
				"description": "Gasto financiero",
				"id": "1330000000124",
				"transactionType": "payment"
			},
						{
				"version": 0,
				"enabled": "true",
				"readonly": false,
				"description": "Nómina",
				"id": "1330000000125",
				"transactionType": "payment"
			},
				.......
						{
				"version": 0,
				"enabled": "true",
				"readonly": true,
				"description": "Factura de Cliente",
				"id": "2",
				"transactionType": "charge"
			},
						{
				"version": 0,
				"enabled": "true",
				"readonly": true,
				"description": "Factura de Proveedor",
				"id": "1",
				"transactionType": "payment"
			}
		],
		"total": 12
	},
	"success": true
}

chargesPaymentsCategories.findById

chargesPaymentsCategories.findById

Request

{"id": "1330000000125"}

Response

{
    "data":     {
        "version": 0,
        "enabled": "true",
        "readonly": false,
        "description": "Nómina",
        "id": "1330000000125",
        "transactionType": "payment"
    },
    "success": true
}

chargesPaymentsCategories.create

Request

{
"description": "Dietas",
"transactionType": "payment",
"enabled": "true",
"readonly": "false"
}

Response

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

chargesPaymentsCategories.update

readonly=true means that the entity is created by the application and it's not possible to modify it

Request

{
"description": "Dietas Empleado",
"transactionType": "payment",
"enabled": "true",
"readonly": "false",
"id": 135,
"version": 0
}

Response

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

chargesPaymentsCategories.delete

Request

{
"id": 135,
"version": 0
}

Response

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