PUT api/SalesOrder?addOnly={addOnly}

Aanmaken van een verkooporder, wanneer DebNr niet gevuld is moet een OrderDebtor object worden meegegeven, vanuit deze wordt een nieuwe debiteur aangemaakt en word het debiteur nummer in de aangemaakte verkooporder gevuld.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
addOnly

boolean

Default value is True

Body Parameters

SalesOrderVM
NameDescriptionTypeAdditional information
SalesOrderNR

string

None.

OrderDebtor

DebtorVM

None.

SalesOrderDate

date

None.

YourReference

string

Required

Description1

string

None.

FreeTextField01

string

None.

FreeTextField02

string

None.

FreeTextField03

string

None.

Lines

Collection of SalesOrderLineVM

None.

Request Formats

application/json, text/json

Sample:
{
  "SalesOrderNR": "sample string 1",
  "OrderDebtor": {
    "CustomerName": "sample string 1",
    "DebtorCode": "sample string 2",
    "PhoneNumber": "sample string 3",
    "FaxNumber": "sample string 4",
    "Email": "sample string 5",
    "ContactPerson": "sample string 6",
    "Currency": 0,
    "VATNumber": "sample string 7",
    "EmailPricelist": "sample string 8",
    "EmailReminder": "sample string 9",
    "ShippingMethod": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "BillingAddress": {
      "Address1": "sample string 1",
      "Address2": "sample string 2",
      "ZipCode": "sample string 3",
      "City": "sample string 4",
      "CountryCode": "sample string 5"
    },
    "ShippingAddress": {
      "Address1": "sample string 1",
      "Address2": "sample string 2",
      "ZipCode": "sample string 3",
      "City": "sample string 4",
      "CountryCode": "sample string 5"
    }
  },
  "SalesOrderDate": "2020-04-02T09:20:39.8348463+02:00",
  "YourReference": "sample string 2",
  "Description1": "sample string 3",
  "FreeTextField01": "sample string 4",
  "FreeTextField02": "sample string 5",
  "FreeTextField03": "sample string 6",
  "Lines": [
    {
      "Itemcode": "sample string 1",
      "Description": "sample string 2",
      "Quantity": 1.1,
      "Price": 1.1,
      "NetPrice": 1.1,
      "DiscountPercentage": 1.1,
      "DeliveryDate": "2020-04-02T09:20:39.8348463+02:00",
      "res_id": "sample string 3",
      "AmountExcludingDiscountIncludingVAT": 1.1,
      "Area": "sample string 4",
      "BlanketOrderLine": "a5b67fdd-5427-4461-9bfd-774087031ebb",
      "BOMVersion": "sample string 5",
      "ChargeLineType": "sample string 6",
      "CityOfLoading": "sample string 7",
      "CostCenter": "sample string 8",
      "CostPrice": 1.1,
      "CostUnit": "sample string 9",
      "CountryISO": "sample string 10",
      "CountryOrigin": "sample string 11",
      "DeliveryMethod": "sample string 12",
      "DestinationCountry": "sample string 13",
      "ID": 1,
      "Instruction": "sample string 14",
      "IntrastatEnabled": true,
      "ItemType": "sample string 15",
      "LineNumber": 1,
      "LongDescription": "sample string 16",
      "NetWeight": 1.1,
      "OriginalPlannedDate": "2020-04-02T09:20:39.8348463+02:00",
      "PlannedDate": "2020-04-02T09:20:39.8348463+02:00",
      "PriceList": "sample string 17",
      "Project": "sample string 18",
      "PurchaseOrderLine": 1,
      "PurchaseOrderNumber": "sample string 19",
      "QuantityDelivered": 1.1,
      "RequestedDate": "2020-04-02T09:20:39.8348463+02:00",
      "SalesOrderNumber": "sample string 20",
      "SerialNumber": "sample string 21",
      "StatisticalCode": "sample string 22",
      "StatisticalSystem": "sample string 23",
      "StatisticalUnits": 1.1,
      "TransactionA": "sample string 24",
      "TransactionB": "sample string 25",
      "Transportation": "sample string 26",
      "TransShipment": "sample string 27",
      "Unit": "sample string 28",
      "UpdateDeliveryDate": true,
      "VATCode": "sample string 29",
      "Warehouse": "sample string 30"
    },
    {
      "Itemcode": "sample string 1",
      "Description": "sample string 2",
      "Quantity": 1.1,
      "Price": 1.1,
      "NetPrice": 1.1,
      "DiscountPercentage": 1.1,
      "DeliveryDate": "2020-04-02T09:20:39.8348463+02:00",
      "res_id": "sample string 3",
      "AmountExcludingDiscountIncludingVAT": 1.1,
      "Area": "sample string 4",
      "BlanketOrderLine": "a5b67fdd-5427-4461-9bfd-774087031ebb",
      "BOMVersion": "sample string 5",
      "ChargeLineType": "sample string 6",
      "CityOfLoading": "sample string 7",
      "CostCenter": "sample string 8",
      "CostPrice": 1.1,
      "CostUnit": "sample string 9",
      "CountryISO": "sample string 10",
      "CountryOrigin": "sample string 11",
      "DeliveryMethod": "sample string 12",
      "DestinationCountry": "sample string 13",
      "ID": 1,
      "Instruction": "sample string 14",
      "IntrastatEnabled": true,
      "ItemType": "sample string 15",
      "LineNumber": 1,
      "LongDescription": "sample string 16",
      "NetWeight": 1.1,
      "OriginalPlannedDate": "2020-04-02T09:20:39.8348463+02:00",
      "PlannedDate": "2020-04-02T09:20:39.8348463+02:00",
      "PriceList": "sample string 17",
      "Project": "sample string 18",
      "PurchaseOrderLine": 1,
      "PurchaseOrderNumber": "sample string 19",
      "QuantityDelivered": 1.1,
      "RequestedDate": "2020-04-02T09:20:39.8348463+02:00",
      "SalesOrderNumber": "sample string 20",
      "SerialNumber": "sample string 21",
      "StatisticalCode": "sample string 22",
      "StatisticalSystem": "sample string 23",
      "StatisticalUnits": 1.1,
      "TransactionA": "sample string 24",
      "TransactionB": "sample string 25",
      "Transportation": "sample string 26",
      "TransShipment": "sample string 27",
      "Unit": "sample string 28",
      "UpdateDeliveryDate": true,
      "VATCode": "sample string 29",
      "Warehouse": "sample string 30"
    }
  ]
}

