Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Der Client ruft entweder per HTTP GET folgende URL auf:

Code Block
https://b2b.beispielserver.com/?BuyersID=B127645&Password=secret&RequestName=GetItemDetailsListRequest&Quantity.42213526300=10&quantityUnitCode.42213526300=PK&SellersItemIdentification=42213526400&Quantity.42213526500=4&quantityUnitCode.42213526500=PK

oder schickt äquivalent per HTTP POST an die Adresse https://b2b.beispielserver.com/ mit Content-Type xml/application folgenden Body:

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<GetItemDetailsListRequest xmlns="urn:veloconnect:order-1.1" 
  xmlns:vct="urn:veloconnect:transaction-1.0" 
  xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0"
  xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">
  <vct:BuyersID></vct:BuyersID>
  <vct:Credential><vct:Password>secret</vct:Password></vct:Credential>
  <RequestEntry>
    <cac:SellersItemIdentification>
      <cac:ID>42213526300</cac:ID>
    </cac:SellersItemIdentification>
    <cbc:Quantity quantityUnitCode="PK">10</cbc:Quantity>
  </RequestEntry>
  <RequestEntry>
    <cac:SellersItemIdentification>
      <cac:ID>42213526400</cac:ID>
    </cac:SellersItemIdentification>
  </RequestEntry>
  <RequestEntry>
    <cac:SellersItemIdentification>
      <cac:ID>42213526500</cac:ID>
    </cac:SellersItemIdentification>
    <cbc:Quantity quantityUnitCode="PK">4</cbc:Quantity>
  </RequestEntry>
</GetItemDetailsListRequest>

Als Antwort liefert der Server folgenden Response:

Code Block
languagexml
<?xml version="1.0" encoding="utf-8" ?>
<GetItemDetailsListResponse 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>
<ItemDetail>
  <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>partially_available</Code>
        <AvailableQuantity quantityUnitCode="PK">7</AvailableQuantity>
    </Availability>
  </ItemDetail>
  <ItemDetail>
    <ItemUnknown>
      <cac:SellersItemIdentification>
        <cac:ID>42213526400</cac:ID>
      </cac:SellersItemIdentification>
    </ItemUnknown>
  </ItemDetail>
  <ItemDetail>
    <RequestReplacement>
      <cac:SellersItemIdentification>
        <cac:ID>42213526500</cac:ID>
      </cac:SellersItemIdentification>
      <cac:ItemReplacement>
        <cac:ID>42213527500</cac:ID>
        <cac:ReplacementCode>recommended</cac:ReplacementCode>
        <cbc:Description>Speichen DD 2,0x1,8x 274 mm, silber Race,Niro, mit Messingnippel</cbc:Description>
      </cac:ItemReplacement>
    </RequestReplacement>
  </ItemDetail>
</GetItemDetailsListResponse>

Hier ist zu beachten:

  • Bei Artikel 42213526300 ist der Lagerbestand nicht ausreichend für die angefragte Menge von 10 PK. Es sind nur 7 PK lieferbar.

  • Der Artikel 42213526400 ist unbekannt.

  • Der Artikel 42213526500 ist nicht mehr im Sortiment, als Ersatzartikel wird Artikel 42213527500 empohlen.