GET api/Orders/GetOrderDetail?OrderId={OrderId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
OrderId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

OrderListUser
NameDescriptionTypeAdditional information
OrderID

globally unique identifier

None.

Address

UserAddressWhitCityViewModel

None.

Price

CalculatePriceOutputViewModel

None.

CreationDate

date

None.

SendDate

date

None.

SendTime

DeliveryTimeOprionViewModel

None.

OrderNumber

integer

None.

SendExpress

boolean

None.

StatusOrder

OrderStatus

None.

OrderDetails

Collection of OrderDetailListUser

None.

Response Formats

application/json, text/json

Sample:
{
  "OrderID": "4927e666-503e-4fb7-a375-a69ea123f32c",
  "Address": {
    "Title": "sample string 1",
    "PostalAddress": "sample string 2",
    "PostalCode": "sample string 3",
    "Tel": "sample string 4",
    "Latitude": 1.1,
    "Longitude": 1.1,
    "City": {
      "ProvinceId": "sample string 1",
      "CityId": 2,
      "Title": "sample string 3"
    }
  },
  "Price": {
    "Payable": 1.0,
    "ShippingCost": 2.0,
    "Tax": 3.0,
    "Discount": 4.0
  },
  "CreationDate": "2019-06-27T15:47:41.1288781+04:30",
  "SendDate": "2019-06-27T15:47:41.1288781+04:30",
  "SendTime": {
    "TimeId": "52631ba0-4d0b-4360-a858-1e7e64c2ccb2",
    "From": "sample string 1",
    "To": "sample string 2",
    "Enable": true
  },
  "OrderNumber": 4,
  "SendExpress": true,
  "StatusOrder": 0,
  "OrderDetails": [
    {
      "ProductTitle": "sample string 1",
      "ProductTypeTitle": "sample string 2",
      "ProductUnitTitle": "sample string 3",
      "PhotoPath": "sample string 4",
      "Price": 5.0,
      "Count": 6
    },
    {
      "ProductTitle": "sample string 1",
      "ProductTypeTitle": "sample string 2",
      "ProductUnitTitle": "sample string 3",
      "PhotoPath": "sample string 4",
      "Price": 5.0,
      "Count": 6
    }
  ]
}

text/html

Sample:
{"OrderID":"4927e666-503e-4fb7-a375-a69ea123f32c","Address":{"Title":"sample string 1","PostalAddress":"sample string 2","PostalCode":"sample string 3","Tel":"sample string 4","Latitude":1.1,"Longitude":1.1,"City":{"ProvinceId":"sample string 1","CityId":2,"Title":"sample string 3"}},"Price":{"Payable":1.0,"ShippingCost":2.0,"Tax":3.0,"Discount":4.0},"CreationDate":"2019-06-27T15:47:41.1288781+04:30","SendDate":"2019-06-27T15:47:41.1288781+04:30","SendTime":{"TimeId":"52631ba0-4d0b-4360-a858-1e7e64c2ccb2","From":"sample string 1","To":"sample string 2","Enable":true},"OrderNumber":4,"SendExpress":true,"StatusOrder":0,"OrderDetails":[{"ProductTitle":"sample string 1","ProductTypeTitle":"sample string 2","ProductUnitTitle":"sample string 3","PhotoPath":"sample string 4","Price":5.0,"Count":6},{"ProductTitle":"sample string 1","ProductTypeTitle":"sample string 2","ProductUnitTitle":"sample string 3","PhotoPath":"sample string 4","Price":5.0,"Count":6}]}

application/xml, text/xml

Sample:
<OrderListUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fruta.ViewModels">
  <Address>
    <City>
      <CityId>2</CityId>
      <ProvinceId>sample string 1</ProvinceId>
      <Title>sample string 3</Title>
    </City>
    <Latitude>1.1</Latitude>
    <Longitude>1.1</Longitude>
    <PostalAddress>sample string 2</PostalAddress>
    <PostalCode>sample string 3</PostalCode>
    <Tel>sample string 4</Tel>
    <Title>sample string 1</Title>
  </Address>
  <CreationDate>2019-06-27T15:47:41.1288781+04:30</CreationDate>
  <OrderDetails>
    <OrderDetailListUser>
      <Count>6</Count>
      <PhotoPath>sample string 4</PhotoPath>
      <Price>5</Price>
      <ProductTitle>sample string 1</ProductTitle>
      <ProductTypeTitle>sample string 2</ProductTypeTitle>
      <ProductUnitTitle>sample string 3</ProductUnitTitle>
    </OrderDetailListUser>
    <OrderDetailListUser>
      <Count>6</Count>
      <PhotoPath>sample string 4</PhotoPath>
      <Price>5</Price>
      <ProductTitle>sample string 1</ProductTitle>
      <ProductTypeTitle>sample string 2</ProductTypeTitle>
      <ProductUnitTitle>sample string 3</ProductUnitTitle>
    </OrderDetailListUser>
  </OrderDetails>
  <OrderID>4927e666-503e-4fb7-a375-a69ea123f32c</OrderID>
  <OrderNumber>4</OrderNumber>
  <Price>
    <Discount>4</Discount>
    <Payable>1</Payable>
    <ShippingCost>2</ShippingCost>
    <Tax>3</Tax>
  </Price>
  <SendDate>2019-06-27T15:47:41.1288781+04:30</SendDate>
  <SendExpress>true</SendExpress>
  <SendTime>
    <Enable>true</Enable>
    <From>sample string 1</From>
    <TimeId>52631ba0-4d0b-4360-a858-1e7e64c2ccb2</TimeId>
    <To>sample string 2</To>
  </SendTime>
  <StatusOrder>Unpaid</StatusOrder>
</OrderListUser>