Customers Update
PUT https://api.ecartapi.com/api/v2/customers/{{id}}
Update the selected costumer's information.
Important information:
Request Body
{"customer"=>{"firstName"=>"Alex", "lastName"=>"de la Cruz Martinez", "note"=>"Customer is a great guy"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |
RESPONSES
status: OK
{"success":true,"customer":{"id":"cus_cl0jzmi6l0000mqk6cn385ag5","email":"test_test2@envia.com","firstName":"Alex","lastName":"De La Cruz Martinez","status":{"id":null,"status":null,"active":"false"},"note":"Customer is a great guy","phone":null,"currency":null,"addresses":[{"id":"adr_cl0jzmi6t0001mqk6lsdgb4f9","firstName":"Alex","lastName":"de la Cruz","address1":"Calle Hamburgo #218","address2":"Roma Norte","country":{"code":"MX","name":"Mexico","codeIso2":"MX","codeIso3":"MEX"},"state":{"code":"ZAC","name":"Zacatecas","codeIso2":null,"codeIso3":null},"city":"Guadalupe","postalCode":"06600","phone":"555-625-1199","company":"envia.com","references":null,"defaultBilling":null,"defaultShipping":null}],"dates":{"createdAt":"1646856139","updatedAt":"1646857681"}}}