Submit availability (Transaction B2CStock, Operation: B2CStock)

An availability is to be transmitted. 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"?> <StockTransmitB2CRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:veloconnect:stock-B2C-1.4"> <BuyersID xmlns="urn:veloconnect:transaction-1.0">MyBuyersId</BuyersID> <Credential xmlns="urn:veloconnect:transaction-1.0"> <Password>B127645</Password> </Credential> <IsTest xmlns="urn:veloconnect:transaction-1.0">true</IsTest> <CreateDate>2021-04-28T10:40:56.5567171+02:00</CreateDate> <Frequence>Complete</Frequence> <StockTransmitB2CLine> <StandardItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0"> <ID>42213526600</ID> </StandardItemIdentification> <BuyersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0"> <ID>111</ID> </BuyersItemIdentification> <Quantity quantityUnitCode="EA" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0">10</Quantity> <Availability>Available</Availability> </StockTransmitB2CLine> <StockTransmitB2CLine> <ManufacturersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0"> <ID>42213526600</ID> <IssuerParty> <PartyIdentification> <ID identificationSchemeID="BIDEXBrand">4711</ID> </PartyIdentification> </IssuerParty> </ManufacturersItemIdentification> <MarketPlaceItemIdentification> <ID xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">Amaz1111</ID> </MarketPlaceItemIdentification> <BuyersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0"> <ID>111</ID> </BuyersItemIdentification> <Quantity quantityUnitCode="EA" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0">20</Quantity> <Availability>LimitedAvailable</Availability> </StockTransmitB2CLine> </StockTransmitB2CRequest>

 

For example, the server's response looks like this:

<?xml version="1.0" encoding="utf-8"?> <StockTransmitB2CResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:veloconnect:stock-B2C-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">f9cc5ed9-129d-4a3d-ba99-488073a55c47</TransactionID> <StatusCode xmlns="urn:veloconnect:transaction-1.0">84</StatusCode> <IsTest xmlns="urn:veloconnect:transaction-1.0">true</IsTest> </StockTransmitB2CResponse>

This shows the following:

  • The created transaction instance has the TransactionID f9cc5ed9-129d-4a3d-ba99-488073a55c47.

  • The transaction is in state 84, i.e. the import is running.

Related pages