Customer

PUT htpps://api.ecartapi.com/api/v2/customers/{{id}}

Request Body

{"customer"=>{"firstName"=>"Rigoberto", "lastName"=>"Garza", "phone"=>"8180762600", "email"=>"rigoberto.garza@ecart.com", "addresses"=>[{"defaultBilling"=>"true", "address1"=>"Belisario Domínguez número 2470", "city"=>"Monterrey", "postalCode"=>"64060", "country"=>{"code"=>"MX"}}]}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"success":true,"customer":{"id":"67","email":"rigoberto.garza@ecart.com","firstName":"Rigoberto Garza","lastName":null,"status":{"id":null,"status":"active"},"note":null,"phone":"8180762600","currency":"USD","addresses":[{"id":"167","firstName":null,"lastName":null,"address1":"Belisario Domínguez número 2470","address2":null,"country":{"code":null,"name":null,"codeIso2":null,"codeIso3":null},"state":{"code":"Belisario Domínguez número 2470","name":"Belisario Domínguez número 2470","codeIso2":null,"codeIso3":null},"city":"Monterrey","postalCode":"64060","phone":null,"company":null,"references":null,"defaultBilling":null,"defaultShipping":null}],"dates":{"createdAt":"2024-07-03T12:38:28-07:00","updatedAt":"2024-07-03T12:53:31-07:00"}}}