Light Mode
Create Customer
POST
/customersLast modified:Â a month ago
This endpoint allows you to create Customers within your store at Salla by providing the required data in this endpoint.
:::tip[Note]
- 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.
- Customer's email and mobile number are unique.
:::
Request
Body Params application/json
No schema defined
Example
{
"first_name": "Ahmed",
"last_name": "Ali",
"mobile": "777777777",
"mobile_code_country": "+967",
"country_code": "SA",
"gender": "female",
"birthday": "1997-06-03",
"email": "[email protected]",
"groups": [
"11323141",
"11323142"
]
}
Request samples
Responses
Created Successfully(200)
Error Validation(422)
Created Successfully
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": {
"id": 2075683582,
"first_name": "Ahmed",
"last_name": "Ali",
"mobile": 777777777,
"mobile_code": "967",
"email": "[email protected]",
"urls": {
"customer": "https://shtara.com/profile",
"admin": "https://shtara.com/profiley"
},
"avatar": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"gender": "male",
"city": "Riyadh",
"country": "السعودية",
"location": "null",
"updated_at": {
"date": "2020-04-02 22:43:26.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"groups": [
11323141,
11323142
]
}
}
Last modified: a month ago