Create customer
Create Customer
POST
https://sandbox.mnasati.com/v1/customer
This endpoint allows you to create customer accounts.
Headers
Name
Type
Description
Content-Type
string
Application/JSON
Access Token
string
The JWT Key is generated from the Authorization method.
Request Body
Name
Type
Description
confirm_password
string
Password repeat
password
string
Password
phone
integer
Phone Number
country_id
integer
Country ID
name
string
Customer Name
{"status":true,"message":"New customer created successfully."}
Examples
import http.client
conn = http.client.HTTPSConnection("sandbox.mnasati.com")
payload = "{\"name\":\"john\",\"country_id\":1,\"email\":\"johnd@gmail.com\",\"phone\":\"966441424\",\"password\":\"1234@#$%%\",\"confirm_password\":\"1234@#$%%\"}"
headers = {
'Content-Type': "",
'Authorization-Jwt': ""
}
conn.request("POST", "/v1/customer", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Last updated
Was this helpful?