POST Orders/AddUpdateOrder

Wijzig of maak een nieuwe order aan Return het id van de gewijzigde/nieuwe order

Request Information

URI Parameters

None.

Body Parameters

Order
NameDescriptionTypeAdditional information
Id

Id

integer

None.

BranchId

Filiaalnummer zie eindpunt /Company/GetBranches

integer

None.

Description

Beschrijving

string

None.

Reference

Referentie

string

None.

DebtorId

Debiteurnummer

integer

Required

UserId

UserId

integer

None.

Notes

Notitie

string

None.

CreationDate

Order datum

date

Required

Totals

Order total prijzen

Order_Totals

None.

DeliveryAddress

Aflever adres gegevens

CustomerAddress

None.

InvoiceAddress

Factuur adres gegevens

CustomerAddress

None.

PaymentMethod

Betaal optie gegevens

PaymentMethod

None.

OrderStatus

Order status gegevens

OrderStatus

Required

ShippingMethod

Verzend optie gegevens

Order_ShippingMethod

None.

OrderShipments

Order verzending informatie

Collection of Order_Shipment

None.

DeliveryDate

Indicatieve leverdatum

date

None.

OrderShipmentFreeValues

Vrije velden voor verzending

OrderShipmentFreeValue

None.

WebsiteDomainId

Websitenummer waar de order aan gekoppeld is.

integer

None.

DeliveryOptionId

Afleveroptie

integer

None.

FreeValue1

Vrij veld 1

string

None.

FreeValue2

Vrij veld 2

string

None.

FreeValue3

Vrij veld 3

string

None.

FreeValue4

Vrij veld 4

string

None.

FreeValue5

Vrij veld 5

string

None.

FreeValue6

Vrij veld 6

string

None.

FreeValue7

Vrij veld 7

string

None.

FreeValue8

Vrij veld 8

string

None.

InvoiceBelongsToOrderNumber

Als de factuur aan 1 order gekoppeld is staat hierin het ordernummer (dit geldt dus niet voor verzamelfacturen). Dit geldt alleen voor het eindpunt /Orders/GetInvoices

integer

None.

CostCentre

Kostenplaats

DebtorCostCentre

None.

OrderType1Id

Order type 1

integer

None.

OrderType2Id

Order type 2

integer

None.

OrderType3Id

Order type 3

integer

None.

OrderRows

Orderregels

Collection of OrderRow

None.

CheckForOrderCostAndPaymentRegulation

Controleer de order op orderkosten en betaalkosten (alleen van toepassing bij het aanmaken van een order)

boolean

None.

Payments

Betalingen die gekoppeld zijn aan de factuur/order

