POST Orders/AddUpdateInvoice

Wijzig of maak een nieuwe factuur aan, het is alleen mogelijk om stamgegevens van een factuur te updaten (status, NAW, betaal/verzendmethode). Factuurregels kunnen slechts eenmalig bij het aanmaken van de factuur gevuld worden. Bij het succesvol aanmaken/updaten wordt het (nieuwe) factuurnummer in de response gevuld.

Request Information

URI Parameters

None.

Body Parameters

OrderCreate
NameDescriptionTypeAdditional information
Id

Bij aanmaken nieuwe order leeg laten. Als dit nummer gevuld is wordt de stam-informatie (NAW, status, referentie) van een order ge-update, let op! de orderregels worden niet geupdate.

integer

None.

PaymentMethod

Betaalmethode alleen het ID is van belang, betaalmethodes zijn te verkrijgen op het eindpunt 'Financial/GetPaymentMethods'.

PaymentMethod

None.

ShippingMethod

Verzendmethode alleen het ID is van belang, verzendmethodes zijn te verkrijgen op het eindpunt 'Shippers/GetShippingMethods'

Order_ShippingMethod

None.

Totals

Totaal prijzen, alleen de verzendkosten worden overgenomen bij het aanmaken van een order/factuur. De overige totaalprijzen worden berekend a.d.h.v. de regels.

Order_Totals

None.

OrderStatus

Status gegevens, alleen het ID is van belang, statussen zijn te verkrijgen op het eindpunt 'Orders/GetOrderStatuses'

OrderStatus

Required

DebtorId

Debiteurnummer debiteur is aan te maken via Relations/AddUpdateCustomer, ophalen: Relations/GetCustomers.

integer

Required

DeliveryAddress

Aflever adres gegevens, bij het aanmaken van een order wordt gekeken of het Id gevuld is, zoja wordt het bijbehorende adres gebruikt, anders wordt gekeken naar de meegestuurde velden van het DeliveryAddress object.

CustomerAddress

None.

InvoiceAddress

Factuur adres gegevens, bij het aanmaken van een order wordt gekeken of het Id gevuld is, zoja wordt het bijbehorende adres gebruikt, anders wordt gekeken naar de meegestuurde velden van het InvoiceAddress object.

CustomerAddress

None.

CreationDate

Aanmaakdatum

date

Required

Description

Beschrijving

string

None.

Reference

Referentie

string

None.

BranchId

Filiaalnummer, filialen zijn te verkrijgen op het eindpunt '/Company/GetBranches'.

integer

None.

UserId

Gekoppelde gebruiker, gebruikers zijn te verkrijgen op het eindpunt 'User/GetAllUsers'. Als deze niet gevuld is wordt de gebruiker waarmee de API wordt aangesproken gebruikt.

integer

None.

WebsiteDomainId

Websitenummer, websites zijn te verkrijgen op het eindpunt 'WebsiteDomains/GetWebSiteDomains'.

integer

None.

DeliveryOptionId

Afleveroptie nummer (bv. PostNL -> Standaard verzending of Sendcloud -> DHL Express).

integer

None.

DeliveryDate

Indicatieve leverdatum

date

None.

OrderShipmentFreeValues

Vrije velden voor verzending.

OrderShipmentFreeValue

None.

Notes

Notities

string

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.

OrderType1Id

Vrij type 1

integer

None.

OrderType2Id

Vrij type 2

integer

None.

OrderType3Id

Vrij type 3

integer

None.

OrderType4Id

Vrij type 4

integer

None.

OrderType5Id

Vrij type 5

integer

None.

OrderType6Id

Vrij type 6

integer

None.

OrderType7Id

Vrij type 7

integer

None.

OrderType8Id

Vrij type 8

integer

None.

CheckForOrderCostAndPaymentRegulation

Controleer voor eventuele order- en betaalkosten.

boolean

None.

OrderRows

Regels

Collection of OrderRowCreate

None.

Request Formats

application/json, text/json