application/xml, text/xml

Sample:
<SalesOrderVM xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <SalesOrderNR>sample string 1</SalesOrderNR>
  <OrderDebtor>
    <CustomerName>sample string 1</CustomerName>
    <DebtorCode>sample string 2</DebtorCode>
    <PhoneNumber>sample string 3</PhoneNumber>
    <FaxNumber>sample string 4</FaxNumber>
    <Email>sample string 5</Email>
    <ContactPerson>sample string 6</ContactPerson>
    <Currency>EUR</Currency>
    <VATNumber>sample string 7</VATNumber>
    <EmailPricelist>sample string 8</EmailPricelist>
    <EmailReminder>sample string 9</EmailReminder>
    <ShippingMethod>
      <Code>sample string 1</Code>
      <Description>sample string 2</Description>
    </ShippingMethod>
    <BillingAddress>
      <Address1>sample string 1</Address1>
      <Address2>sample string 2</Address2>
      <ZipCode>sample string 3</ZipCode>
      <City>sample string 4</City>
      <CountryCode>sample string 5</CountryCode>
    </BillingAddress>
    <ShippingAddress>
      <Address1>sample string 1</Address1>
      <Address2>sample string 2</Address2>
      <ZipCode>sample string 3</ZipCode>
      <City>sample string 4</City>
      <CountryCode>sample string 5</CountryCode>
    </ShippingAddress>
  </OrderDebtor>
  <SalesOrderDate>2020-04-02T09:20:39.8348463+02:00</SalesOrderDate>
  <YourReference>sample string 2</YourReference>
  <Description1>sample string 3</Description1>
  <FreeTextField01>sample string 4</FreeTextField01>
  <FreeTextField02>sample string 5</FreeTextField02>
  <FreeTextField03>sample string 6</FreeTextField03>
  <Lines>
    <SalesOrderLineVM>
      <Itemcode>sample string 1</Itemcode>
      <Description>sample string 2</Description>
      <Quantity>1.1</Quantity>
      <Price>1.1</Price>
      <NetPrice>1.1</NetPrice>
      <DiscountPercentage>1.1</DiscountPercentage>
      <DeliveryDate>2020-04-02T09:20:39.8348463+02:00</DeliveryDate>
      <res_id>sample string 3</res_id>
      <AmountExcludingDiscountIncludingVAT>1.1</AmountExcludingDiscountIncludingVAT>
      <Area>sample string 4</Area>
      <BlanketOrderLine>a5b67fdd-5427-4461-9bfd-774087031ebb</BlanketOrderLine>
      <BOMVersion>sample string 5</BOMVersion>
      <ChargeLineType>sample string 6</ChargeLineType>
      <CityOfLoading>sample string 7</CityOfLoading>
      <CostCenter>sample string 8</CostCenter>
      <CostPrice>1.1</CostPrice>
      <CostUnit>sample string 9</CostUnit>
      <CountryISO>sample string 10</CountryISO>
      <CountryOrigin>sample string 11</CountryOrigin>
      <DeliveryMethod>sample string 12</DeliveryMethod>
      <DestinationCountry>sample string 13</DestinationCountry>
      <ID>1</ID>
      <Instruction>sample string 14</Instruction>
      <IntrastatEnabled>true</IntrastatEnabled>
      <ItemType>sample string 15</ItemType>
      <LineNumber>1</LineNumber>
      <LongDescription>sample string 16</LongDescription>
      <NetWeight>1.1</NetWeight>
      <OriginalPlannedDate>2020-04-02T09:20:39.8348463+02:00</OriginalPlannedDate>
      <PlannedDate>2020-04-02T09:20:39.8348463+02:00</PlannedDate>
      <PriceList>sample string 17</PriceList>
      <Project>sample string 18</Project>
      <PurchaseOrderLine>1</PurchaseOrderLine>
      <PurchaseOrderNumber>sample string 19</PurchaseOrderNumber>
      <QuantityDelivered>1.1</QuantityDelivered>
      <RequestedDate>2020-04-02T09:20:39.8348463+02:00</RequestedDate>
      <SalesOrderNumber>sample string 20</SalesOrderNumber>
      <SerialNumber>sample string 21</SerialNumber>
      <StatisticalCode>sample string 22</StatisticalCode>
      <StatisticalSystem>sample string 23</StatisticalSystem>
      <StatisticalUnits>1.1</StatisticalUnits>
      <TransactionA>sample string 24</TransactionA>
      <TransactionB>sample string 25</TransactionB>
      <Transportation>sample string 26</Transportation>
      <TransShipment>sample string 27</TransShipment>
      <Unit>sample string 28</Unit>
      <UpdateDeliveryDate>true</UpdateDeliveryDate>
      <VATCode>sample string 29</VATCode>
      <Warehouse>sample string 30</Warehouse>
    </SalesOrderLineVM>
    <SalesOrderLineVM>
      <Itemcode>sample string 1</Itemcode>
      <Description>sample string 2</Description>
      <Quantity>1.1</Quantity>
      <Price>1.1</Price>
      <NetPrice>1.1</NetPrice>
      <DiscountPercentage>1.1</DiscountPercentage>
      <DeliveryDate>2020-04-02T09:20:39.8348463+02:00</DeliveryDate>
      <res_id>sample string 3</res_id>
      <AmountExcludingDiscountIncludingVAT>1.1</AmountExcludingDiscountIncludingVAT>
      <Area>sample string 4</Area>
      <BlanketOrderLine>a5b67fdd-5427-4461-9bfd-774087031ebb</BlanketOrderLine>
      <BOMVersion>sample string 5</BOMVersion>
      <ChargeLineType>sample string 6</ChargeLineType>
      <CityOfLoading>sample string 7</CityOfLoading>
      <CostCenter>sample string 8</CostCenter>
      <CostPrice>1.1</CostPrice>
      <CostUnit>sample string 9</CostUnit>
      <CountryISO>sample string 10</CountryISO>
      <CountryOrigin>sample string 11</CountryOrigin>
      <DeliveryMethod>sample string 12</DeliveryMethod>
      <DestinationCountry>sample string 13</DestinationCountry>
      <ID>1</ID>
      <Instruction>sample string 14</Instruction>
      <IntrastatEnabled>true</IntrastatEnabled>
      <ItemType>sample string 15</ItemType>
      <LineNumber>1</LineNumber>
      <LongDescription>sample string 16</LongDescription>
      <NetWeight>1.1</NetWeight>
      <OriginalPlannedDate>2020-04-02T09:20:39.8348463+02:00</OriginalPlannedDate>
      <PlannedDate>2020-04-02T09:20:39.8348463+02:00</PlannedDate>
      <PriceList>sample string 17</PriceList>
      <Project>sample string 18</Project>
      <PurchaseOrderLine>1</PurchaseOrderLine>
      <PurchaseOrderNumber>sample string 19</PurchaseOrderNumber>
      <QuantityDelivered>1.1</QuantityDelivered>
      <RequestedDate>2020-04-02T09:20:39.8348463+02:00</RequestedDate>
      <SalesOrderNumber>sample string 20</SalesOrderNumber>
      <SerialNumber>sample string 21</SerialNumber>
      <StatisticalCode>sample string 22</StatisticalCode>
      <StatisticalSystem>sample string 23</StatisticalSystem>
      <StatisticalUnits>1.1</StatisticalUnits>
      <TransactionA>sample string 24</TransactionA>
      <TransactionB>sample string 25</TransactionB>
      <Transportation>sample string 26</Transportation>
      <TransShipment>sample string 27</TransShipment>
      <Unit>sample string 28</Unit>
      <UpdateDeliveryDate>true</UpdateDeliveryDate>
      <VATCode>sample string 29</VATCode>
      <Warehouse>sample string 30</Warehouse>
    </SalesOrderLineVM>
  </Lines>
</SalesOrderVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean>true</boolean>