Create Account User

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

Note:

  • API used for integration case as Partner.

  • API_KEY: <shop_key>

  • Partner 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

Last updated