POST api/TradingAccount/RegisterAccount

Request Information

URI Parameters

None.

Body Parameters

TradingAccountVM
NameDescriptionTypeAdditional information
Id

integer

None.

FirstName

string

Required

SecondName

string

Required

ThirdName

string

None.

ForthName

string

None.

Surname

string

None.

NameInEnglishAsPassport

string

Required

MotherName

string

Required

FatherName

string

None.

WifeName

string

None.

IDNumber

string

Required

ReleaseDate

date

Required

Data type: Date

ExpireDate

date

Required

Data type: Date

ResidenceCardNumber

string

Required

NationalityCertificateNumber

string

None.

PassportNumber

string

Required

PassportReleaseDate

date

Required

Data type: Date

PassportExpireDate

date

Data type: Date

Nationality

string

Required

DOB

date

Required

Data type: Date

ResidentAddress

string

Required

RoadORLand

string

None.

Block

string

None.

House

string

None.

Country

integer

Required

Province

integer

Required

PhoneNo

string

Required

Matching regular expression pattern: ^([0-9]{10})$

Email

string

Required

ProfessionDetails

integer

Required

Gender

integer

Required

MaritalStatus

integer

None.

SourceIncome

integer

Required

Education

string

Required

AnnualIncome

string

None.

WhichBanksYouDealWith

string

Required

RiskType

integer

Required

InvestmentType

integer

None.

PreviousOrPresentRelationship

string

Required

NationalIDFrontImage

HttpPostedFileBase

Required

NationalIdFront

string

None.

NationalIDBackImage

HttpPostedFileBase

Required

NationalIdBack

string

None.

SignatureDocumentPathImage

HttpPostedFileBase

None.

CustomerSignature

string

None.

ResidentIDFront

string

None.

ResidentIDFrontImage

HttpPostedFileBase

None.

ResidentIDBack

string

None.

ResidentIDBackImage

HttpPostedFileBase

None.

PassportFront

string

None.

PassportFrontImage

HttpPostedFileBase

None.

PassportBack

string

None.

PassportBackImage

HttpPostedFileBase

None.

OptionalIDFront

string

None.

OptionalIDFrontImage

HttpPostedFileBase

None.

OptionalIDBack

string

None.

OptionalIDBackImage

HttpPostedFileBase

None.

NationalCertificate

string

None.

NationalCertificateImage

HttpPostedFileBase

None.

Status

string

None.

IsArabic

boolean

None.

IsDownloaded

boolean

None.

InvestmentExperience

integer

Required

AnnualIncomeString

string

None.

IsActive

boolean

None.

IsCompleted

boolean

None.

IsDeleted

boolean

None.

CreationDate

date

None.

CreatedDateString

string

None.

CreatedBy

string

None.

ModifiedDate

date

None.

ModifiedBy

string

None.

MonthlyIncome

decimal number

None.

ExtraIncome

decimal number

None.

FirstBuyValue

decimal number

None.

MonthlyIncomeString

string

None.

ExtraIncomeString

string

None.

FirstBuyValueString

string

None.

BrokerageFirms

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "FirstName": "sample string 2",
  "SecondName": "sample string 3",
  "ThirdName": "sample string 4",
  "ForthName": "sample string 5",
  "Surname": "sample string 6",
  "NameInEnglishAsPassport": "sample string 7",
  "MotherName": "sample string 8",
  "FatherName": "sample string 9",
  "WifeName": "sample string 10",
  "IDNumber": "sample string 11",
  "ReleaseDate": "2024-03-30T08:46:05.3085181+00:00",
  "ExpireDate": "2024-03-30T08:46:05.3085181+00:00",
  "ResidenceCardNumber": "sample string 13",
  "NationalityCertificateNumber": "sample string 14",
  "PassportNumber": "sample string 15",
  "PassportReleaseDate": "2024-03-30T08:46:05.3085181+00:00",
  "PassportExpireDate": "2024-03-30T08:46:05.3085181+00:00",
  "Nationality": "sample string 16",
  "DOB": "2024-03-30T08:46:05.3085181+00:00",
  "ResidentAddress": "sample string 18",
  "RoadORLand": "sample string 19",
  "Block": "sample string 20",
  "House": "sample string 21",
  "Country": 1,
  "Province": 1,
  "PhoneNo": "sample string 22",
  "Email": "sample string 23",
  "ProfessionDetails": 1,
  "Gender": 1,
  "MaritalStatus": 1,
  "SourceIncome": 1,
  "Education": "sample string 24",
  "AnnualIncome": "sample string 25",
  "WhichBanksYouDealWith": "sample string 26",
  "RiskType": 1,
  "InvestmentType": 1,
  "PreviousOrPresentRelationship": "sample string 27",
  "NationalIDFrontImage": null,
  "NationalIdFront": "sample string 28",
  "NationalIDBackImage": null,
  "NationalIdBack": "sample string 29",
  "SignatureDocumentPathImage": null,
  "CustomerSignature": "sample string 30",
  "ResidentIDFront": "sample string 31",
  "ResidentIDFrontImage": null,
  "ResidentIDBack": "sample string 32",
  "ResidentIDBackImage": null,
  "PassportFront": "sample string 33",
  "PassportFrontImage": null,
  "PassportBack": "sample string 34",
  "PassportBackImage": null,
  "OptionalIDFront": "sample string 35",
  "OptionalIDFrontImage": null,
  "OptionalIDBack": "sample string 36",
  "OptionalIDBackImage": null,
  "NationalCertificate": "sample string 37",
  "NationalCertificateImage": null,
  "Status": "sample string 38",
  "IsArabic": true,
  "IsDownloaded": true,
  "InvestmentExperience": 1,
  "AnnualIncomeString": "sample string 39",
  "IsActive": true,
  "IsCompleted": true,
  "IsDeleted": true,
  "CreationDate": "2024-03-30T08:46:05.3085181+00:00",
  "CreatedDateString": "sample string 41",
  "CreatedBy": "sample string 42",
  "ModifiedDate": "2024-03-30T08:46:05.3085181+00:00",
  "ModifiedBy": "sample string 43",
  "MonthlyIncome": 1.0,
  "ExtraIncome": 1.0,
  "FirstBuyValue": 1.0,
  "MonthlyIncomeString": "sample string 44",
  "ExtraIncomeString": "sample string 45",
  "FirstBuyValueString": "sample string 46",
  "BrokerageFirms": "sample string 47"
}

