beel_create_customer
Create a customer under your company NIF with Spanish tax ID validation and idempotency to prevent duplicate entries.
Instructions
Creates a new customer under this company (NIF). An Idempotency-Key identifies the same
operation on the deprecated flat route, so a retry that switches route replays instead of
creating twice.
Endpoint: POST /v1/companies/{company_id}/customers
⚠️ Fiscal guardrails — read before calling:
Why a name that does not match the census makes an invoice unsubmittable. (resource: beel://guardrails/nif-validation)
For the exhaustive rules and worked examples, call beel_docs_search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| company_id | Yes | NIF (company) the operation acts on. 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 NIF you do not reach answers `403`, and so does a NIF that does not exist, so the existence of a NIF 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. |