Saltar a contenido

Cuentas bancarias

Recurso client.bank_accounts (endpoint bank-accounts). Agrega transferencias entre cuentas a las operaciones de Actions.

alegrapy.bank_accounts.BankAccounts

Bases: Actions

Operations related to bank accounts endpoint.

__init__(client=None)

Initialize the resource.

Parameters:

Name Type Description Default
client AlegraClient

The AlegraClient instance.

None

transfer(from_id, to_id, amount, date, description=None)

Transfer funds between bank accounts.

Parameters:

Name Type Description Default
from_id int or str

Source bank account ID.

required
to_id int or str

Destination bank account ID.

required
amount float

Amount to transfer.

required
date str

Date of transfer (YYYY-MM-DD).

required
description str

Description of the transfer.

None

Returns:

Name Type Description
Any Any

Parsed JSON response from the server.