Collection of Payment

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderRows": [
    {
      "SerialNumbers": [
        "sample string 1",
        "sample string 2"
      ],
      "Id": 1,
      "Description": "sample string 2",
      "Description2": "sample string 3",
      "ProductId": 1,
      "Qty": 4.0,
      "BuyPrice": 5.0,
      "GrossPrice": 6.0,
      "NettPrice": 7.0,
      "DiscountPercent": 8.0,
      "QtyDeliverd": 9.0,
      "QtyDeliverd_NotInvoiced": 10.0,
      "ProductCode": "sample string 11",
      "ProductBarcode1": "sample string 12",
      "VATPercentage": 13.0,
      "Notes": "sample string 14",
      "DebtorId": 15,
      "OrderId": 16,
      "InclPrice": 1.0,
      "WarehouseId": 1,
      "Commission": "sample string 17",
      "DeliveryOptionId": 1,
      "VatCodeId": 1,
      "VatCodeIdOverrule": 1,
      "FreeValue1": "sample string 18",
      "FreeValue2": "sample string 19",
      "FreeValue3": "sample string 20",
      "FreeValue4": "sample string 21",
      "FreeValue5": "sample string 22",
      "ExpectedNextDelivery": "2020-02-23T12:00:24.9262095+01:00",
      "ExpectedNextQtyOnDelivery": 1.0,
      "ExternalValue": {
        "TypeId": 1,
        "Value": "sample string 2"
      },
      "AgreedDeliveryDate": "2020-02-23T12:00:24.9262095+01:00"
    },
    {
      "SerialNumbers": [
        "sample string 1",
        "sample string 2"
      ],
      "Id": 1,
      "Description": "sample string 2",
      "Description2": "sample string 3",
      "ProductId": 1,
      "Qty": 4.0,
      "BuyPrice": 5.0,
      "GrossPrice": 6.0,
      "NettPrice": 7.0,
      "DiscountPercent": 8.0,
      "QtyDeliverd": 9.0,
      "QtyDeliverd_NotInvoiced": 10.0,
      "ProductCode": "sample string 11",
      "ProductBarcode1": "sample string 12",
      "VATPercentage": 13.0,
      "Notes": "sample string 14",
      "DebtorId": 15,
      "OrderId": 16,
      "InclPrice": 1.0,
      "WarehouseId": 1,
      "Commission": "sample string 17",
      "DeliveryOptionId": 1,
      "VatCodeId": 1,
      "VatCodeIdOverrule": 1,
      "FreeValue1": "sample string 18",
      "FreeValue2": "sample string 19",
      "FreeValue3": "sample string 20",
      "FreeValue4": "sample string 21",
      "FreeValue5": "sample string 22",
      "ExpectedNextDelivery": "2020-02-23T12:00:24.9262095+01:00",
      "ExpectedNextQtyOnDelivery": 1.0,
      "ExternalValue": {
        "TypeId": 1,
        "Value": "sample string 2"
      },
      "AgreedDeliveryDate": "2020-02-23T12:00:24.9262095+01:00"
    }
  ],
  "CheckForOrderCostAndPaymentRegulation": true,
  "Payments": [
    {
      "OrderId": 1,
      "InvoiceId": 1,
      "AmountIncl": 1.0,
      "Description": "sample string 2",
      "BookingId": 3,
      "MatchingLedgerId": 4,
      "DateTime": "2020-02-23T12:00:24.9262095+01:00",
      "LedgerCode": 1
    },
    {
      "OrderId": 1,
      "InvoiceId": 1,
      "AmountIncl": 1.0,
      "Description": "sample string 2",
      "BookingId": 3,
      "MatchingLedgerId": 4,
      "DateTime": "2020-02-23T12:00:24.9262095+01:00",
      "LedgerCode": 1
    }
  ],
  "Id": 1,
  "BranchId": 1,
  "Description": "sample string 1",
  "Reference": "sample string 2",
  "DebtorId": 3,
  "UserId": 1,
  "Notes": "sample string 4",
  "CreationDate": "2020-02-23T12:00:24.9252095+01:00",
  "Totals": {
    "AmountEx": 1.0,
    "VATPercentage": 2.0,
    "ShippingCost": 3.0,
    "ShippingCostIncl": 1.0,
    "Calc_TotalPayed": 1.0,
    "AmountIncl": 4.0,
    "IsPaid": true
  },
  "DeliveryAddress": {
    "Type": {
      "Id": 1,
      "Name": "sample string 2"
    },
    "Province": {
      "Id": 1,
      "Name": "sample string 2"
    },
    "Email": "sample string 1",
    "ContactName": "sample string 2",
    "CompanyName": "sample string 3",
    "Address2": "sample string 4",
    "Id": 1,
    "DebtorId": 1,
    "CreditorId": 1,
    "IsMainContact": true,
    "CountryCode": "sample string 6",
    "IsoCode": "sample string 7",
    "City": "sample string 8",
    "Zipcode": "sample string 9",
    "Street": "sample string 10",
    "HouseNumber": "sample string 11",
    "HouseNumberAddition": "sample string 12",
    "TelephoneNumber": "sample string 13",
    "CountryId": 14,
    "ZoneId": 15
  },
  "InvoiceAddress": {
    "Type": {
      "Id": 1,
      "Name": "sample string 2"
    },
    "Province": {
      "Id": 1,
      "Name": "sample string 2"
    },
    "Email": "sample string 1",
    "ContactName": "sample string 2",
    "CompanyName": "sample string 3",
    "Address2": "sample string 4",
    "Id": 1,
    "DebtorId": 1,
    "CreditorId": 1,
    "IsMainContact": true,
    "CountryCode": "sample string 6",
    "IsoCode": "sample string 7",
    "City": "sample string 8",
    "Zipcode": "sample string 9",
    "Street": "sample string 10",
    "HouseNumber": "sample string 11",
    "HouseNumberAddition": "sample string 12",
    "TelephoneNumber": "sample string 13",
    "CountryId": 14,
    "ZoneId": 15
  },
  "PaymentMethod": {
    "Id": 1,
    "Description": "sample string 2",
    "MaxAmount": 1.0,
    "SelectKey": "sample string 3"
  },
  "OrderStatus": {
    "Id": 1,
    "Value": "sample string 2"
  },
  "ShippingMethod": {
    "Id": 1,
    "Name": "sample string 2",
    "ExportCode": "sample string 3"
  },
  "OrderShipments": [
    {
      "ShipperId": 1,
      "Barcode": "sample string 2",
      "DateTimeAdded": "2020-02-23T12:00:24.9252095+01:00",
      "TrackTraceUrl": "sample string 4"
    },
    {
      "ShipperId": 1,
      "Barcode": "sample string 2",
      "DateTimeAdded": "2020-02-23T12:00:24.9252095+01:00",
      "TrackTraceUrl": "sample string 4"
    }
  ],
  "DeliveryDate": "2020-02-23T12:00:24.9252095+01:00",
  "OrderShipmentFreeValues": {
    "ShipperTypeId": 1,
    "Freevalue1": "sample string 2",
    "Freevalue2": "sample string 3",
    "Freevalue3": "sample string 4",
    "Freevalue4": "sample string 5",
    "Freevalue5": "sample string 6"
  },
  "WebsiteDomainId": 1,
  "DeliveryOptionId": 1,
  "FreeValue1": "sample string 6",
  "FreeValue2": "sample string 7",
  "FreeValue3": "sample string 8",
  "FreeValue4": "sample string 9",
  "FreeValue5": "sample string 10",
  "FreeValue6": "sample string 11",
  "FreeValue7": "sample string 12",
  "FreeValue8": "sample string 13",
  "InvoiceBelongsToOrderNumber": 1,
  "CostCentre": {
    "Id": 1,
    "Code": "sample string 2",
    "Description": "sample string 3"
  },
  "OrderType1Id": 1,
  "OrderType2Id": 1,
  "OrderType3Id": 1
}

