Belegart: Rechnung

Die Rechnung für den Lieferschein L2019102 wird nun mit folgendem Request abgefragt:

1 https://b2b.beispielserver.com/?RequestName=InvoiceInformationDetailsRequest&BuyersID=B127645&Password=secret&DeliveryNoteID=L2019102

Der Server liefert daraufhin folgenden Response:

1 2 3 4 5 6 7 8 9 10 11 <?xml version="1.0" encoding="utf-8" ?> <InvoiceInformationQueryResponse 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> <InvoiceHeader> <InvoiceID>R2019010</InvoiceID> <cbc:IssueDate>2018-09-15</cbc:IssueDate> <DeliveryNoteID>L2019101</DeliveryNoteID> <DeliveryNoteID>L2019102</DeliveryNoteID> </InvoiceHeader> </InvoiceInformationQueryResponse>

Die Rechnung wird nun abgefragt mit folgendem (leicht fehlerhaftem) Request:

1 https://b2b.beispielserver.com/?RequestName=InvoiceInformationDetailsRequest&BuyersID=B127645&Password=secret&InvoiceID=R2019010&InvoiceID=L2019102

Der Server antwortet hierauf mit folgendem Response:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 <?xml version="1.0" encoding="utf-8" ?> <InvoiceInformationDetailsResponse 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> <Invoice> <InvoiceID>R2019010</InvoiceID> <cbc:IssueDate>2019-09-15</cbc:IssueDate> <GrossSum amountCurrencyID="EUR">580.70</GrossSum> <NetSum amountCurrencyID="EUR">480.00</NetSum> <VAT> <cbc:TaxableAmount amountCurrencyID="EUR">530.00</cbc:TaxableAmount> <cbc:TaxAmount amountCurrencyID="EUR">100.70</cbc:TaxAmount> <cac:TaxCategory> <cac:ID>A</cac:ID> <cbc:Percent>19</cbc:Percent> <cac:TaxScheme><cac:ID>VAT</cac:ID></cac:TaxScheme> </cac:TaxCategory> </VAT> <LineItem> <LineID>001</LineID> <DeliveryNoteID><ID>L2019101</ID></DeliveryNoteID> <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:TaxCategory> <cac:ID>A</cac:ID> <cbc:Percent>19</cbc:Percent> <cac:TaxScheme><cac:ID>VAT</cac:ID></cac:TaxScheme> </cac:TaxCategory> </cac:Item> <UnitPrice amountCurrencyID="EUR">4.50</UnitPrice> <LinePrice amountCurrencyID="EUR">90.00</LinePrice> </LineItem> <LineItem> <LineID>002</LineID> <DeliveryNoteID><ID>L2019102</ID></DeliveryNoteID> <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:TaxCategory> <cac:ID>A</cac:ID> <cbc:Percent>19</cbc:Percent> <cac:TaxScheme><cac:ID>VAT</cac:ID></cac:TaxScheme> </cac:TaxCategory> </cac:Item> <UnitPrice amountCurrencyID="EUR">4.50</UnitPrice> <LinePrice amountCurrencyID="EUR">450.00</LinePrice> </LineItem> <LineItem> <LineID>003</LineID> <cbc:Quantity quantityUnitCode="EA">1</cbc:Quantity> <cac:Item> <cbc:Description>Versandkosten</cbc:Description> <cac:TaxCategory> <cac:ID>A</cac:ID> <cbc:Percent>19</cbc:Percent> <cac:TaxScheme><cac:ID>VAT</cac:ID></cac:TaxScheme> </cac:TaxCategory> </cac:Item> <UnitPrice amountCurrencyID="EUR">10.00</UnitPrice> <LinePrice amountCurrencyID="EUR">10.00</LinePrice> </LineItem> <LineItem> <LineID>003</LineID> <cbc:Quantity quantityUnitCode="EA">1</cbc:Quantity> <cac:Item> <cbc:Description>Treuerabatt</cbc:Description> <cac:TaxCategory> <cac:ID>A</cac:ID> <cbc:Percent>19</cbc:Percent> <cac:TaxScheme><cac:ID>VAT</cac:ID></cac:TaxScheme> </cac:TaxCategory> </cac:Item> <UnitPrice amountCurrencyID="EUR">-20.00</UnitPrice> <LinePrice amountCurrencyID="EUR">-20.00</LinePrice> </LineItem> <LineItem> <LineID>005</LineID> <cbc:Quantity quantityUnitCode="EA">1</cbc:Quantity> <cac:Item> <cbc:Description>Verrechnung aus Gutschrift G2018001</cbc:Description> </cac:Item> <UnitPrice amountCurrencyID="EUR">-50.00</UnitPrice> <LinePrice amountCurrencyID="EUR">-50.00</LinePrice> </LineItem> </Invoice> <UnknownID>L2019102</UnknownID> </InvoiceInformationDetailsResponse>