POST api/weborder/orderinstore

Provides a true/false on creation of a Order In Store web order, given a web order create model.

Request Information

URI Parameters

None.

Body Parameters

The web order create model

OisHeaderCreateModel
NameDescriptionTypeAdditional information
OrderNo

string

Required

String length: inclusive between 0 and 255

ShopId

integer

Required

Range: inclusive between 1 and 2147483647

OrderReference

string

String length: inclusive between 0 and 255

OrderedOn

date

None.

CustomerNumber

integer

Required

Range: inclusive between 0 and 9,22337203685478E+18

ReceiveAddress

string

String length: inclusive between 0 and 255

ReturnAddress

string

String length: inclusive between 0 and 2147483647

WebOrderLines

Collection of LineCreateModel

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderNo": "sample string 1",
  "ShopId": 2,
  "OrderReference": "sample string 3",
  "OrderedOn": "2025-05-04T05:23:14.9525803+02:00",
  "CustomerNumber": 5,
  "ReceiveAddress": "sample string 6",
  "ReturnAddress": "sample string 7",
  "WebOrderLines": [
    {
      "VariantId": 1,
      "SalesPrice": 2.1,
      "EffectiveSalesPrice": 3.1,
      "DiscountAmount": 4.1,
      "DeliveryNo": "sample string 5",
      "Notes": "sample string 6"
    },
    {
      "VariantId": 1,
      "SalesPrice": 2.1,
      "EffectiveSalesPrice": 3.1,
      "DiscountAmount": 4.1,
      "DeliveryNo": "sample string 5",
      "Notes": "sample string 6"
    }
  ]
}

application/xml, text/xml

Sample:
<WebOrderHeaderOisCreateDTOOfWebOrderLineCreateDTOiTlCtTkQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <ReceiveAddress>sample string 6</ReceiveAddress>
  <ReturnAddress>sample string 7</ReturnAddress>
  <WebOrderLines>
    <WebOrderLineCreateDTO>
      <DeliveryNo>sample string 5</DeliveryNo>
      <DiscountAmount>4.1</DiscountAmount>
      <EffectiveSalesPrice>3.1</EffectiveSalesPrice>
      <Notes>sample string 6</Notes>
      <SalesPrice>2.1</SalesPrice>
      <VariantId>1</VariantId>
    </WebOrderLineCreateDTO>
    <WebOrderLineCreateDTO>
      <DeliveryNo>sample string 5</DeliveryNo>
      <DiscountAmount>4.1</DiscountAmount>
      <EffectiveSalesPrice>3.1</EffectiveSalesPrice>
      <Notes>sample string 6</Notes>
      <SalesPrice>2.1</SalesPrice>
      <VariantId>1</VariantId>
    </WebOrderLineCreateDTO>
  </WebOrderLines>
  <CustomerNumber>5</CustomerNumber>
  <OrderNo>sample string 1</OrderNo>
  <OrderReference>sample string 3</OrderReference>
  <OrderedOn>2025-05-04T05:23:14.9525803+02:00</OrderedOn>
  <ShopId>2</ShopId>
</WebOrderHeaderOisCreateDTOOfWebOrderLineCreateDTOiTlCtTkQ>

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 'WebOrderHeaderOisCreateDTO`1'.

Response Information

Resource Description

True/false

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>