application/xml, text/xml

Sample:
<Order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
  <BranchId>1</BranchId>
  <CheckForOrderCostAndPaymentRegulation>true</CheckForOrderCostAndPaymentRegulation>
  <CostCentre>
    <Code>sample string 2</Code>
    <Description>sample string 3</Description>
    <Id>1</Id>
  </CostCentre>
  <CreationDate>2020-02-23T12:00:24.9252095+01:00</CreationDate>
  <DebtorId>3</DebtorId>
  <DeliveryAddress>
    <City>sample string 8</City>
    <CountryCode>sample string 6</CountryCode>
    <CountryId>14</CountryId>
    <HouseNumber>sample string 11</HouseNumber>
    <HouseNumberAddition>sample string 12</HouseNumberAddition>
    <IsoCode>sample string 7</IsoCode>
    <Street>sample string 10</Street>
    <TelephoneNumber>sample string 13</TelephoneNumber>
    <Zipcode>sample string 9</Zipcode>
    <ZoneId>15</ZoneId>
    <CreditorId>1</CreditorId>
    <DebtorId>1</DebtorId>
    <Id>1</Id>
    <IsMainContact>true</IsMainContact>
    <Address2>sample string 4</Address2>
    <CompanyName>sample string 3</CompanyName>
    <ContactName>sample string 2</ContactName>
    <Email>sample string 1</Email>
    <Province>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </Province>
    <Type>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </Type>
  </DeliveryAddress>
  <DeliveryDate>2020-02-23T12:00:24.9252095+01:00</DeliveryDate>
  <DeliveryOptionId>1</DeliveryOptionId>
  <Description>sample string 1</Description>
  <FreeValue1>sample string 6</FreeValue1>
  <FreeValue2>sample string 7</FreeValue2>
  <FreeValue3>sample string 8</FreeValue3>
  <FreeValue4>sample string 9</FreeValue4>
  <FreeValue5>sample string 10</FreeValue5>
  <FreeValue6>sample string 11</FreeValue6>
  <FreeValue7>sample string 12</FreeValue7>
  <FreeValue8>sample string 13</FreeValue8>
  <Id>1</Id>
  <InvoiceAddress>
    <City>sample string 8</City>
    <CountryCode>sample string 6</CountryCode>
    <CountryId>14</CountryId>
    <HouseNumber>sample string 11</HouseNumber>
    <HouseNumberAddition>sample string 12</HouseNumberAddition>
    <IsoCode>sample string 7</IsoCode>
    <Street>sample string 10</Street>
    <TelephoneNumber>sample string 13</TelephoneNumber>
    <Zipcode>sample string 9</Zipcode>
    <ZoneId>15</ZoneId>
    <CreditorId>1</CreditorId>
    <DebtorId>1</DebtorId>
    <Id>1</Id>
    <IsMainContact>true</IsMainContact>
    <Address2>sample string 4</Address2>
    <CompanyName>sample string 3</CompanyName>
    <ContactName>sample string 2</ContactName>
    <Email>sample string 1</Email>
    <Province>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </Province>
    <Type>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </Type>
  </InvoiceAddress>
  <InvoiceBelongsToOrderNumber>1</InvoiceBelongsToOrderNumber>
  <Notes>sample string 4</Notes>
  <OrderRows>
    <OrderRow>
      <AgreedDeliveryDate>2020-02-23T12:00:24.9262095+01:00</AgreedDeliveryDate>
      <BuyPrice>5</BuyPrice>
      <Commission>sample string 17</Commission>
      <DebtorId>15</DebtorId>
      <DeliveryOptionId>1</DeliveryOptionId>
      <Description>sample string 2</Description>
      <Description2>sample string 3</Description2>
      <DiscountPercent>8</DiscountPercent>
      <ExpectedNextDelivery>2020-02-23T12:00:24.9262095+01:00</ExpectedNextDelivery>
      <ExpectedNextQtyOnDelivery>1</ExpectedNextQtyOnDelivery>
      <ExternalValue>
        <TypeId>1</TypeId>
        <Value>sample string 2</Value>
      </ExternalValue>
      <FreeValue1>sample string 18</FreeValue1>
      <FreeValue2>sample string 19</FreeValue2>
      <FreeValue3>sample string 20</FreeValue3>
      <FreeValue4>sample string 21</FreeValue4>
      <FreeValue5>sample string 22</FreeValue5>
      <GrossPrice>6</GrossPrice>
      <Id>1</Id>
      <InclPrice>1</InclPrice>
      <NettPrice>7</NettPrice>
      <Notes>sample string 14</Notes>
      <OrderId>16</OrderId>
      <ProductBarcode1>sample string 12</ProductBarcode1>
      <ProductCode>sample string 11</ProductCode>
      <ProductId>1</ProductId>
      <Qty>4</Qty>
      <QtyDeliverd>9</QtyDeliverd>
      <QtyDeliverd_NotInvoiced>10</QtyDeliverd_NotInvoiced>
      <SerialNumbers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </SerialNumbers>
      <VATPercentage>13</VATPercentage>
      <VatCodeId>1</VatCodeId>
      <VatCodeIdOverrule>1</VatCodeIdOverrule>
      <WarehouseId>1</WarehouseId>
    </OrderRow>
    <OrderRow>
      <AgreedDeliveryDate>2020-02-23T12:00:24.9262095+01:00</AgreedDeliveryDate>
      <BuyPrice>5</BuyPrice>
      <Commission>sample string 17</Commission>
      <DebtorId>15</DebtorId>
      <DeliveryOptionId>1</DeliveryOptionId>
      <Description>sample string 2</Description>
      <Description2>sample string 3</Description2>
      <DiscountPercent>8</DiscountPercent>
      <ExpectedNextDelivery>2020-02-23T12:00:24.9262095+01:00</ExpectedNextDelivery>
      <ExpectedNextQtyOnDelivery>1</ExpectedNextQtyOnDelivery>
      <ExternalValue>
        <TypeId>1</TypeId>
        <Value>sample string 2</Value>
      </ExternalValue>
      <FreeValue1>sample string 18</FreeValue1>
      <FreeValue2>sample string 19</FreeValue2>
      <FreeValue3>sample string 20</FreeValue3>
      <FreeValue4>sample string 21</FreeValue4>
      <FreeValue5>sample string 22</FreeValue5>
      <GrossPrice>6</GrossPrice>
      <Id>1</Id>
      <InclPrice>1</InclPrice>
      <NettPrice>7</NettPrice>
      <Notes>sample string 14</Notes>
      <OrderId>16</OrderId>
      <ProductBarcode1>sample string 12</ProductBarcode1>
      <ProductCode>sample string 11</ProductCode>
      <ProductId>1</ProductId>
      <Qty>4</Qty>
      <QtyDeliverd>9</QtyDeliverd>
      <QtyDeliverd_NotInvoiced>10</QtyDeliverd_NotInvoiced>
      <SerialNumbers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </SerialNumbers>
      <VATPercentage>13</VATPercentage>
      <VatCodeId>1</VatCodeId>
      <VatCodeIdOverrule>1</VatCodeIdOverrule>
      <WarehouseId>1</WarehouseId>
    </OrderRow>
  </OrderRows>
  <OrderShipmentFreeValues>
    <Freevalue1>sample string 2</Freevalue1>
    <Freevalue2>sample string 3</Freevalue2>
    <Freevalue3>sample string 4</Freevalue3>
    <Freevalue4>sample string 5</Freevalue4>
    <Freevalue5>sample string 6</Freevalue5>
    <ShipperTypeId>1</ShipperTypeId>
  </OrderShipmentFreeValues>
  <OrderShipments>
    <Order_Shipment>
      <Barcode>sample string 2</Barcode>
      <DateTimeAdded>2020-02-23T12:00:24.9252095+01:00</DateTimeAdded>
      <ShipperId>1</ShipperId>
      <TrackTraceUrl>sample string 4</TrackTraceUrl>
    </Order_Shipment>
    <Order_Shipment>
      <Barcode>sample string 2</Barcode>
      <DateTimeAdded>2020-02-23T12:00:24.9252095+01:00</DateTimeAdded>
      <ShipperId>1</ShipperId>
      <TrackTraceUrl>sample string 4</TrackTraceUrl>
    </Order_Shipment>
  </OrderShipments>
  <OrderStatus>
    <Id>1</Id>
    <Value>sample string 2</Value>
  </OrderStatus>
  <OrderType1Id>1</OrderType1Id>
  <OrderType2Id>1</OrderType2Id>
  <OrderType3Id>1</OrderType3Id>
  <PaymentMethod>
    <Description>sample string 2</Description>
    <Id>1</Id>
    <MaxAmount>1</MaxAmount>
    <SelectKey>sample string 3</SelectKey>
  </PaymentMethod>
  <Payments>
    <Payment>
      <AmountIncl>1</AmountIncl>
      <BookingId>3</BookingId>
      <DateTime>2020-02-23T12:00:24.9262095+01:00</DateTime>
      <Description>sample string 2</Description>
      <InvoiceId>1</InvoiceId>
      <LedgerCode>1</LedgerCode>
      <MatchingLedgerId>4</MatchingLedgerId>
      <OrderId>1</OrderId>
    </Payment>
    <Payment>
      <AmountIncl>1</AmountIncl>
      <BookingId>3</BookingId>
      <DateTime>2020-02-23T12:00:24.9262095+01:00</DateTime>
      <Description>sample string 2</Description>
      <InvoiceId>1</InvoiceId>
      <LedgerCode>1</LedgerCode>
      <MatchingLedgerId>4</MatchingLedgerId>
      <OrderId>1</OrderId>
    </Payment>
  </Payments>
  <Reference>sample string 2</Reference>
  <ShippingMethod>
    <ExportCode>sample string 3</ExportCode>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </ShippingMethod>
  <Totals>
    <AmountEx>1</AmountEx>
    <AmountIncl>4</AmountIncl>
    <Calc_TotalPayed>1</Calc_TotalPayed>
    <IsPaid>true</IsPaid>
    <ShippingCost>3</ShippingCost>
    <ShippingCostIncl>1</ShippingCostIncl>
    <VATPercentage>2</VATPercentage>
  </Totals>
  <UserId>1</UserId>
  <WebsiteDomainId>1</WebsiteDomainId>
</Order>

Response Information

Resource Description

Logic4ResponseOfInt32
NameDescriptionTypeAdditional information
Value

integer

None.

ValidationMessages

Eventuele foutmeldingen

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Value": 1,
  "ValidationMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Logic4ResponseOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.ResponseModels">
  <ValidationMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ValidationMessages>
  <Value>1</Value>
</Logic4ResponseOfint>