SalesIn B2B Developer API

            Integrate the SalesIn B2B login / log out into your own website

            SalesIn B2B provides a seamless experience for your customers to login from your website. 
            Please provide the following details to your webmaster / IT guru.

            Paste the following code into the place in your website that you want to insert the login controls:

            <script language='javascript' type='text/javascript'src=""></script>
            <script language='javascript' type='text/javascript' src=""></script>
            <script language='javascript' type='text/javascript' src=""></script>
            <link rel="stylesheet" type="text/css" href="" />
            <script language='javascript' type='text/javascript'>
                 initLoginSection("", "UniqueId", "", "");

            The functionality will all be handled by the javascript written by initLoginSection.

            Replace UniqueId with the one found under the Administration > SalesIn B2B Settings area of the SalesIn web application. 
            The option “Let your customers login from your own website” must be ticked, and your UniqueId will be shown.

            Extra Functionality (optional)

            When the user logs out, they will be returned to your site with a query string parameter; LogoutReason. 
            This will have one of the following values that you can handle and display to the user a relevant message, if you like:
            0 – User deliberately logged out of SalesIn B2B by clicking the logout button
            1 – The user’s session was timed out and they were forced to log out
            2 – The login failed due to internal error reasons, contact SalesIn support if this ever happens; but the user won’t want details of this error.

            Updated: 05 Dec 2018 11:22 AM
            Help us to make this article better
            0 0