gabrielbull / php-ups-api

PHP Wrapper for all UPS API
MIT License
456 stars 255 forks source link

Not getting correct rates for dutch deliveries #367

Closed Anne-Willems closed 1 year ago

Anne-Willems commented 1 year ago

I have copied the sample code of the rates sample. changed shipperAddress, shipFrom & shipTo address to commercial addresses in The netherlands. Set package to: PT_PACKAGE Set Service to: S_STANDARD (also tried: S_WW_EXPRESS & S_SAVER). Set weight UnitOfMeasurement: UOM_KGS Set dimensions UnitOfMeasurement: UOM_CM Set package dimensions: 50, 50, 50 Set package weight: 10

Prices: S_STANDARD = 32.94eur S_SAVER = 68.51eur S_WW_EXPRESS = 81.84eur

When i use the exact same settings on the UPS website i get the following prices: Standard = 16.14eur Express Saver: 34eur Express: 42.55eur

It looks like the API gives me nearly doubled prices.

Is there sometime i miss?

Anne-Willems commented 1 year ago

turns out had to set to correct pickup type to "03"