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!

#bankAccounts.list
#bankAccounts.findById
#bankAccounts.create
#bankAccounts.update

bankAccounts.list

Request

{
/* — search criteria (optional) — */
"enabled": "", // <– Boolean
"default": "", // <– Boolean
"SWIFT": "",
"IBAN": "",
"balanceFrom": "", // <– Numeric
"balanceTo": "", // <– Numeric
"bankEmail": "",
"bankCity": "",
"number": "",
"remarks": "",
"bankAddress2": "",
"type": "", // <– Values: "" (all), "1" (customer), "2" (company), "4" (supplier)
"bankState": "",
"bankAddress1": "",
"bankCountry": "",
"bankPostalCode": "",
"bankPhone": "",
"owner": "",
"bank": "",
"contactPerson": ""
}

Response

{
"data": {
"result": [
{
"version": 1,
"bankPostalCode": "28001",
"bankAddress1": "C/ Mayor 15",
"bankAddress2": "(entreplanta)",
"bankEmail": "david.garcia@mail.com",
"bankCountry": "ESP",
"bankCity": "Madrid",
"bankState": "28",
"bankPhone": "91.111.11.11",
"enabled": "true",
"number": "1111-0001-99-0000000001",
"bank": "Banco Exterior",
"default": "true",
"IBAN": "AA11",
"remarks": "Observaciones cuenta bancaria",
"contactPerson": "Pepe Pérez",
"SWIFT": "222222",
"type": 1,
"id": "620",
"accountTypeMessage": "De Cliente",
"companyType": 1,
"owner": "David García"
},
{
"version": 19,
"enabled": "true",
"number": "0123-1234-00-0001112223",
"bank": "Caja Ahorros",
"default": "true",
"IBAN": "ES12",
"balance": "6877.6",
"type": "0",
"id": "593",
"accountTypeMessage": "de mi Empresa",
"companyType": "1"
},
{
............
}
],
"total": 53
},
"success": true
}

bankAccounts.findById

Request

{"id": "620"}

Response

{
"data": {
"version": 1,
"bankPostalCode": "28001",
"bankAddress1": "C/ Mayor 15",
"bankAddress2": "(entreplanta)",
"bankEmail": "david.garcia@mail.com",
"bankCountry": "ESP",
"bankCity": "Madrid",
"bankState": "28",
"bankPhone": "91.111.11.11",
"enabled": "true",
"number": "1111-0001-99-0000000001",
"bank": "Banco Exterior",
"default": "true",
"IBAN": "AA11",
"remarks": "Observaciones cuenta bancaria",
"contactPerson": "Pepe Pérez",
"SWIFT": "222222",
"type": 1,
"id": "620",
"accountTypeMessage": "De Cliente",
"companyType": 1,
"owner": "David García"
},
"success": true
}

bankAccounts.create

Request

{
"SWIFT": "1111111",
"enabled": "true",
"bankEmail": "david.garcia@mail.com",
"bankCity": "Madrid",
"remarks": "Observaciones cuenta bancaria",
"number": "1111-0001-99-0000000001", // <– Required
"companyName": "David García Pérez",
"bankAddress2": "(entreplanta)",
"type": "2", // <– Values: "1" (customer), "2" (company), "4" (supplier)
"bankState": "28",
"IBAN": "AA11",
"bankAddress1": "C/ Mayor 15",
"balance": "", // <– Numeric. Only filled when type is "0"
"default": "true",
"bankPostalCode": "28001",
"bankCountry": "ESP",
"bankPhone": "91.111.11.11",
"companyNumber": "1",
"owner": "David García",
"bank": "Banco Exterior",
"contactPerson": "Pepe Pérez"
}

Response

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

bankAccounts.update

Request

{
"SWIFT": "222222",
"enabled": "true", // <– Boolean
"bankEmail": "david.garcia@mail.com",
"bankCity": "Madrid",
"remarks": "Observaciones cuenta bancaria",
"number": "1111-0001-99-0000000001", // <– Required
"companyName": "David García Pérez",
"bankAddress2": "(entreplanta)",
"type": "2", // <– Values: "1" (customer), "2" (company), "4" (supplier)
"bankState": "28",
"IBAN": "AA11",
"bankAddress1": "C/ Mayor 15",
"version": "0",
"id": "620",
"balance": "", // <– Numeric. Only filled when type is "0"
"default": "true", // <– Boolean
"bankPostalCode": "28001",
"bankCountry": "ESP",
"bankPhone": "91.111.11.11",
"companyNumber": "1",
"owner": "David García",
"bank": "Banco Exterior",
"contactPerson": "Pepe Pérez"
}

Response

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