POST https://api.ecartapi.com/api/v2/customers
Registers a new costumer. Important information:
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
Content-Type
|
string | ||
Authorization
|
string |
RESPONSES
status OK
{
"success": true,
"customer": {
"id": "1732088692836",
"email": "test@envia.com",
"firstName": "Alex",
"lastName": "de la Cruz",
"status": "disabled",
"note": null,
"phone": null,
"currency": "MXN",
"addresses": [
{
"id": "1823732695140",
"firstName": "Alex",
"lastName": "de la Cruz",
"address1": "Av Vazconcelos 1440",
"address2": "Col. Palo Blanco",
"country": {
"code": "MX",
"name": "Mexico"
},
"state": {
"code": "NL",
"name": "Nuevo León"
},
"city": "San Pedro Garza García",
"postalcode": "60000",
"phone": "018181818181",
"company": "Envia",
"references": null,
"defaultBilling": null,
"defaultShipping": null
}
],
"createdAt": "2019-05-21T14:49:57-04:00",
"updatedAt": "2019-05-21T14:49:57-04:00"
}
} |
ENDPOINTS