Partner API - Create new company
This article is part of the Partner API documentation.
Method (POST) to create a company.
https://sistema.demander.com.br/public/parceiro/v1/empresas/criar?token={{your token}}
| Property | Tipo | Required | Description |
| token | text | Yes | Partner Token |
| razaoSocial | text | Yes | |
| ativo | text | No | 0 - inactive, 1 - active (defaults to active if omitted) |
| nomeFantasia | text | Yes | |
| CNPJ | text | Yes | Without mask |
| IE | text | Yes | Without mask |
| endereco | text | Yes | Full address: street, number, neighborhood |
| text | Yes | ||
| telefones | text | Yes | With mask. Ex: (51) 3714-7050 |
| codCidadeIBGE | text | Yes | City code according to IBGE |
Response: (After creating the company, Demander returns the information below with the token generated for the company):
{ "razaoSocial": "RETTA TECNOLOGIA DA INFORMAÇÂO LTDA", "ativo": 1, "nomeFantasia": "RETTA TECNOLOGIA", "CNPJ": "07.676.543/0001-722", "IE": "ISENTO", "endereco": "R VANDA NEVES FREITAS", "telefones": "(51) 3714-7050", "email": "suporte@retta.com.br", "token": "TOKEN DA EMPRESA", "dataLimiteTeste": "2019-06-28 01:32:14", "id": 100, "statusEmpresa": { "id": 30, "descricao": "Em Produção" }}