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!

#paymentType.list
#paymentType.findById
#paymentType.create
#paymentType.update
#paymentType.delete

paymentType.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": "",
"name": ""
}

Response

{
"data": {
"result": [
{
"version": "7",
"readonly": "false",
"description": "Contado",
"name": "Contado",
"id": "2",
"showPaymentTypeWithPositiveBalance": "false"
},
{
..........
}
],
"total": 25
},
"success": true
}

paymentType.findById

Request

{"id": "2"}

Response

{
"data": {
"version": "7",
"readonly": "false",
"description": "Contado",
"name": "Contado",
"id": "2",
"showPaymentTypeWithPositiveBalance": "false"
},
"success": true
}

paymentType.create

Request

{
"showPaymentTypeWithPositiveBalance": "true",
"description": "Transferencia bancaria",
"name": "Transferencia", // <– Required
}

Response

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

paymentType.update

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

Request

{
"id": "1117",
"showPaymentTypeWithPositiveBalance": "true",
"description": "Transferencia",
"name": "Transferencia Banco AA", // <– Required
"version": "0"
}

Response

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

paymentType.delete

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

Request

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

Response

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