GET api/Order/GetOrderByid?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

OrderModel
NameDescriptionTypeAdditional information
id

integer

None.

FirstName1

string

None.

LastName1

string

None.

Email1

string

None.

CompanyName1

string

None.

Address1

string

None.

Address2

string

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.

IsShipToOtherAddress

boolean

None.

VAT

string

None.

TotalAmount

string

None.

OrderStatus

string

None.

CityName1

string

None.

CityName2

string

None.

Statusid

integer

None.

ClientId

string

None.

IsActive

boolean

None.

IsDeleted

boolean

None.

CreatedOn

date

None.

Cityid1

integer

None.

ModifiedBy

string

None.

Provinceid1

byte

None.

Cityid2

integer

None.

Provinceid2

byte

None.

ReadStatus

boolean

None.

CancelReason

string

None.

Shipping

string

None.

TQuantity

integer

None.

Orderdetail

Collection of OrderDetailModel

None.

Response 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",
  "ZipCode1": "sample string 8",
  "Phone1": "sample string 9",
  "FirstName2": "sample string 10",
  "LastName2": "sample string 11",
  "Email2": "sample string 12",
  "CompanyName2": "sample string 13",
  "ZipCode2": "sample string 14",
  "Phone2": "sample string 15",
  "IsShipToOtherAddress": true,
  "VAT": "sample string 16",
  "TotalAmount": "sample string 17",
  "OrderStatus": "sample string 18",
  "CityName1": "sample string 19",
  "CityName2": "sample string 20",
  "Statusid": 21,
  "ClientId": "sample string 22",
  "IsActive": true,
  "IsDeleted": true,
  "CreatedOn": "2019-05-23T13:52:33.3396655+05:00",
  "Cityid1": 26,
  "ModifiedBy": "sample string 27",
  "Provinceid1": 64,
  "Cityid2": 1,
  "Provinceid2": 64,
  "ReadStatus": true,
  "CancelReason": "sample string 30",
  "Shipping": "sample string 31",
  "TQuantity": 1,
  "Orderdetail": [
    {
      "id": 1,
      "Orderid": 2,
      "Colorid": 3,
      "Productid": 4,
      "ProductName": "sample string 5",
      "ColorName": "sample string 6",
      "ProductStock": 1,
      "Quantity": 1,
      "Subtotal": "sample string 7",
      "VAT": "sample string 8",
      "ProductPrice": "sample string 9",
      "Discount": "sample string 10"
    },
    {
      "id": 1,
      "Orderid": 2,
      "Colorid": 3,
      "Productid": 4,
      "ProductName": "sample string 5",
      "ColorName": "sample string 6",
      "ProductStock": 1,
      "Quantity": 1,
      "Subtotal": "sample string 7",
      "VAT": "sample string 8",
      "ProductPrice": "sample string 9",
      "Discount": "sample string 10"
    }
  ]
}

application/xml, text/xml

Sample:
<OrderModel 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>
  <CancelReason>sample string 30</CancelReason>
  <CityName1>sample string 19</CityName1>
  <CityName2>sample string 20</CityName2>
  <Cityid1>26</Cityid1>
  <Cityid2>1</Cityid2>
  <ClientId>sample string 22</ClientId>
  <CompanyName1>sample string 5</CompanyName1>
  <CompanyName2>sample string 13</CompanyName2>
  <CreatedOn>2019-05-23T13:52:33.3396655+05:00</CreatedOn>
  <Email1>sample string 4</Email1>
  <Email2>sample string 12</Email2>
  <FirstName1>sample string 2</FirstName1>
  <FirstName2>sample string 10</FirstName2>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <IsShipToOtherAddress>true</IsShipToOtherAddress>
  <LastName1>sample string 3</LastName1>
  <LastName2>sample string 11</LastName2>
  <ModifiedBy>sample string 27</ModifiedBy>
  <OrderStatus>sample string 18</OrderStatus>
  <Orderdetail>
    <OrderDetailModel>
      <ColorName>sample string 6</ColorName>
      <Colorid>3</Colorid>
      <Discount>sample string 10</Discount>
      <Orderid>2</Orderid>
      <ProductName>sample string 5</ProductName>
      <ProductPrice>sample string 9</ProductPrice>
      <ProductStock>1</ProductStock>
      <Productid>4</Productid>
      <Quantity>1</Quantity>
      <Subtotal>sample string 7</Subtotal>
      <VAT>sample string 8</VAT>
      <id>1</id>
    </OrderDetailModel>
    <OrderDetailModel>
      <ColorName>sample string 6</ColorName>
      <Colorid>3</Colorid>
      <Discount>sample string 10</Discount>
      <Orderid>2</Orderid>
      <ProductName>sample string 5</ProductName>
      <ProductPrice>sample string 9</ProductPrice>
      <ProductStock>1</ProductStock>
      <Productid>4</Productid>
      <Quantity>1</Quantity>
      <Subtotal>sample string 7</Subtotal>
      <VAT>sample string 8</VAT>
      <id>1</id>
    </OrderDetailModel>
  </Orderdetail>
  <Phone1>sample string 9</Phone1>
  <Phone2>sample string 15</Phone2>
  <Provinceid1>64</Provinceid1>
  <Provinceid2>64</Provinceid2>
  <ReadStatus>true</ReadStatus>
  <Shipping>sample string 31</Shipping>
  <Statusid>21</Statusid>
  <TQuantity>1</TQuantity>
  <TotalAmount>sample string 17</TotalAmount>
  <VAT>sample string 16</VAT>
  <ZipCode1>sample string 8</ZipCode1>
  <ZipCode2>sample string 14</ZipCode2>
  <id>1</id>
</OrderModel>