POST Create company
Changed onCom este endpoint, você pode criar uma subconta e, a partir disso, manipular a conta utilizando o seu respectivo token.
Esse processo permite que você gerencie subcontas de forma independente dentro do sistema.
Disponível apenas para contas revendedoras (outras contas recebem 501).
Regras:
- company_brand e company_icon são imagens (PNG ou JPG) e exigem multipart/form-data; quando omitidas, a subconta herda a logo e o ícone da revendedora.
- email precisa ser único entre empresas e usuários da plataforma.
- Sem password, a plataforma gera uma senha e a envia por e-mail ao administrador; com password, nenhum e-mail é enviado.
- Padrões: can_login = 1, editablevalidate = 1, unlimited = 0. O administrador é criado com status Active.
- A subconta recebe um token de API de 337 caracteres (campo token da resposta e company.access.token), vinculado à sua revendedora.
- limits só pode ser enviado por uma conta revendedora principal; uma subconta que tenta definir limites recebe 403.
Request
- Base URLhttps://app.plugsign.com.br
- URLhttps://app.plugsign.com.br/api/companies
- AuthAPI key in header Authorization
Request body
Response
200
Example response
{
"message": "Cliente cadastrado com sucesso!",
"token_type": "Bearer",
"token": "Ab3dEf...token de 337 caracteres...Xy9Z",
"company": {
"id": 148,
"name": "Empresa XYZ",
"email": "exemplo@teste.com.br",
"phone": "11999999999",
"cnpj": "11.111.111/1111-11",
"address": "Rua dos anjos, 123, Centro, São Paulo",
"company_name": "Empresa Exemplo LTDA",
"can_login": 1,
"editablevalidate": 1
}
}Changes
- breaking
request property
was restricted to a list of enum values - breaking
request property
was restricted to a list of enum values - breaking
the
request property's minLength was increased from0to2 - breaking
the
request property's minLength was increased from0to10 - breaking
the
request property type changed fromstringtointeger - breaking
the
request property type changed fromstringtointeger - breaking
the
request property type changed fromintegertoboolean, and format fromint32to no format - warning
the
request property's maxLength was set to255 - warning
the
request property's maxLength was set to100 - warning
the
request property's maxLength was set to15 - warning
the
request property's max was set to7.00 - warning
the
request property's min was set to1.00 - warning
removed the optional property
/from the response with the status - info
the
request property default valuetruewas added - info
the
request property default value1was added - info
the
request property default valuefalsewas added - info
added the new
0.00enum value to the request property - info
added the new
0.00enum value to the request property - info
added the new
1.00enum value to the request property - info
added the new
1.00enum value to the request property - info
added the new
2.00enum value to the request property - info
added the new
2.00enum value to the request property - info
added the new
files_totalenum value to the request property// - info
added the new
whatsappenum value to the request property// - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status
- breaking