Skip to main content
POST
/
company
Cria uma ou mais empresas de energia
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
}

Authorizations

Authorization
string
header
required

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

Body

application/json
create
object[]

Response

OK

data
object
error
string
Example:

null