POST api/Account/CreateAccount?authToken={authToken}

Creates the account.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
authToken

The authentication token.

string

Required

Body Parameters

The model.

AccountInsertModel
NameDescriptionTypeAdditional information
Name

string

Required

Max length: 256

Email

string

Required

Max length: 256

PhoneNumberPrefix

string

Required

PhoneNumber

string

Required

Matching regular expression pattern: ^(9|2{1})+([1-9]{1})+([0-9]{7})$

Max length: 128

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Email": "sample string 2",
  "PhoneNumberPrefix": "sample string 3",
  "PhoneNumber": "sample string 4"
}

application/xml, text/xml

Sample:
<AccountInsertModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOP.Apps.Web.Areas.Api.Models">
  <Email>sample string 2</Email>
  <Name>sample string 1</Name>
  <PhoneNumber>sample string 4</PhoneNumber>
  <PhoneNumberPrefix>sample string 3</PhoneNumberPrefix>
</AccountInsertModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResultOfAccountModel
NameDescriptionTypeAdditional information
Result

AccountModel

None.

ErrorCode

ServiceErrorCode

None.

ErrorMessage

Collection of string

None.

Success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": null,
  "ErrorCode": 0,
  "ErrorMessage": [
    "sample string 1",
    "sample string 2"
  ],
  "Success": true
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.