Cuentas de pago
Cuentas bancarias y billeteras digitales (Yape, Plin…) de la empresa del token. Sus `id` se usan en el campo `cuentas` de las cotizaciones. Para crearlas o editarlas usa los endpoints de Cuenta (token de usuario).
GEThttps://api.facturalo.pe/api/v3/cuentas-pago
Language
Credentials
Header
Authorization
Token de la empresa · HTTP directo
Fetch Request
$ # Node 18+ fetch
const response = await fetch("https://api.facturalo.pe/api/v3/cuentas-pago", {
method: "GET",
headers: {
"Authorization": "sk_test_…"
}
});
const data = await response.json();
console.log(data);HTTP directo · funciona con cualquier cliente HTTP
Response
Elige un ejemplo de respuesta:
application/json
200OK
{
"success": true,
"data": {
"cuentas": [
{
"id": "a32ef8b1-b485-43e8-af6b-a744e01857a0",
"tipo": "BANCO",
"entidad": "BCP",
"moneda": "PEN",
"numero": "191-1234567-0-12",
"cci": "00219100123456701254",
"titular": "EMPRESA DEMO S.A.C.",
"descripcion": "Cuenta corriente",
"enCotizaciones": true,
"orden": 1
},
{
"id": "a32ef8b1-cdbe-4a38-b6c7-d65261efe751",
"tipo": "BILLETERA",
"entidad": "YAPE",
"moneda": "PEN",
"numero": "987654321",
"cci": null,
"titular": "Juan Pérez",
"descripcion": null,
"enCotizaciones": true,
"orden": 2
}
],
"sugerencias": {
"bancos": [
"BCP",
"BBVA",
"INTERBANK",
"SCOTIABANK",
"BANCO DE LA NACION",
"BANBIF",
"PICHINCHA",
"BANCO GNB",
"CAJA AREQUIPA",
"CAJA HUANCAYO",
"CAJA PIURA",
"CAJA TRUJILLO"
],
"billeteras": [
"YAPE",
"PLIN",
"TUNKI",
"BIM"
]
}
}
}