Contactos¶
Recurso client.contacts (endpoint contacts): clientes y proveedores. Usa únicamente las operaciones estándar de Actions.
alegrapy.contacts.Contacts
¶
Bases: Actions
Operations related to contacts (clientes/proveedores) endpoint.
__init__(client=None)
¶
Initialize the resource.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
AlegraClient
|
The AlegraClient instance. |
None
|
find_by_identification(identification, **filters)
¶
Find every contact whose identification exactly matches identification.
The server is narrowed with identification=, but its match mode is
undocumented, so every page is read and only exact matches are kept.
Comparison strips whitespace and removes dots and spaces; hyphens are preserved
(the check digit is a separate field in Alegra). Duplicates are possible and are
all returned.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
identification
|
str
|
Identification to look for. Must not be blank. |
required |
**filters
|
Any
|
Extra query parameters forwarded to the server. |
{}
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: Matching contacts; empty when there is none. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |