POST
/
v1
/
customers
curl --request POST \
  --url https://api.malga.io/v1/customers \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Client-Id: <api-key>' \
  --data '{
  "name": "Customer test",
  "email": "jose2@gmail.com",
  "phoneNumber": "21 98889999099",
  "document": {
    "number": "97055503019",
    "type": "cpf",
    "country": "BR"
  },
  "address": {
    "country": "BR",
    "state": "Rio de Janeiro",
    "city": "Rio de Janeiro",
    "district": "Leblon",
    "zipCode": "25650011",
    "street": "Av Geraldo Cardoso",
    "streetNumber": "205",
    "complement": "Apto 203"
  }
}'

Authorizations

X-Client-Id
string
headerrequired
X-Api-Key
string
headerrequired

Body

application/json
name
string
required

nome do usuario

email
string
required

email do usuario

phoneNumber
string
required

telefone de contato do usuario

document
object
required
address
object