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
OrderCreateName | Description | Type | Additional information |
---|---|---|---|
DebtorId | integer |
None. |
|
CustomerThirdPartyExternalIdentifer | CustomerThirdPartyExternalIdentifierFilter |
None. |
|
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 |
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
{ "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": "2021-01-28T11:29:26.4206226+01:00", "ExternalValue": { "TypeId": 1, "Value": "sample string 2" }, "AgreedDeliveryDate": "2021-01-28T11:29:26.4206226+01:00", "Type1Id": 1, "Type2Id": 1, "Type3Id": 1, "Type4Id": 1, "Type5Id": 1 }, { "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": "2021-01-28T11:29:26.4206226+01:00", "ExternalValue": { "TypeId": 1, "Value": "sample string 2" }, "AgreedDeliveryDate": "2021-01-28T11:29:26.4206226+01:00", "Type1Id": 1, "Type2Id": 1, "Type3Id": 1, "Type4Id": 1, "Type5Id": 1 } ], "DebtorId": 1, "CustomerThirdPartyExternalIdentifer": { "DebtorId": 1, "TypeId": 1, "Value": "sample string 1" }, "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" }, "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, "IsHidden": 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, "IsHidden": 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": "2021-01-28T11:29:26.4196254+01:00", "Description": "sample string 2", "Reference": "sample string 3", "BranchId": 1, "UserId": 1, "WebsiteDomainId": 1, "DeliveryOptionId": 1, "DeliveryDate": "2021-01-28T11:29:26.4196254+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" }, "Notes": "sample string 4", "FreeValue1": "sample string 5", "FreeValue2": "sample string 6", "FreeValue3": "sample string 7", "FreeValue4": "sample string 8", "FreeValue5": "sample string 9", "FreeValue6": "sample string 10", "FreeValue7": "sample string 11", "FreeValue8": "sample string 12", "OrderType1Id": 1, "OrderType2Id": 1, "OrderType3Id": 1, "OrderType4Id": 1, "OrderType5Id": 1, "OrderType6Id": 1, "OrderType7Id": 1, "OrderType8Id": 1 }
application/xml, text/xml
<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>2021-01-28T11:29:26.4196254+01:00</CreationDate> <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> <IsHidden>true</IsHidden> <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>2021-01-28T11:29:26.4196254+01:00</DeliveryDate> <DeliveryOptionId>1</DeliveryOptionId> <Description>sample string 2</Description> <FreeValue1>sample string 5</FreeValue1> <FreeValue2>sample string 6</FreeValue2> <FreeValue3>sample string 7</FreeValue3> <FreeValue4>sample string 8</FreeValue4> <FreeValue5>sample string 9</FreeValue5> <FreeValue6>sample string 10</FreeValue6> <FreeValue7>sample string 11</FreeValue7> <FreeValue8>sample string 12</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> <IsHidden>true</IsHidden> <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 4</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 3</Reference> <UserId>1</UserId> <WebsiteDomainId>1</WebsiteDomainId> <CheckForOrderCostAndPaymentRegulation>true</CheckForOrderCostAndPaymentRegulation> <CustomerThirdPartyExternalIdentifer xmlns:d2p1="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Filters"> <d2p1:TypeId>1</d2p1:TypeId> <d2p1:Value>sample string 1</d2p1:Value> <d2p1:DebtorId>1</d2p1:DebtorId> </CustomerThirdPartyExternalIdentifer> <DebtorId>1</DebtorId> <Id>1</Id> <OrderRows> <OrderRowCreate> <AgreedDeliveryDate>2021-01-28T11:29:26.4206226+01: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>2021-01-28T11:29:26.4206226+01: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> <Type1Id>1</Type1Id> <Type2Id>1</Type2Id> <Type3Id>1</Type3Id> <Type4Id>1</Type4Id> <Type5Id>1</Type5Id> <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>2021-01-28T11:29:26.4206226+01: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>2021-01-28T11:29:26.4206226+01: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> <Type1Id>1</Type1Id> <Type2Id>1</Type2Id> <Type3Id>1</Type3Id> <Type4Id>1</Type4Id> <Type5Id>1</Type5Id> <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
Logic4ResponseOfInt32Name | Description | Type | Additional information |
---|---|---|---|
Value | integer |
None. |
|
ValidationMessages |
Eventuele foutmeldingen |
Collection of string |
None. |
Response Formats
application/json, text/json
{ "Value": 1, "ValidationMessages": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
<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>