POST api/User/AddCustomer

Request Information

URI Parameters

None.

Body Parameters

RegisterCustomerModel
NameDescriptionTypeAdditional information
UserID

integer

None.

FullNameEn

string

None.

FullNameAr

string

None.

UserEmail

string

None.

LoginName

string

None.

UserPassword

string

None.

CountryID

integer

None.

PhoneNumber

string

None.

ImagePath

string

None.

CompanyName

string

None.

TypeofBusiness

string

None.

CompanyLicenceNumber

string

None.

RoleID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "userID": 1,
  "fullNameEn": "sample string 1",
  "fullNameAr": "sample string 2",
  "userEmail": "sample string 3",
  "loginName": "sample string 4",
  "userPassword": "sample string 5",
  "countryID": 6,
  "phoneNumber": "sample string 7",
  "imagePath": "sample string 8",
  "companyName": "sample string 9",
  "typeofBusiness": "sample string 10",
  "companyLicenceNumber": "sample string 11",
  "roleID": 12
}

application/xml, text/xml

Sample:
<RegisterCustomerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SelfHub.API.Models">
  <CompanyLicenceNumber>sample string 11</CompanyLicenceNumber>
  <CompanyName>sample string 9</CompanyName>
  <CountryID>6</CountryID>
  <FullNameAr>sample string 2</FullNameAr>
  <FullNameEn>sample string 1</FullNameEn>
  <ImagePath>sample string 8</ImagePath>
  <LoginName>sample string 4</LoginName>
  <PhoneNumber>sample string 7</PhoneNumber>
  <RoleID>12</RoleID>
  <TypeofBusiness>sample string 10</TypeofBusiness>
  <UserEmail>sample string 3</UserEmail>
  <UserID>1</UserID>
  <UserPassword>sample string 5</UserPassword>
</RegisterCustomerModel>

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.