Sample:
{
  "CheckForOrderCostAndPaymentRegulation": true,
  "OrderRows": [
    {
      "OrderId": 1,
      "Id": 1,
      "Description": "sample string 2",
      "Description2": "sample string 3",
      "ProductId": 1,
      "Qty": 4.0,
      "BuyPrice": 1.0,
      "GrossPrice": 1.0,
      "NettPrice": 1.0,
      "DiscountPercent": 1.0,
      "QtyDeliverd": 5.0,
      "QtyDeliverd_NotInvoiced": 6.0,
      "ProductCode": "sample string 7",
      "ProductBarcode1": "sample string 8",
      "VATPercentage": 1.0,
      "Notes": "sample string 9",
      "DebtorId": 10,
      "InclPrice": 1.0,
      "WarehouseId": 1,
      "Commission": "sample string 11",
      "DeliveryOptionId": 1,
      "VatCodeId": 1,
      "VatCodeIdOverrule": 1,
      "FreeValue1": "sample string 12",
      "FreeValue2": "sample string 13",
      "FreeValue3": "sample string 14",
      "FreeValue4": "sample string 15",
      "FreeValue5": "sample string 16",
      "ExpectedNextDelivery": "2020-07-02T19:44:53.7554612+02:00",
      "ExternalValue": {
        "TypeId": 1,
        "Value": "sample string 2"
      },
      "AgreedDeliveryDate": "2020-07-02T19:44:53.7554612+02:00"
    },
    {
      "OrderId": 1,
      "Id": 1,
      "Description": "sample string 2",
      "Description2": "sample string 3",
      "ProductId": 1,
      "Qty": 4.0,
      "BuyPrice": 1.0,
      "GrossPrice": 1.0,
      "NettPrice": 1.0,
      "DiscountPercent": 1.0,
      "QtyDeliverd": 5.0,
      "QtyDeliverd_NotInvoiced": 6.0,
      "ProductCode": "sample string 7",
      "ProductBarcode1": "sample string 8",
      "VATPercentage": 1.0,
      "Notes": "sample string 9",
      "DebtorId": 10,
      "InclPrice": 1.0,
      "WarehouseId": 1,
      "Commission": "sample string 11",
      "DeliveryOptionId": 1,
      "VatCodeId": 1,
      "VatCodeIdOverrule": 1,
      "FreeValue1": "sample string 12",
      "FreeValue2": "sample string 13",
      "FreeValue3": "sample string 14",
      "FreeValue4": "sample string 15",
      "FreeValue5": "sample string 16",
      "ExpectedNextDelivery": "2020-07-02T19:44:53.7554612+02:00",
      "ExternalValue": {
        "TypeId": 1,
        "Value": "sample string 2"
      },
      "AgreedDeliveryDate": "2020-07-02T19:44:53.7554612+02:00"
    }
  ],
  "Id": 1,
  "PaymentMethod": {
    "Id": 1,
    "Description": "sample string 2",
    "MaxAmount": 1.0,
    "SelectKey": "sample string 3"
  },
  "ShippingMethod": {
    "Id": 1,
    "Name": "sample string 2",
    "ExportCode": "sample string 3"
  },
  "Totals": {
    "AmountEx": 1.0,
    "VATPercentage": 2.0,
    "ShippingCost": 3.0,
    "ShippingCostIncl": 1.0,
    "Calc_TotalPayed": 1.0,
    "AmountIncl": 4.0,
    "IsPaid": true
  },
  "OrderStatus": {
    "Id": 1,
    "Value": "sample string 2"
  },
  "DebtorId": 1,
  "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,
    "OwnContactNumber": "sample string 6",
    "CountryCode": "sample string 7",
    "IsoCode": "sample string 8",
    "City": "sample string 9",
    "Zipcode": "sample string 10",
    "Street": "sample string 11",
    "HouseNumber": "sample string 12",
    "HouseNumberAddition": "sample string 13",
    "TelephoneNumber": "sample string 14",
    "CountryId": 15,
    "ZoneId": 16
  },
  "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,
    "OwnContactNumber": "sample string 6",
    "CountryCode": "sample string 7",
    "IsoCode": "sample string 8",
    "City": "sample string 9",
    "Zipcode": "sample string 10",
    "Street": "sample string 11",
    "HouseNumber": "sample string 12",
    "HouseNumberAddition": "sample string 13",
    "TelephoneNumber": "sample string 14",
    "CountryId": 15,
    "ZoneId": 16
  },
  "CreationDate": "2020-07-02T19:44:53.7554612+02:00",
  "Description": "sample string 3",
  "Reference": "sample string 4",
  "BranchId": 1,
  "UserId": 1,
  "WebsiteDomainId": 1,
  "DeliveryOptionId": 1,
  "DeliveryDate": "2020-07-02T19:44:53.7554612+02:00",
  "OrderShipmentFreeValues": {
    "ShipperTypeId": 1,
    "Freevalue1": "sample string 2",
    "Freevalue2": "sample string 3",
    "Freevalue3": "sample string 4",
    "Freevalue4": "sample string 5",
    "Freevalue5": "sample string 6"
  },
  "Notes": "sample string 5",
  "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",
  "OrderType1Id": 1,
  "OrderType2Id": 1,
  "OrderType3Id": 1,
  "OrderType4Id": 1,
  "OrderType5Id": 1,
  "OrderType6Id": 1,
  "OrderType7Id": 1,
  "OrderType8Id": 1
}

