POST api/Order/UpdateAddress

Request Information

URI Parameters

None.

Body Parameters

AddressModel
NameDescriptionTypeAdditional information
id

integer

None.

FirstName1

string

None.

LastName1

string

None.

Email1

string

None.

CompanyName1

string

None.

Address1

string

None.

Address2

string

None.

Cityid1

integer

None.

Provinceid1

byte

None.

Cityid2

integer

None.

Provinceid2

byte

None.

ZipCode1

string

None.

Phone1

string

None.

FirstName2

string

None.

LastName2

string

None.

Email2

string

None.

CompanyName2

string

None.

ZipCode2

string

None.

Phone2

string

None.

ClientId

string

None.

IsActive

boolean

None.

CreatedOn

date

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "FirstName1": "sample string 2",
  "LastName1": "sample string 3",
  "Email1": "sample string 4",
  "CompanyName1": "sample string 5",
  "Address1": "sample string 6",
  "Address2": "sample string 7",
  "Cityid1": 8,
  "Provinceid1": 64,
  "Cityid2": 1,
  "Provinceid2": 64,
  "ZipCode1": "sample string 10",
  "Phone1": "sample string 11",
  "FirstName2": "sample string 12",
  "LastName2": "sample string 13",
  "Email2": "sample string 14",
  "CompanyName2": "sample string 15",
  "ZipCode2": "sample string 16",
  "Phone2": "sample string 17",
  "ClientId": "sample string 18",
  "IsActive": true,
  "CreatedOn": "2019-09-18T04:10:31.9482334+05:00"
}

application/xml, text/xml

Sample:
<AddressModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GreenTech.Models.Order">
  <Address1>sample string 6</Address1>
  <Address2>sample string 7</Address2>
  <Cityid1>8</Cityid1>
  <Cityid2>1</Cityid2>
  <ClientId>sample string 18</ClientId>
  <CompanyName1>sample string 5</CompanyName1>
  <CompanyName2>sample string 15</CompanyName2>
  <CreatedOn>2019-09-18T04:10:31.9482334+05:00</CreatedOn>
  <Email1>sample string 4</Email1>
  <Email2>sample string 14</Email2>
  <FirstName1>sample string 2</FirstName1>
  <FirstName2>sample string 12</FirstName2>
  <IsActive>true</IsActive>
  <LastName1>sample string 3</LastName1>
  <LastName2>sample string 13</LastName2>
  <Phone1>sample string 11</Phone1>
  <Phone2>sample string 17</Phone2>
  <Provinceid1>64</Provinceid1>
  <Provinceid2>64</Provinceid2>
  <ZipCode1>sample string 10</ZipCode1>
  <ZipCode2>sample string 16</ZipCode2>
  <id>1</id>
</AddressModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.