POST api/Supplier/AddorUpdateSupplier

Request Information

URI Parameters

None.

Body Parameters

SupplierEntities
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

FirstName

string

None.

MiddleName

string

None.

LastName

string

None.

Email

string

None.

Mobile

string

None.

Address

string

None.

GST

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "FirstName": "sample string 3",
  "MiddleName": "sample string 4",
  "LastName": "sample string 5",
  "Email": "sample string 6",
  "Mobile": "sample string 7",
  "Address": "sample string 8",
  "GST": "sample string 9"
}

text/html

Sample:
{"Id":1,"Name":"sample string 2","FirstName":"sample string 3","MiddleName":"sample string 4","LastName":"sample string 5","Email":"sample string 6","Mobile":"sample string 7","Address":"sample string 8","GST":"sample string 9"}

application/xml, text/xml

Sample:
<SupplierEntities xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Meridukan_API.Entities.Supplier">
  <Address>sample string 8</Address>
  <Email>sample string 6</Email>
  <FirstName>sample string 3</FirstName>
  <GST>sample string 9</GST>
  <Id>1</Id>
  <LastName>sample string 5</LastName>
  <MiddleName>sample string 4</MiddleName>
  <Mobile>sample string 7</Mobile>
  <Name>sample string 2</Name>
</SupplierEntities>

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.