Create sub-user

Create a sub-user in the marketplace.

📘

Each master user can have a list of sub-users in our marketplace API. A master user can call the API referencing a specific sub-user, on which behalf the operation will be performed.

Request Endpoint: reference

POST /users
ParameterParam TypeDescriptionData TypeMandatory
typeBodyWe only allow the type: SUB_USERString
nicknameBodyA nickname for your sub user to identify themString

Example Request:

POST https://api.venly.market/users
{
  "type": "SUB_USER",
  "nickname": "johndoe"
}

Response Body:

{
  "success": true,
  "result": {
    "id": "8cf5f1a8-b3bb-4a81-9f1c-c1746d8eb59f",
    "nickname": "johndoe via MarketplaceMasterUser",
    "type": "SUB_USER",
    "parentUserId": "dd4956c5-c292-4996-b7dc-2f4d1e58d6b0"
  }
}