Stock status message (Transaction B2BStock, Operation GetItemStatusStockTransmitB2B)
The status of the stock transfer is to be queried. For this purpose, the following data of the media type application/xml are transmitted to the address https://b2b.beispielserver.com/ using the POST method of the HTTP protocol:
<?xml version="1.0" encoding="utf-8"?>
<GetItemStatusStockTransmitB2BRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:veloconnect:stock-B2B-1.4">
<BuyersID xmlns="urn:veloconnect:transaction-1.0">B127645</BuyersID>
<Credential xmlns="urn:veloconnect:transaction-1.0">
<Password>secret</Password>
</Credential>
<TransactionID xmlns="urn:veloconnect:transaction-1.0">44f80ce3-05c1-4a28-b981-8b4a0794a7a4</TransactionID>
<IsTest xmlns="urn:veloconnect:transaction-1.0">true</IsTest>
<StartIndex>0</StartIndex>
<Count>2</Count>
</GetItemStatusStockTransmitB2BRequest>
For example, the server's response looks like this:
<?xml version="1.0" encoding="utf-8"?>
<GetItemStatusStockTransmitB2BResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:veloconnect:stock-B2B-1.4">
<BuyersID xmlns="urn:veloconnect:transaction-1.0">B127645</BuyersID>
<ResponseCode xmlns="urn:veloconnect:transaction-1.0">200</ResponseCode>
<TransactionID xmlns="urn:veloconnect:transaction-1.0">44f80ce3-05c1-4a28-b981-8b4a0794a7a4</TransactionID>
<StatusCode xmlns="urn:veloconnect:transaction-1.0">85</StatusCode>
<IsTest xmlns="urn:veloconnect:transaction-1.0">true</IsTest>
<StartIndex>0</StartIndex>
<Count>2</Count>
<TotalCount>6</TotalCount>
<StockTransmitB2BResponseLine>
<SellersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">
<ID>1</ID>
</SellersItemIdentification>
<BuyersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">
<ID>111</ID>
</BuyersItemIdentification>
<Available>false</Available>
</StockTransmitB2BResponseLine>
<StockTransmitB2BResponseLine>
<SellersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">
<ID>42213526600</ID>
</SellersItemIdentification>
<BuyersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">
<ID>111</ID>
</BuyersItemIdentification>
<Available>false</Available>
</StockTransmitB2BResponseLine>
</GetItemStatusStockTransmitB2BResponse>
This shows the following:
The created transaction instance has the TransactionID 44f80ce3-05c1-4a28-b981-8b4a0794a7a4.
The transaction is in state 85, i.e. the items have been imported.