POST api/orders/placeorder

Request Information

URI Parameters

None.

Body Parameters

PlaceOrderRequest
NameDescriptionTypeAdditional information
BuyerId

integer

None.

DeliveryFee

decimal number

None.

DeliveryAddress

string

None.

DeliveryLatLng

string

None.

ContactNumber

string

None.

CartItems

Collection of CartItem

None.

OrderNo

string

None.

Request Formats

application/json, text/json

Sample:
{
  "BuyerId": 1,
  "DeliveryFee": 2.0,
  "DeliveryAddress": "sample string 3",
  "DeliveryLatLng": "sample string 4",
  "ContactNumber": "sample string 5",
  "CartItems": [
    {
      "BookId": 1,
      "Quantity": 2,
      "Price": 3.0
    },
    {
      "BookId": 1,
      "Quantity": 2,
      "Price": 3.0
    }
  ],
  "OrderNo": "sample string 6"
}

application/xml, text/xml

Sample:
<PlaceOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/bookLib_APIs.Controllers">
  <BuyerId>1</BuyerId>
  <CartItems>
    <CartItem>
      <BookId>1</BookId>
      <Price>3</Price>
      <Quantity>2</Quantity>
    </CartItem>
    <CartItem>
      <BookId>1</BookId>
      <Price>3</Price>
      <Quantity>2</Quantity>
    </CartItem>
  </CartItems>
  <ContactNumber>sample string 5</ContactNumber>
  <DeliveryAddress>sample string 3</DeliveryAddress>
  <DeliveryFee>2</DeliveryFee>
  <DeliveryLatLng>sample string 4</DeliveryLatLng>
  <OrderNo>sample string 6</OrderNo>
</PlaceOrderRequest>

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.