Belegart: Angebot

Die Anfrage

1 https://b2b.beispielserver.com/?RequestName=OfferQueryRequest&BuyersID=B127645&Password=secret&FromDate=2019-08-01&RequestReference=SONDERANGEBOT

wird beispielhaft vom Server mit folgendem Response beantwortet:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <?xml version="1.0" encoding="utf-8" ?> <OfferQueryResponse 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> <OfferHeader> <OfferID>O1234</OfferID> <cbc:IssueDate>2019-09-15</cbc:IssueDate> <RequestReference>SONDERANGEBOT-2019-09</RequestReference> </OfferHeader> <OfferHeader> <OfferID>O1235</OfferID> <cbc:IssueDate>2019-08-15</cbc:IssueDate> <RequestReference>SONDERANGEBOT-2019-08</RequestReference> </OfferHeader> </OfferQueryResponse>

Würde der Server XML-POST(-S) unterstützen, hätte der Request auch durch POST des folgenden Body realisiert werden können:

1 2 3 4 5 6 7 8 9 <?xml version="1.0" encoding="utf-8" ?> <OfferQueryRequest 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:Credential><vct:Password>secret</vct:Password></vct:Credential> <DateRange> <FromDate>2019-08-01</FromDate> </DateRange> <RequestReference>SONDERANGEBOT</RequestReference> </OfferQueryRequest>

 

Um die Details abzurufen, verwendet der Client nun folgenden - inhaltlich leicht falschen - Request:

1 https://b2b.beispielserver.com/?RequestName=OfferDetailsRequest&BuyersID=B127645&Password=secret&OfferID=O1234&OfferID=SONDERANGEBOT-2019-08


Der Server antwortet hierauf mit:

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 <?xml version="1.0" encoding="utf-8" ?> <OfferDetailsResponse 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> <Offer> <OfferID>O1234</OfferID> <cbc:IssueDate>2019-09-15</cbc:IssueDate> <RequestReference>SONDERANGEBOT-2019-09</RequestReference> <ValidRange> <FromDate>2019-09-15</FromDate> <ThruDate>2019-10-15</ThruDate> </ValidRange> <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:ManufacturersItemIdentification> <cac:ID>RE 397 KS</cac:ID> <cac:IssuerParty><cac:PartyName><cbc:Name>KOOL STOP</cbc:Name></cac:PartyName></cac:IssuerParty> </cac:ManufacturersItemIdentification> <cac:BasePrice> <cbc:PriceAmount amountCurrencyID="EUR">6.50</cbc:PriceAmount> <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity> </cac:BasePrice> <cac:BasePrice> <cbc:PriceAmount amountCurrencyID="EUR">5.30</cbc:PriceAmount> <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity> <cbc:MinimumQuantity quantityUnitCode="EA">25</cbc:MinimumQuantity> </cac:BasePrice> <cac:BasePrice> <cbc:PriceAmount amountCurrencyID="EUR">5.00</cbc:PriceAmount> <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity> <cbc:MinimumQuantity quantityUnitCode="EA">50</cbc:MinimumQuantity> </cac:BasePrice> <cac:BasePrice> <cbc:PriceAmount amountCurrencyID="EUR">4.50</cbc:PriceAmount> <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity> <cbc:MinimumQuantity quantityUnitCode="EA">100</cbc:MinimumQuantity> </cac:BasePrice> </cac:Item> <cac:Item> <cbc:Description>KOOL-STOP MTB contoured (Chart Index T1) gebogene Schraub-Bremsschuhe, dual compound</cbc:Description> <cac:SellersItemIdentification> <cac:ID>222-98</cac:ID> </cac:SellersItemIdentification> <cac:ManufacturersItemIdentification> <cac:ID>RE 387 KS</cac:ID> <cac:IssuerParty><cac:PartyName><cbc:Name>KOOL STOP</cbc:Name></cac:PartyName></cac:IssuerParty> </cac:ManufacturersItemIdentification> <cac:BasePrice> <cbc:PriceAmount amountCurrencyID="EUR">7.00</cbc:PriceAmount> <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity> </cac:BasePrice> <cac:BasePrice> <cbc:PriceAmount amountCurrencyID="EUR">6.50</cbc:PriceAmount> <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity> <cbc:MinimumQuantity quantityUnitCode="EA">25</cbc:MinimumQuantity> </cac:BasePrice> <cac:BasePrice> <cbc:PriceAmount amountCurrencyID="EUR">6.00</cbc:PriceAmount> <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity> <cbc:MinimumQuantity quantityUnitCode="EA">50</cbc:MinimumQuantity> </cac:BasePrice> <cac:BasePrice> <cbc:PriceAmount amountCurrencyID="EUR">5.30</cbc:PriceAmount> <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity> <cbc:MinimumQuantity quantityUnitCode="EA">100</cbc:MinimumQuantity> </cac:BasePrice> </cac:Item> </Offer> <UnknownID>SONDERANGEBOT-2019-08</UnknownID> </OfferDetailsResponse>

 

Würde der Server XML-POST(-S) unterstützen, hätte der Request auch durch POST des folgenden Body realisiert werden können:

1 2 3 4 5 6 7 <?xml version="1.0" encoding="utf-8" ?> <OfferDetailsRequest 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:Credential><vct:Password>secret</vct:Password></vct:Credential> <OfferID>O1234</OfferID> <OfferID>SONDERANGEBOT-2019-08</OfferID> </OfferDetailsRequest>