LTL Freight Shipping Calculator

I am trying to incorporate user data obtained through a form to generate a real-time LTL freight quote. Ideally, I would also like to incorporate this into our cart so customers can purchase products online without our input. The freight company has an API set up for this, but appears to use SOAP.

Is it possible to send API request using data collected through checkout process, receive response, and charge customer this for shipping?

Does anyone do this work that can help??

Freight company API instructions:
https://www.sefl.com/SeflRateQuote/rateQuoteRESTfulInstructions.htm

should be possible…
here’s the gist of how to approach it:

  1. create a webmethod on a backend file to get the quote from LTL.
    pass into this method any parameters collected from the user.

  2. in this webmethod, use wix-fetch to call the SOAP interface.
    you’ll need to form the SOAP request and fire it to the SOAP endpoint exposed by LTL, then get the response and parse it.

  3. return the quote to the client as the return value of the webmethod, and use it there.

for step #1, read about webmethods here:

for step #2, read about wix-fetch here:

hope this sets you off in the right direction…

Ziv, I have the API functioning am able to return the quote to the client, but how am I do edit the checkout page using this returned value as the shipping cost?

Hi Peter,
It is not possible to integrate Wix Stores with Wix Code as of yet.