POST api/MyCart/CheckoutOrder

Request Information

URI Parameters

None.

Body Parameters

W_Order
NameDescriptionTypeAdditional information
OrderItems

Collection of W_MyCartItem

Required

Request Formats

application/json, text/json

Sample:
{
  "orderItems": [
    {
      "listingID": 1,
      "quantity": 2,
      "notes": "sample string 3",
      "deliveryPickupMethod": "ALL",
      "itemRequiredDateTime": "2019-12-10T08:38:14.4387734-07:00",
      "addressID": 5,
      "dateTimeLocation": {
        "orderDateTime": "2019-12-10T08:38:14.4387734-07:00",
        "location": {
          "latitude": 1.1,
          "longitude": 2.1
        }
      },
      "referedBy": "sample string 6"
    },
    {
      "listingID": 1,
      "quantity": 2,
      "notes": "sample string 3",
      "deliveryPickupMethod": "ALL",
      "itemRequiredDateTime": "2019-12-10T08:38:14.4387734-07:00",
      "addressID": 5,
      "dateTimeLocation": {
        "orderDateTime": "2019-12-10T08:38:14.4387734-07:00",
        "location": {
          "latitude": 1.1,
          "longitude": 2.1
        }
      },
      "referedBy": "sample string 6"
    }
  ]
}

application/xml, text/xml

Sample:
<W_Order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <OrderItems>
    <W_MyCartItem>
      <AddressID>5</AddressID>
      <DateTimeLocation>
        <Location>
          <latitude>1.1</latitude>
          <longitude>2.1</longitude>
        </Location>
        <OrderDateTime>2019-12-10T08:38:14.4387734-07:00</OrderDateTime>
      </DateTimeLocation>
      <DeliveryPickupMethod>ALL</DeliveryPickupMethod>
      <ItemRequiredDateTime>2019-12-10T08:38:14.4387734-07:00</ItemRequiredDateTime>
      <ListingID>1</ListingID>
      <Notes>sample string 3</Notes>
      <Quantity>2</Quantity>
      <ReferedBy>sample string 6</ReferedBy>
    </W_MyCartItem>
    <W_MyCartItem>
      <AddressID>5</AddressID>
      <DateTimeLocation>
        <Location>
          <latitude>1.1</latitude>
          <longitude>2.1</longitude>
        </Location>
        <OrderDateTime>2019-12-10T08:38:14.4387734-07:00</OrderDateTime>
      </DateTimeLocation>
      <DeliveryPickupMethod>ALL</DeliveryPickupMethod>
      <ItemRequiredDateTime>2019-12-10T08:38:14.4387734-07:00</ItemRequiredDateTime>
      <ListingID>1</ListingID>
      <Notes>sample string 3</Notes>
      <Quantity>2</Quantity>
      <ReferedBy>sample string 6</ReferedBy>
    </W_MyCartItem>
  </OrderItems>
</W_Order>

multipart/form-data

Sample:
<W_Order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><OrderItems><W_MyCartItem><AddressID>5</AddressID><DateTimeLocation><Location><latitude>1.1</latitude><longitude>2.1</longitude></Location><OrderDateTime>2019-12-10T08:38:14.4387734-07:00</OrderDateTime></DateTimeLocation><DeliveryPickupMethod>ALL</DeliveryPickupMethod><ItemRequiredDateTime>2019-12-10T08:38:14.4387734-07:00</ItemRequiredDateTime><ListingID>1</ListingID><Notes>sample string 3</Notes><Quantity>2</Quantity><ReferedBy>sample string 6</ReferedBy></W_MyCartItem><W_MyCartItem><AddressID>5</AddressID><DateTimeLocation><Location><latitude>1.1</latitude><longitude>2.1</longitude></Location><OrderDateTime>2019-12-10T08:38:14.4387734-07:00</OrderDateTime></DateTimeLocation><DeliveryPickupMethod>ALL</DeliveryPickupMethod><ItemRequiredDateTime>2019-12-10T08:38:14.4387734-07:00</ItemRequiredDateTime><ListingID>1</ListingID><Notes>sample string 3</Notes><Quantity>2</Quantity><ReferedBy>sample string 6</ReferedBy></W_MyCartItem></OrderItems></W_Order>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'W_Order'.

Response Information

Resource Description

DBStatusWithLastKey
NameDescriptionTypeAdditional information
LastUpdatedKey

string

None.

Type

DBOperation

None.

ErrorMessage

Collection of DBMessageType

None.

Message

Collection of string

None.

InnerException

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "lastUpdatedKey": "sample string 1",
  "type": "ERROR",
  "errorMessage": [
    "SUCCESSFULLY_DATA_INSERTED",
    "SUCCESSFULLY_DATA_INSERTED"
  ],
  "message": [
    "sample string 1",
    "sample string 2"
  ],
  "innerException": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<DBStatusWithLastKey xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <ErrorMessage xmlns:d2p1="http://schemas.datacontract.org/2004/07/DBEnumStructure">
    <d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType>
    <d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType>
  </ErrorMessage>
  <InnerException xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </InnerException>
  <Message xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Message>
  <Type>ERROR</Type>
  <LastUpdatedKey>sample string 1</LastUpdatedKey>
</DBStatusWithLastKey>

multipart/form-data

Sample:
<DBStatusWithLastKey xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><ErrorMessage xmlns:d2p1="http://schemas.datacontract.org/2004/07/DBEnumStructure"><d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType><d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType></ErrorMessage><InnerException xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:string>sample string 1</d2p1:string><d2p1:string>sample string 2</d2p1:string></InnerException><Message xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:string>sample string 1</d2p1:string><d2p1:string>sample string 2</d2p1:string></Message><Type>ERROR</Type><LastUpdatedKey>sample string 1</LastUpdatedKey></DBStatusWithLastKey>