POST api/box/orders

Request Information

URI Parameters

None.

Body Parameters

BoxOnlineOrderCreateDTO
NameDescriptionTypeAdditional information
Terminal

integer

Required

Firstname

string

Required

Lastname

string

None.

EmailAddress

string

Required

Mobile

string

Required

String length: inclusive between 0 and 14

IsForDelivery

boolean

Required

DeliveryDetails

BoxOnlineOrderDeliveryDTO

None.

Boxes

Collection of BoxOnlineOrderItemDTO

Required

PaymentMethod

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Terminal": 1,
  "Firstname": "sample string 2",
  "Lastname": "sample string 3",
  "EmailAddress": "sample string 4",
  "Mobile": "sample string 5",
  "IsForDelivery": true,
  "DeliveryDetails": {
    "PartnerId": 1,
    "Location": "sample string 2",
    "BrgyId": "sample string 3",
    "Lat": 4.1,
    "Lon": 5.1,
    "VehicleId": "sample string 6",
    "DeliveryFee": 7.0,
    "DeliveryRateReference": "sample string 8",
    "TotalKm": 9.1
  },
  "Boxes": [
    {
      "BoxTypeId": "sample string 1",
      "Qty": 2,
      "TotalAmount": 3.0
    },
    {
      "BoxTypeId": "sample string 1",
      "Qty": 2,
      "TotalAmount": 3.0
    }
  ],
  "PaymentMethod": "sample string 7"
}

application/xml, text/xml

Sample:
<BoxOnlineOrderCreateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shipping_API.Models.DTO">
  <Boxes>
    <BoxOnlineOrderItemDTO>
      <BoxTypeId>sample string 1</BoxTypeId>
      <Qty>2</Qty>
      <TotalAmount>3</TotalAmount>
    </BoxOnlineOrderItemDTO>
    <BoxOnlineOrderItemDTO>
      <BoxTypeId>sample string 1</BoxTypeId>
      <Qty>2</Qty>
      <TotalAmount>3</TotalAmount>
    </BoxOnlineOrderItemDTO>
  </Boxes>
  <DeliveryDetails>
    <BrgyId>sample string 3</BrgyId>
    <DeliveryFee>7</DeliveryFee>
    <DeliveryRateReference>sample string 8</DeliveryRateReference>
    <Lat>4.1</Lat>
    <Location>sample string 2</Location>
    <Lon>5.1</Lon>
    <PartnerId>1</PartnerId>
    <TotalKm>9.1</TotalKm>
    <VehicleId>sample string 6</VehicleId>
  </DeliveryDetails>
  <EmailAddress>sample string 4</EmailAddress>
  <Firstname>sample string 2</Firstname>
  <IsForDelivery>true</IsForDelivery>
  <Lastname>sample string 3</Lastname>
  <Mobile>sample string 5</Mobile>
  <PaymentMethod>sample string 7</PaymentMethod>
  <Terminal>1</Terminal>
</BoxOnlineOrderCreateDTO>

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.