POST api/Orders

Request Information

URI Parameters

None.

Body Parameters

OrderHeader
NameDescriptionTypeAdditional information
id

integer

None.

fullNumber

string

None.

createDate

date

None.

shippingDate

date

None.

description

string

None.

packingForm

string

None.

status

string

None.

totalNetAmount

decimal number

None.

totalGrossAmount

decimal number

None.

elements

Collection of OrderElement

None.

showPrices

boolean

None.

customerId

string

None.

customerCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "fullNumber": "sample string 2",
  "createDate": "2025-12-27T17:21:37.3553406+01:00",
  "shippingDate": "2025-12-27T17:21:37.3553406+01:00",
  "description": "sample string 5",
  "packingForm": "sample string 6",
  "status": "sample string 7",
  "totalNetAmount": 8.0,
  "totalGrossAmount": 9.0,
  "elements": [
    {
      "elementId": 1,
      "productId": 2,
      "productExternalId": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "unit": "sample string 6",
      "netPrice": 7.0,
      "grossPrice": 8.0,
      "quantity": 9.1,
      "totalNetAmount": 10.0,
      "totalGrossAmount": 11.0,
      "vatRate": 12.0,
      "image": "QEA=",
      "showPrices": true
    },
    {
      "elementId": 1,
      "productId": 2,
      "productExternalId": "sample string 3",
      "code": "sample string 4",
      "name": "sample string 5",
      "unit": "sample string 6",
      "netPrice": 7.0,
      "grossPrice": 8.0,
      "quantity": 9.1,
      "totalNetAmount": 10.0,
      "totalGrossAmount": 11.0,
      "vatRate": 12.0,
      "image": "QEA=",
      "showPrices": true
    }
  ],
  "showPrices": true,
  "customerId": "sample string 11",
  "customerCode": "sample string 12"
}

application/xml, text/xml

Sample:
<OrderHeader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiGelato.Models">
  <createDate>2025-12-27T17:21:37.3553406+01:00</createDate>
  <customerCode>sample string 12</customerCode>
  <customerId>sample string 11</customerId>
  <description>sample string 5</description>
  <elements>
    <OrderElement>
      <code>sample string 4</code>
      <elementId>1</elementId>
      <grossPrice>8</grossPrice>
      <image>QEA=</image>
      <name>sample string 5</name>
      <netPrice>7</netPrice>
      <productExternalId>sample string 3</productExternalId>
      <productId>2</productId>
      <quantity>9.1</quantity>
      <showPrices>true</showPrices>
      <totalGrossAmount>11</totalGrossAmount>
      <totalNetAmount>10</totalNetAmount>
      <unit>sample string 6</unit>
      <vatRate>12</vatRate>
    </OrderElement>
    <OrderElement>
      <code>sample string 4</code>
      <elementId>1</elementId>
      <grossPrice>8</grossPrice>
      <image>QEA=</image>
      <name>sample string 5</name>
      <netPrice>7</netPrice>
      <productExternalId>sample string 3</productExternalId>
      <productId>2</productId>
      <quantity>9.1</quantity>
      <showPrices>true</showPrices>
      <totalGrossAmount>11</totalGrossAmount>
      <totalNetAmount>10</totalNetAmount>
      <unit>sample string 6</unit>
      <vatRate>12</vatRate>
    </OrderElement>
  </elements>
  <fullNumber>sample string 2</fullNumber>
  <id>1</id>
  <packingForm>sample string 6</packingForm>
  <shippingDate>2025-12-27T17:21:37.3553406+01:00</shippingDate>
  <showPrices>true</showPrices>
  <status>sample string 7</status>
  <totalGrossAmount>9</totalGrossAmount>
  <totalNetAmount>8</totalNetAmount>
</OrderHeader>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.