eTelecom docs
English
English
  • INSTRUCTIONS FOR USE
    • Administration page for cs.etelecom
    • Google Chrome Extension
    • App eTelecom
  • API INTEGRATION
    • Shop
      • Account
      • Usage
    • Partner
      • Account
      • Usage
    • VPBX
      • VoIP SDK
        • Android
        • iOS
        • Web
        • Flutter
      • PBX REST APIs
        • Partner Get Tenant List
        • Partner Add Hotline
        • Partner Get Hotline List
        • Partner Activate Tenant
        • Partner Add Hotline To Tenant
        • Partner Removed Hotline From Tenant
        • Partner Remove Hotline
        • Create Tenant
        • Get Tenant information
        • Get Driver Config
        • Get hotline list
        • Create Account User
        • Get List User
        • Create extension
        • Get extension information
        • Get extension list
        • Assign extension to user
        • Change hotline for extension
        • Remove User Of Extension
        • Get call history
    • Zalo Cloud
      • Instructions for connecting Zalo Cloud
      • Zalo Cloud API
        • Create OA authorization link
        • Connect OA
        • Get refresh token
        • Get OA list
        • Get OA information
        • Update Webhook for OA
        • Get list of users
        • Send Text Consulting
        • Send Consulting message according to user information request form
        • Send advice message with sticker
        • Send message Consulting with attached photo
        • Send message Consulting attached file
        • Send transaction message
        • Upload file
        • Send request for calling permission
        • Check if the customer has granted calling permission
        • Get list of requests for calling permission
        • Create a news template
        • Get sample details
        • Get list of news samples
        • Journey Token Creation
        • Get Journey Token Details
        • Get Journey Token List
        • Get message list
        • Get message details
        • Send ZNS
        • Send ZNS with Journey Token
  • SMS BRANDNAME
    • User manual
    • SMS API
      • Send SMS
      • Get message status
      • Get sample details
Powered by GitBook
On this page
  1. API INTEGRATION
  2. VPBX
  3. PBX REST APIs

Create Account User

This API is used to add new user to the Shop.

PreviousGet hotline listNextGet List User

Last updated 5 months ago

Note:

  • API used for integration case as Partner.

  • API_KEY:

  • base_url information

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:

Parameters
Data type
Describe

full_name required

string

Employee Name

password

required

string

Login Password

phone

required

string

Phone number

Return data attribute structure:

Parameters
Data type
Describe

block_reason

string

Reason for Blocking

blocked_at

string<date-time>

Time blocked

created_at

string<date-time>

Initialization time

email

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

<shop_key>
Partner

CreateAccountUser

post
Body
full_namestringOptional
passwordstringOptional

Roles []shop_user_role.UserRole json:"roles"

phonestringOptional
Responses
200
A successful response
application/json
post
POST /CreateAccountUser HTTP/1.1
Host: $BASE_URL.Shop
Content-Type: application/json
Accept: */*
Content-Length: 53

{
  "full_name": "text",
  "password": "text",
  "phone": "text"
}
200

A successful response

{
  "block_reason": "text",
  "blocked_at": "2025-06-14T10:56:27.559Z",
  "created_at": "2025-06-14T10:56:27.559Z",
  "email": "text",
  "email_verification_sent_at": "2025-06-14T10:56:27.559Z",
  "email_verified_at": "2025-06-14T10:56:27.559Z",
  "full_name": "text",
  "id": "text",
  "is_blocked": true,
  "phone": "text",
  "phone_verification_sent_at": "2025-06-14T10:56:27.559Z",
  "phone_verified_at": "2025-06-14T10:56:27.559Z",
  "ref_aff": "text",
  "ref_sale": "text",
  "short_name": "text",
  "source": "unknown",
  "total_shop": 1,
  "updated_at": "2025-06-14T10:56:27.559Z"
}