I'm creating a private app for one of my client which require us to calculate shipping within the app. I'm this API for calculation
I have all data ready to post the shipping request but I'm unable to get the call back URL on which I have to sent this data and calculate shipping. When I'm trying to fetch the carrier services, it is giving me following response
but I'm not seeing any URL on which I have to send the shipping data
It appears that you are looking to run the shipping calculation through an installed carrier service. Shopify blocks the callback_url for carrier services from the public for privacy reasons.
There is still a way to request rates using the Shopify Ajax API. This would require you to add products you wish to use for the calculation to a temporary cart, then request shipping rates while passing the shipping address details in the call url:
I hope this helps!
I agree with what the other guy said - there are apps that already calculate rates and beyond. I would say take a look at ShipperHQ. It allows merchants to apply all kinds of rules and conditions to live and custom rates, so they have full control over what they are charging customers for shipping. ShipperHQ accounts for all kinds of things like dimensional shipping, surcharges and discounts, multiple warehouses, LTL, pretty much anything that would affect your client's shipping strategy and rates.
|an hour ago|
|2 hours ago|