Skip to main content
POST
/
api
/
management
/
customers
Criar um cliente
curl --request POST \
  --url https://api.olie.ai/api/management/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Cliente Exemplo - Filial Rio Preto",
  "document_type": 2,
  "customer_type": 1,
  "company_name": "Cliente Exemplo Comércio LTDA",
  "document": "12.345.678/0002-71",
  "email": "[email protected]",
  "phone": "(17) 91234-5678",
  "address": "Av. Exemplo, 456 - Campinas/SP",
  "status": true,
  "parent_id": null
}
'
{
  "customer": {
    "id": "019bc7f9-f586-7386-a27d-a070e8ae5ac2",
    "name": "Cliente Exemplo - Filial Rio Preto",
    "headquarter": "Cliente Exemplo - Filial Rio Preto",
    "branch": null,
    "company_name": "Cliente Exemplo Comércio LTDA",
    "document_type": 2,
    "customer_type": 1,
    "document": "12.345.678/0000-00",
    "main_activity": null,
    "email": "[email protected]",
    "phone": "(17) 91234-5678",
    "address": "Av. Exemplo, 456 - Campinas/SP",
    "description": null,
    "custom_fields": null,
    "status": true,
    "form_answers": [],
    "parent_id": null,
    "frame_id": "019b329a-4346-7064-bba3-e7c19057cda4",
    "created_at": "2026-01-16T18:03:25.000000Z",
    "updated_at": "2026-01-16T18:03:25.000000Z",
    "deleted_at": null,
    "created_by": "019b329a-3f1f-7198-89e5-008dc4e2bd60"
  },
  "response": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
parent_id
string<uuid>
required

Response

201 - application/json

Sucesso (CNPJ)

customer
object
response
boolean