Customers
Criação de novo customer para cobrança
Visão Geral
Tokens
Charges
Sessions
Customers
Merchants
Vendors
Sellers
Webhooks
Reports
Customers
Criação de novo customer para cobrança
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"
}
}'
Body
application/json
Response
201
Created.
Was this page helpful?
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"
}
}'