A user in the Venddor API has various properties represented by fields. This document provides a comprehensive list of all supported fields, along with their descriptions, default values, and supported data types.
The following table lists all available fields for user objects:
Field Name | Description | Default Value | Supported Values |
---|---|---|---|
email* | User's e-mail | — | Valid e-mail address |
user_type* | User type:A for AdminC for Customer |
— | A C |
company_id* | ID of the store or vendor the user belongs to | Default company ID | integer |
status* | User status:A for ActiveD for DisabledH for Hidden |
A |
A D H |
firstname | User's first name | — | string |
lastname | User's last name | — | string |
company | User company | 'Your company' | string |
company_name | Same as company | — | string |
is_root | If Y , the user is a root administrator,if N , the user is not a root administrator |
Y for adminN for customer |
Y N |
user_id | User ID. Used only if the "Use email as login" setting is disabled | Set automatically | integer |
user_login | User login | — | string |
timestamp | Creation timestamp | Set automatically | Valid timestamp in seconds |
password | The value of this field is md5 hash of user password. Used only when creating and updating a user | — | string |
{ "email": "john.doe@example.com", "user_type": "C", "company_id": 1, "status": "A", "firstname": "John", "lastname": "Doe", "company": "Acme Corporation", "password": "5f4dcc3b5aa765d61d8327deb882cf99" }
Retrieves a list of all users.
Retrieves details of a specific user by ID.
Creates a new user with the provided information.
Updates an existing user with the provided information.
Deletes a user with the specified ID.