POST api/v1/admin/accounts/{id}

This api method creates a subaccount for your account. You need to pass in all the relevant details together with the master account id. A good amount of validation is added, so make sure that you follow the criteria for each of the attributes.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Account id of the master account. To be able to link the master with the sub account.

globally unique identifier

Required

Body Parameters

AccountRegisterRequest
NameDescriptionTypeAdditional information
Firstname

Firstname of the account

string

Required

Lastname

Lastname of the account

string

Required

CompanyName

Company name the account is working for

string

None.

MobilePhone

Mobile number of the account

string

None.

Email

Email address of the account

string

Required

Password

Password of the account

string

Required

PasswordConfirmation

Confirmed password of the account

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Firstname": "sample string 1",
  "Lastname": "sample string 2",
  "CompanyName": "sample string 3",
  "MobilePhone": "sample string 4",
  "Email": "sample string 5",
  "Password": "sample string 6",
  "PasswordConfirmation": "sample string 7"
}

application/xml, text/xml

Sample:
<AccountRegisterRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Firstname>sample string 1</Firstname>
  <Lastname>sample string 2</Lastname>
  <CompanyName>sample string 3</CompanyName>
  <MobilePhone>sample string 4</MobilePhone>
  <Email>sample string 5</Email>
  <Password>sample string 6</Password>
  <PasswordConfirmation>sample string 7</PasswordConfirmation>
  <TimeZoneInJavaFormat>sample string 8</TimeZoneInJavaFormat>
</AccountRegisterRequest>

Response Information

Resource Description

ResponseOfAccountRegisterResponse
NameDescriptionTypeAdditional information
Error

Error

None.

ResponseData

ResponseDataOfAccountRegisterResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": {
      "ID": "4bca263a-83e0-4c26-a074-b0bec445e15b"
    }
  }
}

application/xml, text/xml

Sample:
<ResponseOfAccountRegisterResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorReason>sample string 2</ErrorReason>
  </Error>
  <ResponseData>
    <Result>sample string 1</Result>
    <Identification>
      <UserId>sample string 1</UserId>
    </Identification>
    <Detail>
      <ID>4bca263a-83e0-4c26-a074-b0bec445e15b</ID>
    </Detail>
  </ResponseData>
</ResponseOfAccountRegisterResponse>