Wir orientieren uns nun am vorangegangenen Beispiel zur Auftragsbestätigung und fragen die dazugehörigen Lieferscheine wie folgt ab:
https://b2b.beispielserver.com/?RequestName=DeliveryNoteQueryRequest&BuyersID=B127645&Password=secret&OrderConfirmationID=B2019001&OrderConfirmationID=B2018001
und erhalten vom Server folgenden Response:
<?xml version="1.0" encoding="utf-8" ?> <DeliveryNoteQueryResponse xmlns="urn:veloconnect:receipt-1.3" xmlns:vct="urn:veloconnect:transaction-1.0" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0"> <vct:BuyersID>B127645</vct:BuyersID> <vct:ResponseCode>200</vct:ResponseCode> <DeliveryNoteHeader> <DeliveryNoteID>L2019001</DeliveryNoteID> <cbc:IssueDate>2018-01-08</cbc:IssueDate> <OrderConfirmationID>B2018001</OrderConfirmationID> </DeliveryNoteHeader> <DeliveryNoteHeader> <DeliveryNoteID>L2019002</DeliveryNoteID> <cbc:IssueDate>2018-02-10</cbc:IssueDate> <OrderConfirmationID>B2018001</OrderConfirmationID> </DeliveryNoteHeader> <DeliveryNoteHeader> <DeliveryNoteID>L2019101</DeliveryNoteID> <cbc:IssueDate>2019-08-29</cbc:IssueDate> <OrderID>B2019001</OrderID> <OrderConfirmationID>B2019001</OrderConfirmationID> </DeliveryNoteHeader> <DeliveryNoteHeader> <DeliveryNoteID>L2019102</DeliveryNoteID> <cbc:IssueDate>2019-09-08</cbc:IssueDate> <OrderID>B2019001</OrderID> <OrderConfirmationID>B2019001</OrderConfirmationID> </DeliveryNoteHeader> </DeliveryNoteQueryResponse>
Wir fragen nun alle diese vier Lieferscheine mit dem Request
https://b2b.beispielserver.com/?RequestName=DeliveryNoteQueryRequest&BuyersID=B127645&Password=secret&DeliveryNoteID=L2019001&DeliveryNoteID=L2019001&DeliveryNoteID=L2019002&DeliveryNoteID=L2019101
und erhalten vom Server folgenden Response:
<?xml version="1.0" encoding="utf-8" ?> <DeliveryNoteDetailsResponse xmlns="urn:veloconnect:receipt-1.3" xmlns:vct="urn:veloconnect:transaction-1.0" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0"> <vct:BuyersID>B127645</vct:BuyersID> <vct:ResponseCode>200</vct:ResponseCode> <DeliveryNote> <DeliveryNoteID>L2019001</DeliveryNoteID> <cbc:IssueDate>2018-01-08</cbc:IssueDate> <LineItem> <LineID>001</LineID> <OrderConfirmationID> <ID>B2018001</ID> <LineID>001</LineID> </OrderConfirmationID> <cbc:Quantity quantityUnitCode="EA">3</cbc:Quantity> <cac:Item> <cbc:Description>Pedelec Modell A, RH 60</cbc:Description> <cac:SellersItemIdentification> <cac:ID>R001-001</cac:ID> </cac:SellersItemIdentification> </cac:Item> <ItemInstance> <SerialID kind="FrameNumber">ABC34656XYZ01</SerialID> <SerialID kind="SerialNumberMotor">MHBH9865XYZ01</SerialID> <SerialID kind="Other" description="Schlüssel Gepäckfach">GPZ9876XYZ01</SerialID> </ItemInstance> <ItemInstance> <SerialID kind="FrameNumber">ABC34656XYZ02</SerialID> <SerialID kind="SerialNumberMotor">MHBH9865XYZ02</SerialID> <SerialID kind="Other" description="Schlüssel Gepäckfach">GPZ9876XYZ02</SerialID> </ItemInstance> <ItemInstance> <SerialID kind="FrameNumber">ABC34656XYZ03</SerialID> <SerialID kind="SerialNumberMotor">MHBH9865XYZ03</SerialID> <SerialID kind="Other" description="Schlüssel Gepäckfach">GPZ9876XYZ03</SerialID> </ItemInstance> <UnitPrice amountCurrencyID="EUR">900.00</UnitPrice> <LinePrice amountCurrencyID="EUR">2700.00</LinePrice> </LineItem> <LineItem> <LineID>002</LineID> <OrderConfirmationID> <ID>B2018001</ID> <LineID>001</LineID> </OrderConfirmationID> <cbc:Quantity quantityUnitCode="EA">2</cbc:Quantity> <cac:Item> <cbc:Description>Pedelec Modell A, RH 57</cbc:Description> <cac:SellersItemIdentification> <cac:ID>R001-002</cac:ID> </cac:SellersItemIdentification> </cac:Item> <ItemInstance> <SerialID kind="FrameNumber">ABC34656XYZ04</SerialID> <SerialID kind="SerialNumberMotor">MHBH9865XYZ04</SerialID> <SerialID kind="Other" description="Schlüssel Gepäckfach">GPZ9876XYZ04</SerialID> </ItemInstance> <ItemInstance> <SerialID kind="FrameNumber">ABC34656XYZ05</SerialID> <SerialID kind="SerialNumberMotor">MHBH9865XYZ05</SerialID> <SerialID kind="Other" description="Schlüssel Gepäckfach">GPZ9876XYZ05</SerialID> </ItemInstance> <UnitPrice amountCurrencyID="EUR">900.00</UnitPrice> <LinePrice amountCurrencyID="EUR">1800.00</LinePrice> </LineItem> </DeliveryNote> <DeliveryNote> <DeliveryNoteID>L2019002</DeliveryNoteID> <cbc:IssueDate>2018-02-10</cbc:IssueDate> <LineItem> <LineID>001</LineID> <OrderConfirmationID> <ID>B2018001</ID> <LineID>001</LineID> </OrderConfirmationID> <cbc:Quantity quantityUnitCode="EA">5</cbc:Quantity> <cac:Item> <cbc:Description>Pedelec Modell A, RH 50</cbc:Description> <cac:SellersItemIdentification> <cac:ID>R001-003</cac:ID> </cac:SellersItemIdentification> </cac:Item> <ItemInstance> <SerialID kind="FrameNumber">ABC34656XYZ06</SerialID> <SerialID kind="SerialNumberMotor">MHBH9865XYZ06</SerialID> </ItemInstance> <ItemInstance> <SerialID kind="FrameNumber">ABC34656XYZ07</SerialID> <SerialID kind="SerialNumberMotor">MHBH9865XYZ07</SerialID> </ItemInstance> <ItemInstance> <SerialID kind="FrameNumber">ABC34656XYZ08</SerialID> <SerialID kind="SerialNumberMotor">MHBH9865XYZ08</SerialID> </ItemInstance> <ItemInstance> <SerialID kind="FrameNumber">ABC34656XYZ09</SerialID> <SerialID kind="SerialNumberMotor">MHBH9865XYZ09</SerialID> </ItemInstance> <ItemInstance> <SerialID kind="FrameNumber">ABC34656XYZ10</SerialID> <SerialID kind="SerialNumberMotor">MHBH9865XYZ10</SerialID> </ItemInstance> <UnitPrice amountCurrencyID="EUR">900.00</UnitPrice> <LinePrice amountCurrencyID="EUR">4500.00</LinePrice> </LineItem> </DeliveryNote> <DeliveryNote> <DeliveryNoteID>L2019101</DeliveryNoteID> <cbc:IssueDate>2019-08-29</cbc:IssueDate> <LineItem> <LineID>001</LineID> <OrderID> <ID>B2019001</ID> </OrderID> <OrderConfirmationID> <ID>B2019001</ID> </OrderConfirmationID> <cbc:Quantity quantityUnitCode="EA">20</cbc:Quantity> <cac:Item> <cbc:Description>KOOL-STOP MTB contoured (Chart Index C1) gebogene Canti-Bremsschuhe, dual compound</cbc:Description> <cac:SellersItemIdentification> <cac:ID>221-98</cac:ID> </cac:SellersItemIdentification> </cac:Item> <UnitPrice amountCurrencyID="EUR">4.50</UnitPrice> <LinePrice amountCurrencyID="EUR">90.00</LinePrice> </LineItem> </DeliveryNote> <DeliveryNote> <DeliveryNoteID>L2019102</DeliveryNoteID> <cbc:IssueDate>2019-09-08</cbc:IssueDate> <LineItem> <LineID>001</LineID> <OrderID> <ID>B2019001</ID> </OrderID> <OrderConfirmationID> <ID>B2019001</ID> </OrderConfirmationID> <cbc:Quantity quantityUnitCode="EA">100</cbc:Quantity> <cac:Item> <cbc:Description>KOOL-STOP MTB contoured (Chart Index C1) gebogene Canti-Bremsschuhe, dual compound</cbc:Description> <cac:SellersItemIdentification> <cac:ID>221-98</cac:ID> </cac:SellersItemIdentification> </cac:Item> <UnitPrice amountCurrencyID="EUR">4.50</UnitPrice> <LinePrice amountCurrencyID="EUR">450.00</LinePrice> </LineItem> </DeliveryNote> </DeliveryNoteDetailsResponse>