Clients - Protected
Create client
Create a new client with proper data separation.
This endpoint follows the correct client creation pattern:
- Client basic info goes to Cliente table (nome, nif, contacto, etc.)
- Email goes to Emails table (id_modulo=12, id_modulo_id=client_id)
- Address goes to Moradas table (id_modulo=12, id_modulo_id=client_id)
Automatically assigns the client to the authenticated user's company. Validates NIF uniqueness within the company.
post/api/clients
Headers
x-api-tokenstring nullable
Request body
Response
Successful Response
Changes
No recorded changes to this endpoint across all 1 revision of this API.