Factuarea APIDevelopers
Added

Canonical contacts API

Manage one identity with cumulative customer, supplier and lead roles. The canonical API now covers bulk creation and archival, direct identifier lookup, AEAT census verification, statistics, activity and imports.

The public API now exposes the complete contacts surface. One contact stores the shared identity and can hold customer, supplier and lead roles at the same time. This avoids duplicated identities while preserving separate sales and purchase defaults.

Public contact operations

Compatibility workflowCanonical contacts workflow
List clients or suppliersGET /v1/contacts with the roles filter
Search clients or suppliersGET /v1/contacts/search with the roles filter
Find by tax ID or external IDPOST /v1/contacts/find-by-tax-id or POST /v1/contacts/find-by-external-id
Client or supplier statisticsGET /v1/contacts/stats, with unique identities and counters per role
Client or supplier activityGET /v1/contacts/{contact}/activities, filterable by direction and category
Download an import templateGET /v1/contacts/import/template
Create several recordsPOST /v1/contacts/bulk-create, with optional dry_run
Delete several recordsPOST /v1/contacts/bulk-delete (deletes) or POST /v1/contacts/bulk/archive (archives)
Verify a Spanish identity with AEATPOST /v1/contacts/census-verification
Activate or deactivate suppliersPUT /v1/contacts/{contact}/roles/{role}/status or POST /v1/contacts/bulk/status

/v1/contacts is the only public resource for customers, suppliers and fiscal leads. The pre-launch /v1/clients and /v1/suppliers surfaces were removed before external integrations depended on them.

POST /v1/contacts/import accepts CSV, TXT, XLSX or XLS files up to 10 MB and at most three distinct target_roles; use the preview endpoint first and expect 202 when a large import is queued. The create operation ships a ready-to-use example of a company with customer and supplier roles.

Scopes

Reads use contacts:read, mutations use contacts:write, and removals — archiving, deletion and role removal — use contacts:delete. The same contact tools are available through MCP for JSON operations; the CSV template remains a REST download.

New endpoints26

EndpointDescription
GET/v1/contactsList contacts
POST/v1/contactsCreate a contact
GET/v1/contacts/optionsList contact filter options
GET/v1/contacts/statsGet contact statistics
GET/v1/contacts/searchSearch contacts
POST/v1/contacts/find-by-tax-idFind a contact by tax ID
POST/v1/contacts/find-by-external-idFind a contact by external ID
POST/v1/contacts/census-verificationVerify a contact against the AEAT census
POST/v1/contacts/import/previewPreview a contact import
POST/v1/contacts/importImport contacts
GET/v1/contacts/import/templateDownload the contact import template
POST/v1/contacts/bulk/archiveArchive contacts in bulk
POST/v1/contacts/bulk-deleteDelete contacts in bulk
POST/v1/contacts/bulk-createCreate contacts in bulk
POST/v1/contacts/bulk/statusChange contact role status in bulk
POST/v1/contacts/{contact}/roles/{role}Assign a contact role
PUT/v1/contacts/{contact}/roles/{role}/statusChange a contact role status
DEL/v1/contacts/{contact}/roles/{role}Remove a contact role
PUT/v1/contacts/{contact}/customer-profileUpdate a customer profile
PUT/v1/contacts/{contact}/supplier-profileUpdate a supplier profile
PUT/v1/contacts/{contact}/bank-accountsReplace the bank accounts of a contact
PUT/v1/contacts/{contact}/restoreRestore an archived contact
GET/v1/contacts/{contact}/activitiesList contact activity
GET/v1/contacts/{contact}Retrieve a contact
PUT/v1/contacts/{contact}Update a contact
DEL/v1/contacts/{contact}Delete a contact

On this page

Need a hand?Contact support