beel_create_customer_import
Imports customers into a company from an uploaded CSV or Holded Excel file, creating records and reporting duplicates by tax identifier instead of creating them again.
Instructions
Imports customers into this company from an uploaded file.
source: the origin travels in the body.csvis a file following the import template, limited to 5 MB and 1,000 records;holdedis an Excel (.xlsx) exported from Holded contacts, limited to 10 MB and 5,000 records. A file over either limit of itssourceis rejected as a whole with400(CSV_FILE_TOO_LARGEorTOO_MANY_RECORDS) and nothing is imported. A file over 12 MB answers413(FILE_TOO_LARGE) before it is read. Aholdedfile that does not open as a workbook answers422 INVALID_EXCEL_FORMAT, and one whose columns are not those of a Holded contacts export422 INVALID_EXCEL_STRUCTURE.This operation writes: the customers it accepts are created, and a record whose tax identifier already exists in this company is reported as a duplicate rather than created again, so re-importing the same file duplicates nothing.
Idempotency-Key: required on this operation.Rehearsal: to see what would happen without writing anything, use
POST .../customers/imports/preview, a separate operation with no effects at all — the import is never governed by a boolean flag.
BeeL API endpoint: POST /v1/companies/{company_id}/customers/imports (reference: https://docs.beel.es)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| company_id | Yes | Unique identifier (UUID) of the company the operation acts on — its identifier, not its NIF. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A company you do not reach answers `403`, and so does a company that does not exist, so the existence of a company in another account is never disclosed. | |
| idempotency_key | No | Optional idempotency key for this operation. Omit it and one is derived from the request itself, which makes a blind retry safe but also collapses a SECOND, deliberately identical operation into the first for 24 hours. Set it — to an order id, or anything unique per intended operation — whenever you mean to create something that may look identical to what you just created. |