verbb / postie

A Craft Commerce shipping calculator plugin.
Other
12 stars 18 forks source link

UPS Ship API Support #129

Open pseudoclass opened 2 weeks ago

pseudoclass commented 2 weeks ago

What are you trying to do?

We would like to be able to fetch duties and taxes applied in the UPS shipping provider in Postie for international shipping. Currently the UPS shipping provider in Postie supports the Rates, Tracking and Labels API's but in order to get duties and taxes for international orders it would need to also support the UPS "Ship" API.

What's your proposed solution?

Add support in the UPS Shipping Provider for the "Ship" API

Additional context

No response

engram-design commented 2 weeks ago

Just for clarity, do you mean the Shipping API? If so, that's the API we use to generate labels by creating a shipment.

Do you mean you want to use that API for rates-fetching? It's my understanding that taxes and rates are included in the quoted price. This "product" when selected by the user is then used to generate a shipment (and label) when it comes to fulfilment.

pseudoclass commented 2 weeks ago

@engram-design

Sorry for not getting back sooner :)

Just for clarity, do you mean the Shipping API? If so, that's the API we use to generate labels by creating a shipment.

I believe so. Here is the response we got back from UPS regarding getting duties and taxes on international shipping:

"Based on the information, it appears to me that you are using the UPS rating API to get the rates for the shipments. Please note that the Rating API does not return the Duties and Taxes when requesting a rate for the shipment, the duties and taxes are returned when shipping a package using Ship API. A rate request will only return the rate for a specific UPS service or multiple."

Do you mean you want to use that API for rates-fetching? It's my understanding that taxes and rates are included in the quoted price. This "product" when selected by the user is then used to generate a shipment (and label) when it comes to fulfilment.

Yes. As per the comment from UPS, international duties and taxes aren't included in the quoted price from the Rating API, but if the Shipping API can be used for fetching the rates it would include them. Is that possible?

Thanks

engram-design commented 2 weeks ago

Thanks for your response, that's quite interesting to hear. I'll look into this, but I believe it should be possible!

sjcallender commented 3 days ago

Hey @engram-design 👋. Is there anyway we can help expedite this? This is holding up a client from deploying UPS Worldwide. We eager to get their business shipping internationally.