POST api/order/SubmitApiOrder

Submit an sales order

Request Information

URI Parameters

None.

Body Parameters

ApiOrderRequest
NameDescriptionTypeAdditional information
Warehouse

string

None.

PONo

string

None.

ShipInstruction

string

None.

PromoCode

string

None.

ShipTo

string

None.

ShipVia

string

None.

RequestShipDate

date

None.

ShippingAddress

ShippingAddress

None.

OrderItems

Collection of ApiOrderItem

None.

Request Formats

application/json, text/json

Sample:
{
  "Warehouse": "sample string 1",
  "PONo": "sample string 2",
  "ShipInstruction": "sample string 3",
  "PromoCode": "sample string 4",
  "ShipTo": "sample string 5",
  "ShipVia": "sample string 6",
  "RequestShipDate": "2024-02-28T01:10:13.9895755-08:00",
  "ShippingAddress": {
    "Name": "sample string 1",
    "Address1": "sample string 2",
    "Address2": "sample string 3",
    "City": "sample string 4",
    "StateCode": "sample string 5",
    "ZipCode": "sample string 6",
    "Phone": "sample string 7",
    "ShipToCode": "sample string 8",
    "Reference": "sample string 9"
  },
  "OrderItems": [
    {
      "ItemNo": "sample string 1",
      "Qty": 2,
      "Price": 3.0
    },
    {
      "ItemNo": "sample string 1",
      "Qty": 2,
      "Price": 3.0
    }
  ]
}

application/xml, text/xml

Sample:
<ApiOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DFS.WebAPI.Models">
  <OrderItems>
    <ApiOrderItem>
      <ItemNo>sample string 1</ItemNo>
      <Price>3</Price>
      <Qty>2</Qty>
    </ApiOrderItem>
    <ApiOrderItem>
      <ItemNo>sample string 1</ItemNo>
      <Price>3</Price>
      <Qty>2</Qty>
    </ApiOrderItem>
  </OrderItems>
  <PONo>sample string 2</PONo>
  <PromoCode>sample string 4</PromoCode>
  <RequestShipDate>2024-02-28T01:10:13.9895755-08:00</RequestShipDate>
  <ShipInstruction>sample string 3</ShipInstruction>
  <ShipTo>sample string 5</ShipTo>
  <ShipVia>sample string 6</ShipVia>
  <ShippingAddress xmlns:d2p1="http://schemas.datacontract.org/2004/07/App.WebAPI.Models">
    <d2p1:Address1>sample string 2</d2p1:Address1>
    <d2p1:Address2>sample string 3</d2p1:Address2>
    <d2p1:City>sample string 4</d2p1:City>
    <d2p1:Name>sample string 1</d2p1:Name>
    <d2p1:Phone>sample string 7</d2p1:Phone>
    <d2p1:Reference>sample string 9</d2p1:Reference>
    <d2p1:ShipToCode>sample string 8</d2p1:ShipToCode>
    <d2p1:StateCode>sample string 5</d2p1:StateCode>
    <d2p1:ZipCode>sample string 6</d2p1:ZipCode>
  </ShippingAddress>
  <Warehouse>sample string 1</Warehouse>
</ApiOrderRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.