application/xml, text/xml

Sample:
<TradingAccountVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StockTrading.Entities.Models">
  <AnnualIncome>sample string 25</AnnualIncome>
  <AnnualIncomeString>sample string 39</AnnualIncomeString>
  <Block>sample string 20</Block>
  <BrokerageFirms>sample string 47</BrokerageFirms>
  <Country>1</Country>
  <CreatedBy>sample string 42</CreatedBy>
  <CreatedDateString>sample string 41</CreatedDateString>
  <CreationDate>2024-03-30T08:46:05.3085181+00:00</CreationDate>
  <CustomerSignature>sample string 30</CustomerSignature>
  <DOB>2024-03-30T08:46:05.3085181+00:00</DOB>
  <Education>sample string 24</Education>
  <Email>sample string 23</Email>
  <ExpireDate>2024-03-30T08:46:05.3085181+00:00</ExpireDate>
  <ExtraIncome>1</ExtraIncome>
  <ExtraIncomeString>sample string 45</ExtraIncomeString>
  <FatherName>sample string 9</FatherName>
  <FirstBuyValue>1</FirstBuyValue>
  <FirstBuyValueString>sample string 46</FirstBuyValueString>
  <FirstName>sample string 2</FirstName>
  <ForthName>sample string 5</ForthName>
  <Gender>1</Gender>
  <House>sample string 21</House>
  <IDNumber>sample string 11</IDNumber>
  <Id>1</Id>
  <InvestmentExperience>1</InvestmentExperience>
  <InvestmentType>1</InvestmentType>
  <IsActive>true</IsActive>
  <IsArabic>true</IsArabic>
  <IsCompleted>true</IsCompleted>
  <IsDeleted>true</IsDeleted>
  <IsDownloaded>true</IsDownloaded>
  <MaritalStatus>1</MaritalStatus>
  <ModifiedBy>sample string 43</ModifiedBy>
  <ModifiedDate>2024-03-30T08:46:05.3085181+00:00</ModifiedDate>
  <MonthlyIncome>1</MonthlyIncome>
  <MonthlyIncomeString>sample string 44</MonthlyIncomeString>
  <MotherName>sample string 8</MotherName>
  <NameInEnglishAsPassport>sample string 7</NameInEnglishAsPassport>
  <NationalCertificate>sample string 37</NationalCertificate>
  <NationalCertificateImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
  <NationalIDBackImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
  <NationalIDFrontImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
  <NationalIdBack>sample string 29</NationalIdBack>
  <NationalIdFront>sample string 28</NationalIdFront>
  <Nationality>sample string 16</Nationality>
  <NationalityCertificateNumber>sample string 14</NationalityCertificateNumber>
  <OptionalIDBack>sample string 36</OptionalIDBack>
  <OptionalIDBackImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
  <OptionalIDFront>sample string 35</OptionalIDFront>
  <OptionalIDFrontImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
  <PassportBack>sample string 34</PassportBack>
  <PassportBackImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
  <PassportExpireDate>2024-03-30T08:46:05.3085181+00:00</PassportExpireDate>
  <PassportFront>sample string 33</PassportFront>
  <PassportFrontImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
  <PassportNumber>sample string 15</PassportNumber>
  <PassportReleaseDate>2024-03-30T08:46:05.3085181+00:00</PassportReleaseDate>
  <PhoneNo>sample string 22</PhoneNo>
  <PreviousOrPresentRelationship>sample string 27</PreviousOrPresentRelationship>
  <ProfessionDetails>1</ProfessionDetails>
  <Province>1</Province>
  <ReleaseDate>2024-03-30T08:46:05.3085181+00:00</ReleaseDate>
  <ResidenceCardNumber>sample string 13</ResidenceCardNumber>
  <ResidentAddress>sample string 18</ResidentAddress>
  <ResidentIDBack>sample string 32</ResidentIDBack>
  <ResidentIDBackImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
  <ResidentIDFront>sample string 31</ResidentIDFront>
  <ResidentIDFrontImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
  <RiskType>1</RiskType>
  <RoadORLand>sample string 19</RoadORLand>
  <SecondName>sample string 3</SecondName>
  <SignatureDocumentPathImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
  <SourceIncome>1</SourceIncome>
  <Status>sample string 38</Status>
  <Surname>sample string 6</Surname>
  <ThirdName>sample string 4</ThirdName>
  <WhichBanksYouDealWith>sample string 26</WhichBanksYouDealWith>
  <WifeName>sample string 10</WifeName>
</TradingAccountVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.