I've integrated the Shopify active_shipping gem into my site and I am trying to get negotiated rates from my UPS account (I can get regular rates). I can't find any documentation on the negotiated rates. Can anyone help me out here? I think this line of code should work but it doesn't produce any errors or any different shipping rates.
response = carrier.find_rates(origin, destination, packages, {negotiated_rates: true})
I ran across this link here but still no luck:
https://github.com/Shopify/active_shipping/blob/master/lib/active_shipping/carriers/ups.rb
Try assign your UPS account number as origin_account
in the options.
response = carrier.find_rates(origin, destination, packages, {negotiated_rates: true, origin_account: 11111111})
https://github.com/Shopify/active_shipping/blob/master/lib/active_shipping/carriers/ups.rb#L358
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With