POST api/orders

Request Information

URI Parameters

None.

Body Parameters

CreateOrderRequest
NameDescriptionTypeAdditional information
CustomerId

integer

None.

StoreId

integer

None.

Items

Collection of CreateOrderItemRequest

None.

StoreGroups

Collection of StoreOrderGroupRequest

None.

CustomerAddress

string

None.

CustomerLat

decimal number

None.

CustomerLng

decimal number

None.

DeliveryFee

decimal number

None.

IsPriorityDelivery

boolean

None.

PriorityFeeAmount

decimal number

None.

RedeemPoints

integer

None.

CouponCode

string

None.

Notes

string

None.

PreferredDriverId

integer

None.

RequestedDeliveryAtUtc

date

None.

PaymentMethod

string

None.

Request Formats

application/json, text/json

Sample:
{
  "customerId": 1,
  "storeId": 1,
  "items": [
    {
      "productId": 1,
      "quantity": 2
    },
    {
      "productId": 1,
      "quantity": 2
    }
  ],
  "storeGroups": [
    {
      "storeId": 1,
      "items": [
        {
          "productId": 1,
          "quantity": 2
        },
        {
          "productId": 1,
          "quantity": 2
        }
      ],
      "notes": "sample string 2",
      "quotedDeliveryFee": 3.0
    },
    {
      "storeId": 1,
      "items": [
        {
          "productId": 1,
          "quantity": 2
        },
        {
          "productId": 1,
          "quantity": 2
        }
      ],
      "notes": "sample string 2",
      "quotedDeliveryFee": 3.0
    }
  ],
  "customerAddress": "sample string 2",
  "customerLat": 3.0,
  "customerLng": 4.0,
  "deliveryFee": 5.0,
  "isPriorityDelivery": true,
  "priorityFeeAmount": 7.0,
  "redeemPoints": 8,
  "couponCode": "sample string 9",
  "notes": "sample string 10",
  "preferredDriverId": 1,
  "requestedDeliveryAtUtc": "2026-08-25T10:05:52.8263205Z",
  "paymentMethod": "sample string 11"
}

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 2</CustomerAddress>
  <CustomerId>1</CustomerId>
  <CustomerLat>3</CustomerLat>
  <CustomerLng>4</CustomerLng>
  <DeliveryFee>5</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>
  <PaymentMethod>sample string 11</PaymentMethod>
  <PreferredDriverId>1</PreferredDriverId>
  <PriorityFeeAmount>7</PriorityFeeAmount>
  <RedeemPoints>8</RedeemPoints>
  <RequestedDeliveryAtUtc>2026-08-25T05:05:52.8263205-05:00</RequestedDeliveryAtUtc>
  <StoreGroups>
    <StoreOrderGroupRequest>
      <Items>
        <CreateOrderItemRequest>
          <ProductId>1</ProductId>
          <Quantity>2</Quantity>
        </CreateOrderItemRequest>
        <CreateOrderItemRequest>
          <ProductId>1</ProductId>
          <Quantity>2</Quantity>
        </CreateOrderItemRequest>
      </Items>
      <Notes>sample string 2</Notes>
      <QuotedDeliveryFee>3</QuotedDeliveryFee>
      <StoreId>1</StoreId>
    </StoreOrderGroupRequest>
    <StoreOrderGroupRequest>
      <Items>
        <CreateOrderItemRequest>
          <ProductId>1</ProductId>
          <Quantity>2</Quantity>
        </CreateOrderItemRequest>
        <CreateOrderItemRequest>
          <ProductId>1</ProductId>
          <Quantity>2</Quantity>
        </CreateOrderItemRequest>
      </Items>
      <Notes>sample string 2</Notes>
      <QuotedDeliveryFee>3</QuotedDeliveryFee>
      <StoreId>1</StoreId>
    </StoreOrderGroupRequest>
  </StoreGroups>
  <StoreId>1</StoreId>
</CreateOrderRequest>

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.