Der Client fragt nun die Details zum Artikel mit der Bestellnummer 42213526300 auf eine der folgenden drei Arten ab:
Aufruf der folgenden URL (HTTP GET):
https://b2b.beispielserver.com/?BuyersID=B127645&Password=secret&RequestName=GetItemDetailsRequest&SellersItemIdentification=42213526300 |
2. Durch HTTP POST an die Adresse https://b2b.beispielserver.com/
mit Header
Content-Type: application/x-www-form-urlencoded
und Body
BuyersID=B127645&Password=secret&RequestName=GetItemDetailsRequest&SellersItemIdentification=42213526300 |
3. Durch HTTP POST an die Adresse https://b2b.beispielserver.com/
mit Header
Content-Type: application/xml
und Body
<?xml version="1.0" encoding="UTF-8"?> <GetItemDetailsRequest xmlns="urn:veloconnect:order-1.1" xmlns:vct="urn:veloconnect:transaction-1.0" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0"> <vct:BuyersID/> <vct:Credential><vct:Password>secret</vct:Password></vct:Credential> <cac:SellersItemIdentification> <cac:ID>42213526300</cac:ID> </cac:SellersItemIdentification> </GetItemDetailsRequest> |
oder auch äquivalent mit folgendem Body:
<?xml version="1.0" encoding="UTF-8"?> <ns:GetItemDetailsRequest xmlns:ns="urn:veloconnect:order-1.1" xmlns:xyz="urn:veloconnect:transaction-1.0" xmlns:ns3="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0"> <xyz:BuyersID/> <xyz:Credential><xyz:Password>secret</xyz:Password></xyz:Credential> <ns3:SellersItemIdentification> <ns3:ID>42213526300</ns3:ID> </ns3:SellersItemIdentification> </ns:GetItemDetailsRequest> |
Die Antwort auf jeden dieser Request sieht dann z.B. so aus:
<?xml version="1.0" encoding="utf-8" ?> <GetItemDetailsResponse xmlns="urn:veloconnect:order-1.1" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0" xmlns:vct="urn:veloconnect:transaction-1.0"> <vct:BuyersID>B127645</vct:BuyersID> <vct:ResponseCode>200</vct:ResponseCode> <cac:Item> <cbc:Description>Speichen DD 2,0x1,8x 263 mm, silber Race,Niro, mit Messingnippel</cbc:Description> <cbc:PackQuantity quantityUnitCode="EA">100</cbc:PackQuantity> <cac:SellersItemIdentification> <cac:ID>42213526300</cac:ID> </cac:SellersItemIdentification> <cac:StandardItemIdentification> <cac:ID identificationSchemeID="EAN/UCC-13">4032191511108</cac:ID> </cac:StandardItemIdentification> <cac:BasePrice> <cbc:PriceAmount amountCurrencyID="EUR">34.90</cbc:PriceAmount> <cbc:BaseQuantity quantityUnitCode="PK">1</cbc:BaseQuantity> </cac:BasePrice> <cac:BasePrice> <cbc:PriceAmount amountCurrencyID="EUR">29.50</cbc:PriceAmount> <cbc:BaseQuantity quantityUnitCode="PK">1</cbc:BaseQuantity> <cbc:MinimumQuantity quantityUnitCode="PK">10</cbc:MinimumQuantity> </cac:BasePrice> <cac:RecommendedRetailPrice> <cbc:PriceAmount amountCurrencyID="EUR">0.70</cbc:PriceAmount> <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity> </cac:RecommendedRetailPrice> </cac:Item> <Availability> <Code>available</Code> </Availability> </GetItemDetailsResponse> |
Die Antwort enthält unter anderem folgende Informationen:
Der Artikel hat den EAN-Code 4032191511108.
Der Artikel wird in Packungen zu je 100 Stück verkauft.
Ein Paket kostet bei Abnahme von weniger als 5 Paketen 34,50 Euro, ab einer Abnahme von 5 Paketen 29,50 Euro.
Der empfohlene Verkaufspreis beträgt 0,70 Euro pro Stück.
Falls der Artikel unbekannt ist, ist die Antwort wie folgt:
<?xml version="1.0" encoding="utf-8"?> <GetItemDetailsResponse xmlns="urn:veloconnect:order-1.1" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0" xmlns:vct="urn:veloconnect:transaction-1.0"> <vct:BuyersID>B127645</vct:BuyersID> <vct:ResponseCode>200</vct:ResponseCode> <ItemUnknown> <cac:SellersItemIdentification> <cac:ID>42213526300</cac:ID> </cac:SellersItemIdentification> </ItemUnknown> </GetItemDetailsResponse> |
Falls der Artikel nicht mehr im Sortiment ist, aber ein Ersatzartikel empfohlen werden kann, ist die Antwort wie folgt:
<?xml version="1.0" encoding="utf-8"?> <GetItemDetailsResponse xmlns="urn:veloconnect:order-1.1" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0" xmlns:vct="urn:veloconnect:transaction-1.0"> <vct:BuyersID>B127645</vct:BuyersID> <vct:ResponseCode>200</vct:ResponseCode> <ItemUnknown> <cac:SellersItemIdentification> <cac:ID>42213526300</cac:ID> </cac:SellersItemIdentification> </ItemUnknown> </GetItemDetailsResponse> |