Create Customer

POST {{baseUrl}}/customers

This endpoint allows you to create Customers within your store at Salla by providing the required data in this endpoint. You may need the Countries List endpoint to get the mobile and country codes.

Also, you may use the Customer Groups list to add the group's IDs for the new customer. Kindly note that customer's email and mobile number are unique.

Scope: customers.read_write- Customers Read & Write

Request Body

{"first_name"=>"<string>", "last_name"=>"<string>", "mobile"=>"<string>", "mobile_code_country"=>"<string>", "email"=>"<string>", "gender"=>"male", "birthday"=>"YYYY-MM-DD", "groups"=>["<integer>", "<integer>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;status&quot;:&quot;\u003cnumber\u003e&quot;,&quot;success&quot;:&quot;\u003cboolean\u003e&quot;,&quot;data&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;first_name&quot;:&quot;ASuXpW\fgFcW\u2028eHQLlbB Zfj K&quot;,&quot;last_name&quot;:&quot;xIkPZqYb\u2029jqBuFMFMqK\u000bGEnPn&quot;,&quot;mobile&quot;:&quot;\u003cnumber\u003e&quot;,&quot;mobile_code&quot;:&quot;\u003cstring\u003e&quot;,&quot;email&quot;:&quot;\u003cstring\u003e&quot;,&quot;urls&quot;:{&quot;customer&quot;:&quot;\u003cstring\u003e&quot;,&quot;admin&quot;:&quot;\u003cstring\u003e&quot;},&quot;avatar&quot;:&quot;\u003cstring\u003e&quot;,&quot;gender&quot;:&quot;\u003cstring\u003e&quot;,&quot;brithday&quot;:{&quot;date&quot;:&quot;\u003cstring\u003e&quot;,&quot;timezone_type&quot;:&quot;\u003cinteger\u003e&quot;,&quot;timezone&quot;:&quot;\u003cstring\u003e&quot;},&quot;city&quot;:&quot;\u003cstring\u003e&quot;,&quot;country&quot;:&quot;\u003cstring\u003e&quot;,&quot;country_code&quot;:&quot;\u003cstring\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;,&quot;location&quot;:&quot;\u003cstring\u003e&quot;,&quot;updated_at&quot;:{&quot;date&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timezone_type&quot;:&quot;\u003cnumber\u003e&quot;,&quot;timezone&quot;:&quot;\u003cstring\u003e&quot;},&quot;groups&quot;:[&quot;\u003cinteger\u003e&quot;,&quot;\u003cinteger\u003e&quot;]}}