POST api/AddCustomer

Request Information

URI Parameters

None.

Body Parameters

ACustomer
NameDescriptionTypeAdditional information
customer

string

None.

customer_name

string

None.

address_Line_1

string

None.

address_Line_2

string

None.

address_Line_3

string

None.

post_Town

string

None.

county

string

None.

post_Code

string

None.

email

string

None.

contact_Name1

string

None.

openedby

integer

None.

maintainedby

integer

None.

price_Band

string

None.

comments

string

None.

companyType

string

None.

companySize

decimal number

None.

salutation

string

None.

productgroup

string

None.

turnover

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "customer": "sample string 1",
  "customer_name": "sample string 2",
  "address_Line_1": "sample string 3",
  "address_Line_2": "sample string 4",
  "address_Line_3": "sample string 5",
  "post_Town": "sample string 6",
  "county": "sample string 7",
  "post_Code": "sample string 8",
  "email": "sample string 9",
  "contact_Name1": "sample string 10",
  "openedby": 11,
  "maintainedby": 12,
  "price_Band": "sample string 13",
  "comments": "sample string 14",
  "companyType": "sample string 15",
  "companySize": 16.0,
  "salutation": "sample string 17",
  "productgroup": "sample string 18",
  "turnover": 19.0
}

text/xml

Sample:
<ACustomer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRMAPP.Models">
  <Address_Line_1>sample string 3</Address_Line_1>
  <Address_Line_2>sample string 4</Address_Line_2>
  <Address_Line_3>sample string 5</Address_Line_3>
  <Comments>sample string 14</Comments>
  <CompanySize>16</CompanySize>
  <CompanyType>sample string 15</CompanyType>
  <Contact_Name1>sample string 10</Contact_Name1>
  <County>sample string 7</County>
  <Customer>sample string 1</Customer>
  <Customer_Name>sample string 2</Customer_Name>
  <EMail>sample string 9</EMail>
  <Maintainedby>12</Maintainedby>
  <Openedby>11</Openedby>
  <Post_Code>sample string 8</Post_Code>
  <Post_Town>sample string 6</Post_Town>
  <Price_Band>sample string 13</Price_Band>
  <Productgroup>sample string 18</Productgroup>
  <Salutation>sample string 17</Salutation>
  <Turnover>19</Turnover>
</ACustomer>

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 'ACustomer'.

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.