Integrating Shipping Rates from UPS/Other Carriers

Has anyone had success with integrating real-time shipping rates from UPS into the Wix Shopping Cart/Shipping options? I am working with the UPS Rates API, and I’m curious if anyone else has been able to incorporate this. Any feedback is greatly appreciated!

Yep UPS makes it really easy, just pull the shipping rates available and present them to the user after to make any adjustment.

Use the FETCH function

Thank you so much! This is helpful, and I really appreciate your feedback.

Greetings Carlos!
How do I use the FETCH to integrate the UPS shipping module into my checkout.
Thank you
Respectfully,
James

Hi Guys,

Hope all is well with everyone.

I am pretty new to using WIX and are bit lost on how to add the code to get shipping rates from UPS for my shopping cart working.

The documentation provided this piece of code but I’m not sure where to enter it in and if I would need more than that for it to work?

Please see code below:

const UPS = require ( ‘ups-shipping-api’ );
const ups = new UPS({
access_key : “an_access_key” ,
username : “a_user_name” ,
password : “a_password”
})

var promise_rates = ups . retreive_rates (shipment);

This is the API I download and the site it came from:

Any help with this would be great apricated.

Thanks in advance.

Hello! I know this is a little delayed with reference to the comment date, but I am struggling with this very problem myself. I was wondering if you could elaborate or provide an example I could easily replicate. I have minimal coding expertise so I understand the logic and syntax but I’m at a loss with the Corvid language. Ultimately my goal is to provide a real-time shipping calculation (through UPS) for the customer at checkout.

I’ve had zero luck with it.

I’ve had zero luck with it.

@buddhapestoorders I’m 8m the same boat. So I hope we can both figure it out soon.

Depending on the exact UPS endpoint I use fetch or an npm package called ‘easy-soap-request’ with xml2js to better shred the response. UPS system is blended depending on the exact call(validating city, validating street address, getting rates). Know that UPS doesn’t have the most straight forwards integrations, and each account could have a variance for API access.

For best results, you’ll need to build a custom cart.
Any time you interrupt an out of the box feature of the WIX cart, your best option is to build the page from scratch.

This means you will also need to be familiar with the payment API’s and store API’s so you can collect payment and push orders into the store.