PUT api/Account/{id}

Register a new account

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The id of the company to register the account to. 1 for klove, 2 for air1

integer

Required

Body Parameters

The new account information

AccountRegistrationData
NameDescriptionTypeAdditional information
UserName

The UserName for the account

string

Required

Password

The Password for the account

string

Required

FacebookTokenForBusiness

[optional] The facebook token for business.

string

None.

FirstName

The user's First Name

string

Required

Dob

The user's Date of Birth

date

None.

Gender

The user's Gender

GenderTypes

None.

Optin

Is OK for us to send the recient other emails for the network

boolean

None.

LastName

The user's Last Name

string

Required

AddressLine1

[optional] The Address Line 1

string

None.

AddressLine2

[optional] The Address Line 2

string

None.

AddressLine3

[optional] The Address Line 3

string

None.

AddressLine4

[optional] The Address Line 4

string

None.

AddressZipCode

The Address Zip Code

string

None.

AddressCountry

[optional] The Address Country code. USA is the default

string

None.

AddressStateProvince

[optional] The Address state or province

string

None.

AddressCity

[optional] The Address City

string

None.

PerformAddressValidation

Indicates if address validation is desired.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2",
  "FacebookTokenForBusiness": "sample string 3",
  "FirstName": "sample string 4",
  "Dob": "2024-10-25T03:35:29.4767586+00:00",
  "Gender": 1,
  "Optin": true,
  "LastName": "sample string 7",
  "AddressLine1": "sample string 8",
  "AddressLine2": "sample string 9",
  "AddressLine3": "sample string 10",
  "AddressLine4": "sample string 11",
  "AddressZipCode": "sample string 12",
  "AddressCountry": "sample string 13",
  "AddressStateProvince": "sample string 14",
  "AddressCity": "sample string 15",
  "PerformAddressValidation": true
}

application/xml, text/xml

Sample:
<AccountRegistrationData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Caf.DonorSystem.Mobile.WebApi.Models">
  <AddressCity>sample string 15</AddressCity>
  <AddressCountry>sample string 13</AddressCountry>
  <AddressLine1>sample string 8</AddressLine1>
  <AddressLine2>sample string 9</AddressLine2>
  <AddressLine3>sample string 10</AddressLine3>
  <AddressLine4>sample string 11</AddressLine4>
  <AddressStateProvince>sample string 14</AddressStateProvince>
  <AddressZipCode>sample string 12</AddressZipCode>
  <Dob>2024-10-25T03:35:29.4767586+00:00</Dob>
  <FacebookTokenForBusiness>sample string 3</FacebookTokenForBusiness>
  <FirstName>sample string 4</FirstName>
  <Gender>Male</Gender>
  <LastName>sample string 7</LastName>
  <Optin>true</Optin>
  <Password>sample string 2</Password>
  <PerformAddressValidation>true</PerformAddressValidation>
  <UserName>sample string 1</UserName>
</AccountRegistrationData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResult
NameDescriptionTypeAdditional information
HasErrors

True if there are any errors present

boolean

None.

Errors

The list of errors

Collection of ApiResultError

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.