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!

#cashAccount.list
#cashAccount.findById
#cashAccount.create
#cashAccount.update

cashAccount.list

Request

{
/* --- search criteria (optional) --- */
"enabled": "",                // <-- Boolean
"default": "",                // <-- Boolean
"description": "",
"cashAccountBalanceFrom": "", // <-- Numeric
"cashAccountBalanceTo": "",   // <-- Numeric
"name": "",
"remarks": ""
}

Response

{
"data": {
"result": [
{
"version": 1,
"enabled": "true",
"default": "true",
"balance": "250",
"description": "Common expenses cash desk",
"id": "26",
"name": "A cash desk",
"remarks": "Remarks"
},
{
........
}
],
"total": 13
},
"success": true
}

cashAccount.findById

Request

{"id": "26"}

Response

{
"data": {
"version": 1,
"enabled": "true",
"default": "true",
"balance": "250",
"description": "Common expenses cash desk",
"id": "26",
"name": "A cash desk",
"remarks": "Remarks"
},
"success": true
}

cashAccount.create

Request

{
"balance": "250",
"enabled": "true",
"default": "true",
"description": "Common expenses cash desk ", // <-- Required
"name": "A cash desk", // <-- Required
"remarks": "remarks"
}

Response

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

cashAccount.update

Request

{
"id": "26",
"balance": "250",
"enabled": "true",
"default": "true",
"description": "Common expenses cash desk", // <-- Required
"name": "A cash desk", // <-- Required
"remarks": "employees common expenses",
"version": "1"
}

Response

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