POST api/orders

Request Information

URI Parameters

None.

Body Parameters

CreateOrderRequest
NameDescriptionTypeAdditional information
CustomerId

integer

None.

StoreId

integer

None.

CustomerAddress

string

None.

CustomerLat

decimal number

None.

CustomerLng

decimal number

None.

DeliveryFee

decimal number

None.

IsPriorityDelivery

boolean

None.

RedeemPoints

integer

None.

CouponCode

string

None.

Notes

string

None.

PreferredDriverId

integer

None.

RequestedDeliveryAtUtc

date

None.

Items

Collection of CreateOrderItemRequest

None.

Request Formats

application/json, text/json

Sample:
{
  "customerId": 1,
  "storeId": 2,
  "customerAddress": "sample string 3",
  "customerLat": 4.0,
  "customerLng": 5.0,
  "deliveryFee": 6.0,
  "isPriorityDelivery": true,
  "redeemPoints": 8,
  "couponCode": "sample string 9",
  "notes": "sample string 10",
  "preferredDriverId": 1,
  "requestedDeliveryAtUtc": "2026-05-17T05:04:59.7829286Z",
  "items": [
    {
      "productId": 1,
      "quantity": 2
    },
    {
      "productId": 1,
      "quantity": 2
    }
  ]
}

application/xml, text/xml

Sample:
<CreateOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Del.Api.Models.Dtos">
  <CouponCode>sample string 9</CouponCode>
  <CustomerAddress>sample string 3</CustomerAddress>
  <CustomerId>1</CustomerId>
  <CustomerLat>4</CustomerLat>
  <CustomerLng>5</CustomerLng>
  <DeliveryFee>6</DeliveryFee>
  <IsPriorityDelivery>true</IsPriorityDelivery>
  <Items>
    <CreateOrderItemRequest>
      <ProductId>1</ProductId>
      <Quantity>2</Quantity>
    </CreateOrderItemRequest>
    <CreateOrderItemRequest>
      <ProductId>1</ProductId>
      <Quantity>2</Quantity>
    </CreateOrderItemRequest>
  </Items>
  <Notes>sample string 10</Notes>
  <PreferredDriverId>1</PreferredDriverId>
  <RedeemPoints>8</RedeemPoints>
  <RequestedDeliveryAtUtc>2026-05-17T00:04:59.7829286-05:00</RequestedDeliveryAtUtc>
  <StoreId>2</StoreId>
</CreateOrderRequest>

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 'CreateOrderRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.