POST API/SalesPersonAPI/AddCustomer

Request Information

URI Parameters

None.

Body Parameters

AddCustomerRequestModel
NameDescriptionTypeAdditional information
SalesPersonId

string

None.

CustomerName

string

None.

CustomerCategory

string

None.

Address

string

None.

City

string

None.

StateId

string

None.

MobileNo

string

None.

Email

string

None.

VisitDate

string

None.

CurrentProductName

string

None.

CurrentLatitude

string

None.

CurrentLongitude

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SalesPersonId": "sample string 1",
  "CustomerName": "sample string 2",
  "CustomerCategory": "sample string 3",
  "Address": "sample string 4",
  "City": "sample string 5",
  "StateId": "sample string 6",
  "MobileNo": "sample string 7",
  "Email": "sample string 8",
  "VisitDate": "sample string 9",
  "CurrentProductName": "sample string 10",
  "CurrentLatitude": "sample string 11",
  "CurrentLongitude": "sample string 12"
}

application/xml, text/xml

Sample:
<AddCustomerRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UpTracModels">
  <Address>sample string 4</Address>
  <City>sample string 5</City>
  <CurrentLatitude>sample string 11</CurrentLatitude>
  <CurrentLongitude>sample string 12</CurrentLongitude>
  <CurrentProductName>sample string 10</CurrentProductName>
  <CustomerCategory>sample string 3</CustomerCategory>
  <CustomerName>sample string 2</CustomerName>
  <Email>sample string 8</Email>
  <MobileNo>sample string 7</MobileNo>
  <SalesPersonId>sample string 1</SalesPersonId>
  <StateId>sample string 6</StateId>
  <VisitDate>sample string 9</VisitDate>
</AddCustomerRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AddCustomerRequestModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.