customers

Criar um cliente

Changed on

Criar um novo cliente.

post/api/management/customers

Request

  • Base URL: https://api.olie.ai
  • URL: https://api.olie.ai/api/management/customers
  • Auth: HTTP bearer

Request body

namestring required

Nome do cliente

company_namestring

Razão social do cliente

document_type1 | 2 required

1 = CPF, 2 = CNPJ

customer_type1 | 2 required

1 = Matriz, 2 = Filial

documentstring

Documento do cliente (CPF ou CNPJ, conforme document_type)

main_activitystring

Atividade principal do cliente

emailstring email

E-mail do cliente

phonestring

Telefone do cliente

addressstring

Endereço do cliente

descriptionstring

Descrição do cliente

statusboolean

Indica se o cliente está ativo

parent_idstring uuid

ID do cliente matriz. Obrigatório quando customer_type = 2 e proibido quando customer_type = 1

Response

Sucesso (CNPJ)

Changes

    • breaking

      the request property became not nullable

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      the request property's maxLength was decreased to 191

    • warning

      removed the request property

    • warning

      removed the request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property