curl --request POST \
--url https://backend-pied-prod.piedadmin.com.br/api/v2/company \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"create": [
{
"name": "Jon",
"email": "[email protected]",
"password": "12345689",
"surname": "Doe",
"CPF": "000.000.000-00",
"CNPJ": "00.000.000/0000-00",
"address": {
"CEP": "00000-000",
"state": "SP",
"city": "São Paulo",
"patio": "Av. Brasil",
"number": "10",
"neighborhood": "Centro",
"complement": "Apt 101"
},
"cellphone": "(00) 00000-0000",
"responsible": "[email protected]",
"hasStateInscription": "sim",
"stateInscription": "000000000"
}
]
}
'{
"data": {
"success": true
},
"error": null
}curl --request POST \
--url https://backend-pied-prod.piedadmin.com.br/api/v2/company \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"create": [
{
"name": "Jon",
"email": "[email protected]",
"password": "12345689",
"surname": "Doe",
"CPF": "000.000.000-00",
"CNPJ": "00.000.000/0000-00",
"address": {
"CEP": "00000-000",
"state": "SP",
"city": "São Paulo",
"patio": "Av. Brasil",
"number": "10",
"neighborhood": "Centro",
"complement": "Apt 101"
},
"cellphone": "(00) 00000-0000",
"responsible": "[email protected]",
"hasStateInscription": "sim",
"stateInscription": "000000000"
}
]
}
'{
"data": {
"success": true
},
"error": null
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
"Jon"
"12345689"
"Doe"
Obrigatório se for pessoa física, se enviado juntamente com o CNPJ, será ignorado.
"000.000.000-00"
Obrigatório se for pessoa jurídica, se enviado juntamente com o CPF, o CPF será ignorado.
"00.000.000/0000-00"
Show child attributes
"00000-000"
UF
"SP"
"São Paulo"
"Av. Brasil"
"10"
"Centro"
"Apt 101"
"(00) 00000-0000"
E-mail do responsável, se o usuário não for encontrado, será ignorado.
"sim"
Este campo é obrigatório caso o campo 'temInscricaoEstadual' seja igual a 'sim'.
"000000000"