Add new customer
POST {{baseUrl}}/customers
Service urls:
http://yourdomain.com/api/rest_admin/customers
OR
http://yourdomain.com/index.php?route=rest/customer_admin/customers
Request Body
{"firstname"=>"<string>", "lastname"=>"<string>", "email"=>"<string>", "telephone"=>"<string>", "password"=>"<string>", "confirm"=>"<string>", "fax"=>"<string>", "newsletter"=>0, "status"=>1, "approved"=>1, "safe"=>0, "customer_group_id"=>1, "custom_field"=>{"1"=>"<string>", "2"=>"<string>"}, "address"=>[{"firstname"=>"<string>", "lastname"=>"<string>", "city"=>"<string>", "address_1"=>"<string>", "country_id"=>"<integer>", "postcode"=>"<string>", "zone_id"=>"<integer>", "address_id"=>"<integer>", "company"=>"<string>", "address_2"=>"<string>", "default"=>0, "custom_field"=>{"3"=>"<string>"}}, {"firstname"=>"<string>", "lastname"=>"<string>", "city"=>"<string>", "address_1"=>"<string>", "country_id"=>"<integer>", "postcode"=>"<string>", "zone_id"=>"<integer>", "address_id"=>"<integer>", "company"=>"<string>", "address_2"=>"<string>", "default"=>0, "custom_field"=>{"3"=>"<string>"}}], "affiliate"=>{"company"=>"<string>", "website"=>"<string>", "tracking"=>"<string>", "commission"=>"<integer>", "tax"=>"<string>", "cheque"=>"<string>", "paypal"=>"<string>", "bank_name"=>"<string>", "bank_branch_number"=>"<string>", "bank_swift_code"=>"<string>", "bank_account_name"=>"<string>", "bank_account_number"=>"<string>", "status"=>"<integer>", "payment"=>"<string>", "custom_field"=>{"1"=>"<string>"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"success":"\u003cinteger\u003e","error":["\u003cstring\u003e","\u003cstring\u003e"],"data":"\u003cobject\u003e"}