To get the picks from RicGroup, RicGroup will provide a URL as follows

http://192.168.1.3:1111/TBO4ExApi/swagger/ui/index#!/PickLists/PickLists_PickCartonDetailsDF

 

with a CompanyGUID, username and password. Using the URL, we should be able to get onto RicGroup and get the picks.


In the Accounting System Settings, under Get Pick Details, we will have the following


<ArtifactDetails>

    <Type>REST</Type>

    <Url>http://192.168.1.3:1111/TBO4ExAPI/api/PickLists/PickCartonDetails?DocNum={InvoiceNumber}</Url>

    <AuthenticationType>Basic</AuthenticationType>

    <Username>Supplier Provided</Username>

    <Password>Supplier Provided </Password>

    <Header>

        <NameValue>

            <Name>Content-Type</Name>

            <Value>application/json</Value>

        </NameValue>

        <NameValue>

            <Name>CompanyGUID</Name>

            <Value>SupplierProvided</Value>

        </NameValue>

        </Header>

    <Action>GET</Action>

    <Body></Body>

    <ConvertJsonToXml>true</ConvertJsonToXml>

    <ConvertJsonToXmlObjectName>row</ConvertJsonToXmlObjectName>

</ArtifactDetails>


and the Get Picks will have the Following XSL:


<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">

    <xsl:output method="xml" encoding="ISO-8859-1" media-type="text/plain" omit-xml-declaration="yes" indent="yes"/>

    <xsl:template match="Root">

        <ArrayOfPick>

            <xsl:for-each select="row">

                <Pick>

                    <InvoiceNumber>

                        <xsl:value-of select="DocNum"/>

                    </InvoiceNumber>

                    <CartonIdentifier>

                        <xsl:value-of select="SSCCFullBarCode"/>

                    </CartonIdentifier>

                    <CartonID>

                        <xsl:value-of select="CartonNumber"/>

                    </CartonID>            

                    <PalletIdentifier/>

                    <Quantity>

                        <xsl:value-of select="CartonQty"/>

                    </Quantity>

                    <SupplierCode>

                        <xsl:value-of select="ItemCode"/>

                    </SupplierCode>

                    <RetailerAssignedCode>

                        <xsl:value-of select="''"/>

                    </RetailerAssignedCode>

                    <BarCode>

                        <xsl:value-of select="''"/>

                    </BarCode>

                    <StoreIdentifier>

                        <xsl:value-of select="''"/>

                    </StoreIdentifier>

                    <OriginalLineNumber>

                        <xsl:value-of select="''"/>

                    </OriginalLineNumber>

                    <LineMatchingType>SUPPLIERCODE</LineMatchingType>

                </Pick>

            </xsl:for-each>

        </ArrayOfPick>

    </xsl:template>

</xsl:stylesheet>  


This will return the picks for the order.