Clients - Protected

Auto-create a client from VIES registry data

Create the client for a NIF using its VIES-registered name/address, when it doesn't exist yet in the company (invoice-insertion auto-create). The client is created with no email/contacto — allowed, since both are optional. Always returns 200 with a structured outcome; the FE branches on created/exists/reason. Plain def — it does DB work in the threadpool.

post/api/clients/auto-from-nif

Headers

x-api-tokenstring nullable

Request body

nifstring required

Response

Successful Response

createdboolean required
existsboolean
client_idinteger nullable
nomestring nullable
reasonstring nullable

Changes

No recorded changes to this endpoint across all 1 revision of this API.