Saltar a contenido

Cotizaciones

Recurso client.estimates (endpoint estimates). Agrega envío por correo, anular y reabrir a las operaciones de Actions.

alegrapy.estimates.Estimates

Bases: Actions

Operations related to estimates (cotizaciones) endpoint.

__init__(client=None)

Initialize the resource.

Parameters:

Name Type Description Default
client AlegraClient

The AlegraClient instance.

None

send_email(id, emails, send_copy_to_user=False, subject=None, message=None)

Send estimate by email.

Parameters:

Name Type Description Default
id int or str

Estimate ID.

required
emails list or str

Email address or list of email addresses to send to.

required
send_copy_to_user bool

Send a copy of the email to the user (default False).

False
subject str

Custom email subject.

None
message str

Custom email body message.

None

Returns:

Name Type Description
Any Any

Parsed JSON response from the server.

Raises:

Type Description
ValueError

If the ID is not a valid resource identifier.

void(id)

Void / Annul an estimate by ID.

.. note:: This endpoint is not documented by Alegra; its existence was verified on 2026-11-21. It may change without notice.

Parameters:

Name Type Description Default
id int or str

Estimate ID.

required

Returns:

Name Type Description
Any Any

Parsed JSON response from the server.

Raises:

Type Description
ValueError

If the ID is not a valid resource identifier.

open(id)

Open / Reopen an estimate by ID.

.. note:: This endpoint is not documented by Alegra; its existence was verified on 2026-11-21. It may change without notice.

Parameters:

Name Type Description Default
id int or str

Estimate ID.

required

Returns:

Name Type Description
Any Any

Parsed JSON response from the server.

Raises:

Type Description
ValueError

If the ID is not a valid resource identifier.