Crear cliente

Crear cliente

Petición crear un nuevo cliente.


Cabeceras
Authorization string
Token de experto (Obligatorio).

Parámetros de consulta (body)
nif string
NIF/CIF del cliente (Obligatorio).
business_name string
Nombre o razón social del cliente.
email string
Correo electrónico del cliente.
phone string
Teléfono del cliente.

Respuesta

Object

id number

expert_data object

id number

name string

email string

experts array of numbers

public boolean

status number

platform_data object

nif string

business_name string

email string

phone null

reference null

notes null

province array of numbers

address string

postal_code string

location string

legal_representative_name string

legal_representative_nif string

legal_representation_type string

contacts string

cnaes array of numbers

provinces_to_work array of numbers

applicant_types array of numbers

action_items array of numbers

employees_quantity number

constitution_date string

last_year_billing number

investment_budget number

project_description string

curl
--request POST \
--url 'https://api.test.fandit.es/api/v2/clients/' \

Respuesta Ejemplo de respuesta
      {
  "id": 3102,
  "expert_data": {
    "id": 45,
    "name": "María Fernández",
    "email": "maria.fernandez@despacho.es"
  },
  "experts": [
    45
  ],
  "public": false,
  "status": 1,
  "platform_data": {
    "id": 2,
    "name": "FANDIT"
  },
  "nif": "B98765432",
  "business_name": "Talleres Mecánicos Rivas SL",
  "email": "admin@talleresrivas.es",
  "phone": "911223344",
  "reference": null,
  "notes": null,
  "province": [],
  "address": "",
  "postal_code": "",
  "location": "",
  "legal_representative_name": "",
  "legal_representative_nif": "",
  "legal_representation_type": "",
  "contacts": "",
  "cnaes": [],
  "provinces_to_work": [],
  "applicant_types": [],
  "action_items": [],
  "employees_quantity": null,
  "constitution_date": null,
  "last_year_billing": null,
  "investment_budget": null,
  "project_description": ""
}