Create Account User
This API is used to add new user to the Shop.
Roles []shop_user_role.UserRole json:"roles"
POST /CreateAccountUser HTTP/1.1
Host: $BASE_URL.Shop
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"full_name": "text",
"password": "text",
"phone": "text"
}
A successful response
{
"block_reason": "text",
"blocked_at": "2025-08-03T06:07:40.330Z",
"created_at": "2025-08-03T06:07:40.330Z",
"email": "text",
"email_verification_sent_at": "2025-08-03T06:07:40.330Z",
"email_verified_at": "2025-08-03T06:07:40.330Z",
"full_name": "text",
"id": "text",
"is_blocked": true,
"phone": "text",
"phone_verification_sent_at": "2025-08-03T06:07:40.330Z",
"phone_verified_at": "2025-08-03T06:07:40.330Z",
"ref_aff": "text",
"ref_sale": "text",
"short_name": "text",
"source": "unknown",
"total_shop": 1,
"updated_at": "2025-08-03T06:07:40.330Z"
}
Request:
curl --location '$BASE_URL.Shop/CreateAccountUser' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API-KEY' \
--data '{
"full_name": "<string>",
"password": "<string>",
"phone": "<string>"
}'
Response:
{
"block_reason": "string",
"blocked_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"email": "string",
"email_verification_sent_at": "2019-08-24T14:15:22Z",
"email_verified_at": "2019-08-24T14:15:22Z",
"full_name": "string",
"id": "string",
"is_blocked": true,
"phone": "string",
"phone_verification_sent_at": "2019-08-24T14:15:22Z",
"phone_verified_at": "2019-08-24T14:15:22Z",
"ref_aff": "string",
"ref_sale": "string",
"short_name": "string",
"source": "unknown",
"total_shop": 0,
"updated_at": "2019-08-24T14:15:22Z"
}
Request body structure:
full_name required
string
Employee Name
password
required
string
Login Password
phone
required
string
Phone number
Return data attribute structure:
block_reason
string
Reason for Blocking
blocked_at
string<date-time>
Time blocked
created_at
string<date-time>
Initialization time
string
Email address
email_verification_sent_at
string<date-time>
Time to send verification email
email_verified_at
string<date-time>
Email verification time
full_name
string
Employee Name
id
string
Employee ID
is_blocked
boolean
Blocked status
True
False
phone
string
Phone number
phone_verification_sent_at
string<date-time>
Phone number verification sending time
phone_verified_at
string<date-time>
Phone number verification time
short_name
string
Short name
total_shop
int
Total number of shops owned
updated_at
string<date-time>
Update time
Last updated