Skip to main content
POST
/
api
/
v1
/
client_father
/
create
Crear un nuevo cliente padre
curl --request POST \
  --url https://api.raul.ugps.io/api/v1/client_father/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fatherName": "Empresa Matriz SA",
  "fantasyName": "<string>",
  "rut": "12.345.678-9",
  "email": "contacto@empresa.cl",
  "phone": "<string>",
  "factura": true,
  "ordenCompra": true,
  "requiresHes": true,
  "childrenIds": [
    "uuid1",
    "uuid2"
  ]
}
'
{
  "idFather": "<string>",
  "fatherName": {},
  "fantasyName": {},
  "rut": {},
  "email": {},
  "phone": {},
  "factura": {},
  "ordenCompra": {},
  "requiresHes": {},
  "createdAt": {},
  "updatedAt": {},
  "clientsChildrens": [
    {
      "clientId": "<string>",
      "clientName": {},
      "rut": {},
      "typeOfContractId": {},
      "sellerId": {},
      "sellerName": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json
fatherName
string
required

Nombre del cliente padre

Example:

"Empresa Matriz SA"

fantasyName
string

Nombre de fantasía

rut
string

RUT

Example:

"12.345.678-9"

email
string

Email

Example:

"contacto@empresa.cl"

phone
string

Teléfono

factura
boolean

Requiere factura

ordenCompra
boolean

Requiere orden de compra

requiresHes
boolean

Requiere HES

childrenIds
string[]

IDs de clientes hijos a asociar

Example:
["uuid1", "uuid2"]

Response

201 - application/json

Cliente padre creado exitosamente

idFather
string
required

ID del cliente padre

fatherName
object

Nombre del cliente padre

fantasyName
object

Nombre de fantasía

rut
object

RUT

email
object

Email

phone
object

Teléfono

factura
object

Requiere factura

ordenCompra
object

Requiere orden de compra

requiresHes
object

Requiere HES

createdAt
object

Fecha de creación

updatedAt
object

Fecha de actualización

clientsChildrens
object[]

Lista de clientes hijos