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.
:::tip - 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. :::
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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"status":"\u003cnumber\u003e","success":"\u003cboolean\u003e","data":{"id":"\u003cnumber\u003e","first_name":"slWAmNplU'dClgbjIP UkNFeC","last_name":"BELPvnBR\tO JVlOmqjaTz\rRYH","mobile":"\u003cnumber\u003e","mobile_code":"\u003cstring\u003e","email":"\u003cstring\u003e","urls":{"customer":"\u003cstring\u003e","admin":"\u003cstring\u003e"},"avatar":"\u003cstring\u003e","gender":"\u003cstring\u003e","brithday":{"date":"\u003cstring\u003e","timezone_type":"\u003cinteger\u003e","timezone":"\u003cstring\u003e"},"city":"\u003cstring\u003e","country":"\u003cstring\u003e","country_code":"\u003cstring\u003e","currency":"\u003cstring\u003e","location":"\u003cstring\u003e","updated_at":{"date":"\u003cdateTime\u003e","timezone_type":"\u003cnumber\u003e","timezone":"\u003cstring\u003e"},"groups":["\u003cinteger\u003e","\u003cinteger\u003e"]}}