Orders, DESADV and deliverydates
It is possible to set a delivery date on the order lines. This page describes the method and how that can be achieved.
Only the amount on the line that is not delivered can be send with a scheduleline. If lines that have schedule lines of amounts that are already delivered undesired behaviour is achieved!
Give feedback on an order
POST /proxy/oci_xml/purchase/?user=x&shop=y&mode=sync
...
<ItemOut quantity="10" lineNumber="10">
<ItemID>
<SupplierPartID>12345-6789</SupplierPartID>
</ItemID>
<ItemDetail>
<UnitPrice>
<Money currency="EUR">166.15</Money>
</UnitPrice>
<Description>My first product</Description>
</ItemDetail>
<ScheduleLine quantity="10" requestedDeliveryDate="2023-03-11"/>
</ItemOut>
...
Reset delivery date to another value
POST /proxy/oci_xml/purchase/?user=x&shop=y&mode=sync
...
<ItemOut quantity="10" lineNumber="10">
<ItemID>
<SupplierPartID>12345-6789</SupplierPartID>
</ItemID>
<ItemDetail>
<UnitPrice>
<Money currency="EUR">166.15</Money>
</UnitPrice>
<Description>My first product</Description>
</ItemDetail>
<ScheduleLine quantity="10" requestedDeliveryDate="2023-03-13"/>
</ItemOut>
...
Add some delivery (desadv)
POST /proxy/des_adv_xml/delivery/?user=x&shop=y&mode=sync
<LineItems>
<Item>
<OrderNum>ERP-555</OrderNum>
<ItemNum>10</ItemNum>
<SellerItemID>12345-6789</SellerItemID>
<QuantityValue>5</QuantityValue>
</Item>
</LineItems>
Reset delivery date to another value
POST /proxy/oci_xml/purchase/?user=x&shop=y&mode=sync
...
<ItemOut quantity="10" lineNumber="10">
<ItemID>
<SupplierPartID>12345-6789</SupplierPartID>
</ItemID>
<ItemDetail>
<UnitPrice>
<Money currency="EUR">166.15</Money>
</UnitPrice>
<Description>My first product</Description>
</ItemDetail>
<ScheduleLine quantity="5" requestedDeliveryDate="2023-03-17"/>
</ItemOut>
...
In this case only 5 are not delivered, so only 5 can have a scheduleline.
Related content
Delivery (DESADV) - API
Delivery (DESADV) - API
More like this
Orders POST (offline orders) - json
Orders POST (offline orders) - json
More like this
Order incoming - offline order - cXML
Order incoming - offline order - cXML
Read with this
Orders GET - json
Orders GET - json
Read with this
Orders PUT (feedback) - json
Orders PUT (feedback) - json
Read with this
Order incoming - feedback - cXML
Order incoming - feedback - cXML
More like this
© 2024 CloudSuite BV, All rights reserved