Create customer
It is recommended to use the parameter customerId to avoid duplicate records.
Creating a customer with the following details:
- Customer ID: 1
- First name: José
- Last name: Silva
- Email: jose.silva@email.com
- Phone number: 351#961234567
- Request
- Response
POST /customers
{
"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.