application/xml, text/xml

Sample:
<OrderCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
  <BranchId>1</BranchId>
  <CreationDate>2020-07-02T19:44:53.7554612+02:00</CreationDate>
  <DebtorId>1</DebtorId>
  <DeliveryAddress>
    <City>sample string 9</City>
    <CountryCode>sample string 7</CountryCode>
    <CountryId>15</CountryId>
    <HouseNumber>sample string 12</HouseNumber>
    <HouseNumberAddition>sample string 13</HouseNumberAddition>
    <IsoCode>sample string 8</IsoCode>
    <Street>sample string 11</Street>
    <TelephoneNumber>sample string 14</TelephoneNumber>
    <Zipcode>sample string 10</Zipcode>
    <ZoneId>16</ZoneId>
    <CreditorId>1</CreditorId>
    <DebtorId>1</DebtorId>
    <Id>1</Id>
    <IsMainContact>true</IsMainContact>
    <OwnContactNumber>sample string 6</OwnContactNumber>
    <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-07-02T19:44:53.7554612+02:00</DeliveryDate>
  <DeliveryOptionId>1</DeliveryOptionId>
  <Description>sample string 3</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>
  <InvoiceAddress>
    <City>sample string 9</City>
    <CountryCode>sample string 7</CountryCode>
    <CountryId>15</CountryId>
    <HouseNumber>sample string 12</HouseNumber>
    <HouseNumberAddition>sample string 13</HouseNumberAddition>
    <IsoCode>sample string 8</IsoCode>
    <Street>sample string 11</Street>
    <TelephoneNumber>sample string 14</TelephoneNumber>
    <Zipcode>sample string 10</Zipcode>
    <ZoneId>16</ZoneId>
    <CreditorId>1</CreditorId>
    <DebtorId>1</DebtorId>
    <Id>1</Id>
    <IsMainContact>true</IsMainContact>
    <OwnContactNumber>sample string 6</OwnContactNumber>
    <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>
  <Notes>sample string 5</Notes>
  <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>
  <OrderType1Id>1</OrderType1Id>
  <OrderType2Id>1</OrderType2Id>
  <OrderType3Id>1</OrderType3Id>
  <OrderType4Id>1</OrderType4Id>
  <OrderType5Id>1</OrderType5Id>
  <OrderType6Id>1</OrderType6Id>
  <OrderType7Id>1</OrderType7Id>
  <OrderType8Id>1</OrderType8Id>
  <Reference>sample string 4</Reference>
  <UserId>1</UserId>
  <WebsiteDomainId>1</WebsiteDomainId>
  <CheckForOrderCostAndPaymentRegulation>true</CheckForOrderCostAndPaymentRegulation>
  <Id>1</Id>
  <OrderRows>
    <OrderRowCreate>
      <AgreedDeliveryDate>2020-07-02T19:44:53.7554612+02:00</AgreedDeliveryDate>
      <BuyPrice>1</BuyPrice>
      <Commission>sample string 11</Commission>
      <DebtorId>10</DebtorId>
      <DeliveryOptionId>1</DeliveryOptionId>
      <Description>sample string 2</Description>
      <Description2>sample string 3</Description2>
      <DiscountPercent>1</DiscountPercent>
      <ExpectedNextDelivery>2020-07-02T19:44:53.7554612+02:00</ExpectedNextDelivery>
      <ExternalValue>
        <TypeId>1</TypeId>
        <Value>sample string 2</Value>
      </ExternalValue>
      <FreeValue1>sample string 12</FreeValue1>
      <FreeValue2>sample string 13</FreeValue2>
      <FreeValue3>sample string 14</FreeValue3>
      <FreeValue4>sample string 15</FreeValue4>
      <FreeValue5>sample string 16</FreeValue5>
      <GrossPrice>1</GrossPrice>
      <Id>1</Id>
      <InclPrice>1</InclPrice>
      <NettPrice>1</NettPrice>
      <Notes>sample string 9</Notes>
      <OrderId xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int">1</OrderId>
      <ProductBarcode1>sample string 8</ProductBarcode1>
      <ProductCode>sample string 7</ProductCode>
      <ProductId>1</ProductId>
      <Qty>4</Qty>
      <QtyDeliverd>5</QtyDeliverd>
      <QtyDeliverd_NotInvoiced>6</QtyDeliverd_NotInvoiced>
      <VATPercentage>1</VATPercentage>
      <VatCodeId>1</VatCodeId>
      <VatCodeIdOverrule>1</VatCodeIdOverrule>
      <WarehouseId>1</WarehouseId>
      <OrderId xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int">1</OrderId>
    </OrderRowCreate>
    <OrderRowCreate>
      <AgreedDeliveryDate>2020-07-02T19:44:53.7554612+02:00</AgreedDeliveryDate>
      <BuyPrice>1</BuyPrice>
      <Commission>sample string 11</Commission>
      <DebtorId>10</DebtorId>
      <DeliveryOptionId>1</DeliveryOptionId>
      <Description>sample string 2</Description>
      <Description2>sample string 3</Description2>
      <DiscountPercent>1</DiscountPercent>
      <ExpectedNextDelivery>2020-07-02T19:44:53.7554612+02:00</ExpectedNextDelivery>
      <ExternalValue>
        <TypeId>1</TypeId>
        <Value>sample string 2</Value>
      </ExternalValue>
      <FreeValue1>sample string 12</FreeValue1>
      <FreeValue2>sample string 13</FreeValue2>
      <FreeValue3>sample string 14</FreeValue3>
      <FreeValue4>sample string 15</FreeValue4>
      <FreeValue5>sample string 16</FreeValue5>
      <GrossPrice>1</GrossPrice>
      <Id>1</Id>
      <InclPrice>1</InclPrice>
      <NettPrice>1</NettPrice>
      <Notes>sample string 9</Notes>
      <OrderId xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int">1</OrderId>
      <ProductBarcode1>sample string 8</ProductBarcode1>
      <ProductCode>sample string 7</ProductCode>
      <ProductId>1</ProductId>
      <Qty>4</Qty>
      <QtyDeliverd>5</QtyDeliverd>
      <QtyDeliverd_NotInvoiced>6</QtyDeliverd_NotInvoiced>
      <VATPercentage>1</VATPercentage>
      <VatCodeId>1</VatCodeId>
      <VatCodeIdOverrule>1</VatCodeIdOverrule>
      <WarehouseId>1</WarehouseId>
      <OrderId xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int">1</OrderId>
    </OrderRowCreate>
  </OrderRows>
  <OrderStatus>
    <Id>1</Id>
    <Value>sample string 2</Value>
  </OrderStatus>
  <PaymentMethod>
    <Description>sample string 2</Description>
    <Id>1</Id>
    <MaxAmount>1</MaxAmount>
    <SelectKey>sample string 3</SelectKey>
  </PaymentMethod>
  <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>
</OrderCreate>

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>