Create customer
Recomenda-se a utilização do parâmetro customerId
para evitar registos duplicados.
Creation of a customer with the following data:
- Customer identifier: 1
- First name: José
- Last name:: Silva
- Email: jose.silva@email.com
- Phone number: 351#961234567
POST /customers
- Request
- Response
{
"customerId": "1",
"firstName": "José",
"lastName": "Silva",
"email": "jose.silva@email.com",
"phoneNumber": "351#123456789"
}
{
"apiVersion": "1.0",
"date": "2021-12-07T18:01:19+00:00",
"success": true,
"data": {
"uuid": "e2343605-cf46-43de-b20b-9b7d1c95a9b2",
"customerId": "123",
"firstName": "José",
"lastName": "Silva",
"email": "jose.silva@email.com",
"phoneNumber": "351#961234567"
}
}
When the customer is successfully created, a unique identifier (uuid) is generated that identifies the customer to the API.