UPS Shipping Method

UPSยฎ Shipping Method allows your customers to get real-time shipping rates from UPSยฎ via the REST API (OAuth 2.0 security model) during the checkout process. The extension converts your store’s weight and dimension units to the units used for the UPS request. By default, a UPS rate is available only when the currency returned by UPS matches your store currency. UPSยฎ can calculate quotes for both domestic and international parcels.

To create shipping labels, you can use our free WooCommerce Shipping extension which offers discounted UPSยฎ rates, or you can purchase labels directly through UPSยฎ. You can also explore other shipping solutions available in the WooCommerce marketplace. The UPSยฎ Shipping Method extension focuses on providing live shipping rates at checkout and works alongside your preferred shipping label solution.

WooCommerce Shipping is a free label-printing and fulfillment extension built into WooCommerce that lets store owners buy and print USPS,…

Note:

This extension doesn’t handle freight shipping. Each package has a weight limit of 150 lbs. Physical products need weights for UPS rates; box packing also requires dimensions. See Adding Shipping Dimensions and Weights to Products.

Installation

↑ Back to top

To start using a product from WooCommerce.com, you can use the โ€œAdd to storeโ€ functionality on the order confirmation page or the My subscriptions section in your account.

  1. Navigate to My subscriptions.
  2. Find the Add to store button next to the product youโ€™re planning to install.
  3. Follow the instructions on the screen, and the product will be automatically added to your store.

Alternative options and more information at:
Managing WooCommerce.com subscriptions.

Configure and Connect Your UPS Account

↑ Back to top

Using the new REST API (OAuth 2.0 security model)

↑ Back to top

To get API credentials, you need a UPS.com login and a UPS shipper account. Follow the UPS Developer Portal setup guidance to create an application and subscribe to the Rating API. If you plan to use destination address validation, also subscribe to the Address Validation API.

  1. In the UPS Developer Portal, get the account number, client ID and client secret for your application.
  2. In your WordPress dashboard, go to WooCommerce > Settings > Shipping > UPS.
  3. If UPS API type is shown, select REST. Enter your UPS Account Number, UPS Client ID and UPS Client Secret.
  4. Select Save changes, then continue to Configuration to add UPS to a shipping zone.

Legacy UPS access keys

↑ Back to top

UPS has deprecated access keys and requires OAuth 2.0 for API access. If your store still uses a legacy access key, follow the REST API connection steps above.

Configuration

↑ Back to top

Add UPS to a shipping zone where you want to offer it. If you haven’t created a zone, see Setting up Shipping Zones.

  1. Go to WooCommerce > Settings > Shipping > Shipping zones.
  2. Select Edit on the zone where you want to offer UPS.
  3. Select Add shipping method.
  4. Select UPS, then select Continue.
  5. Configure the settings described below, then select Save zone and method.

To change the settings later, select Edit next to UPS in the shipping zone.

Shipping Method Settings

↑ Back to top

Method & Origin Settings

↑ Back to top
  • Method Title – Name the shipping method. This is visible to customers.
  • Tax Status – Select Taxable to charge taxes on shipping costs or None to not charge taxes. This setting is only shown if taxes are enabled in WooCommerce.
  • Origin City – Enter the city you will be shipping from.
  • Origin Postcode – Set to the postcode from where you ship. It is sent to the UPS API.
  • Origin Country – Set to the country from where you ship. It is sent to the UPS API.

Services and Packaging

↑ Back to top
  • Services โ€“ Choose to rename services in the Name field and/or rearrange the order that these options are shown to customers by clicking-and-dragging that list.
  • Offer Rates – Select whether to display all rates available or only the cheapest.
  • Negotiated Rates – Enable negotiated rates or not.
  • Delivery Confirmation – Optionally you may charge customers for delivery confirmation. This just adds the specified amount to the returned rates.
  • Parcel Packing Method – See below.
  • UPS Packaging – You can select from a built-in list of standard UPS packaging to use.
  • Custom Boxes – Here you can add custom box sizes to pack into.

Advanced Options

↑ Back to top
  • Origin Address – Sometimes you may need to enter the address for the sender/origin.
  • Residential – Choose whether to indicate deliveries as residential or commercial addresses.
  • Destination Address Validation – Enable address checks for destinations in the United States and Puerto Rico. Your UPS app must have the Address Validation API enabled.
  • Address Validation Behavior – Choose how to handle an address that UPS can’t validate exactly but has a suggestion for. The default, Lenient, shows a suggestion and allows the customer to proceed. Strict requires the customer to correct it before checking out with UPS. When validation runs, PO boxes and addresses without a usable suggestion block checkout with UPS in either mode.
  • Insured value – Request Insurance to be included in UPS rates.
  • Fallback – Enter a fallback amount for shipping, if no rates are found.
  • Weight/Dimension Units – Only change this if you’re getting the “This measurement system is not valid for the selected country method.”

Note:

The UPS shipping extension will calculate rates for all physical (non-Virtual) products in the cart. It does not exclude products based on shipping classes.

Parcel Packing Methods

↑ Back to top

There are two packing methods with UPS and each affects the parcels you send to the API: Pack items individually (Default) and Pack into boxes with weights and dimensions (Recommended).

Pack items individually (Default)

↑ Back to top

This packing method assumes that every physical (non-virtual) item in the cart is shipped in its own package based on the weight and dimensions entered for each individual product. Shipping rates are calculated separately for each item and then combined into the total shipping cost. Only the weight is required, but entering product dimensions produces a more accurate quote. For even more accuracy, we recommend the box packer method.

To use this method, add a new product then scroll down to Product Data > Shipping to enter the product dimensions.

↑ Back to top

Using this method, you create your own custom box sizes in UPS Settings. The extension uses the weight/dimensions of products added to the cart, filling the custom box size from smallest to largest based on volume and size, then sends the number of boxes/size to the UPS API for a shipping estimate. Both product weight and dimensions are needed for this option to calculate what boxes are required accurately.

After selecting this option, you must follow the steps listed below for UPS Packaging or Custom Box Packing for this method to work.

UPS Packaging

↑ Back to top

UPS offers standard boxes for shipping. In UPS Packaging, start typing a package name and select the package you want to include.

Note

If you choose Pack into boxes with weights and dimensions (Recommended) but have not chosen any UPS Packaging, nor defined any custom boxes (as explained below), the plugin displays the error message: “UPS is enabled, and Parcel Packing Method is set to ‘Pack into boxes’, but no UPS Packaging is selected and there are no custom boxes defined. Items will be packed individually.”

Custom Box-Packing

↑ Back to top

The box packer included with this shipping method groups items into boxes that you define by height, width, length, weight, and max-weight. The packing is mainly volume based, but also considers item sizes.

Note

The box packer is volume based. In most cases, this provides good results but is never as accurate as a real person packing a box (see BIN Packing Problem). Therefore, it is important to understand that packing results are as accurate as they can be, and any anomalies should be acceptable.

Setting up box sizes

↑ Back to top
  1. Go to: WooCommerce > Settings > Shipping.
  2. Select your Shipping Zone containing UPS, then click UPS
  3. Scroll down to Custom Boxes and select Add Box to set up box dimensions:

Outer dimensions are used for parcel dimensions and are passed to the API.

Inner dimensions are used for packing, and items should fit within these.

Box weight is the weight of the actual box and is added to the weight of contents.

Max weight is the maximum weight your box can hold. This includes contents weight and box weight. (Note: This value should never be set to 0 as that will result in that box not being used due to the Max Weight limitation being met before any items are packed inside.)

How the calculation works

↑ Back to top

The packer:

  1. Finds boxes that fit items being packed (uses L x W x H).
  2. Packs all fitting items into boxes (using volume).
  3. Uses the smallest box that fits 100% of items *or* uses the highest % packed box, and then passes unpacked items back and repeats the process.
  4. Packs unpackable items alone, using item dimensions.
  5. Returns all packed boxes.

Handling Fees

↑ Back to top

To add handling fees to shipping calculations, you can use a Price Adjustment column in the Services section. Using price adjustment columns in the row, each UPS service can be increased or decreased separately (by adding the “-” sign).

Use the Price Adjustment column with your store currency symbol to add a flat amount to a service. For example, in a USD store, enter 3.50 to add $3.50 to the shipping quote.

Use the Price Adjustment (%) column to change a service rate by a percentage. For example, enter 1 to add 1% to the quote returned by UPS.

Customer Usage

↑ Back to top

Customers get quotes after inputting their address from two places:

  • Cart page – via the shipping calculator
  • Checkout page – via the shipping and billing forms

Customers can select rates as normal.

Available Shipping Services for UPS Extension

↑ Back to top

These services are included with the UPS Shipping extension:

Domestic

  • 3-Day Select
  • Ground
  • 2nd Day Air
  • 2nd Day Air AM
  • Next Day Air
  • Next Day Air Saver
  • Next Day Air Early AM
  • Simple Rate
  • SurePost Less than 1LB
  • SurePost 1LB or greater
  • SurePost BPM
  • SurePost Media Mail

International

  • Standard
  • Worldwide Express
  • Worldwide Express Plus
  • Worldwide Expedited Standard
  • Worldwide Saver

Labels and multiple origins

↑ Back to top

Shipping labels and tracking

↑ Back to top

UPS Shipping Method provides rates at checkout. To purchase labels, use WooCommerce Shipping or purchase them directly from UPS.

Multiple origin addresses

↑ Back to top

Each UPS method in a shipping zone can use its own origin address. Each method requests rates for the shipping package using its configured origin. For an order shipped from multiple origins, make sure your shipping setup separates the products into the appropriate packages.

Troubleshooting

↑ Back to top

Debug the UPS API responses

↑ Back to top

This section explains how to enable debugging in the UPS extension to troubleshoot responses from the UPS API.

Go to WooCommerce > Settings > Shipping > UPS, enable Debug Mode, and save your changes. Add a product to the cart and enter a shipping address on the cart or checkout page to reproduce the problem. In WooCommerce > Status > Logs, look for UPS: Rate Request and UPS: Rate Response entries around the time of the test. Expand their additional context to see the details. If your store uses file logging, check the log source. Store administrators using the classic cart or checkout may also see debug notices. After troubleshooting, disable Debug Mode and save your changes.

No rates returned / no rates available / no shipping methods found

↑ Back to top

All shipping rates are live from UPS, so there is something in the request and/or the UPS response that does not match expectations.

  • Confirm that your API credentials are correct.
  • Check that your UPS origin address is correct and that your store currency matches the currency in the UPS rate response.
  • Check that your products have sizes and weights set – without this, the calculation cannot be performed.
  • Check the UPS debug output described under Debug the UPS API responses above.

This error can also occur when shipping zones are set up incorrectly. Check that the address matches a shipping zone. You can enable Shipping Debug under WooCommerce > Settings > Shipping > Shipping Options.

The UPS shipping method is only showing up for some customers

↑ Back to top

This usually happens when an extension such as Role-Based Shipping / Payment Methods is installed. It allows site administrators to limit available shipping methods for each user role, including guests. If this extension was installed before the UPS extension, it may affect which customers see the shipping method.

Shipping rates are too high / higher than expected

↑ Back to top

Start by comparing the returned prices with the prices shown in the UPS price calculator. This tool often requires the merchant to log in for their specific rates. If the prices don’t match up, there is usually a configuration issue.

Follow the UPS debug instructions to reproduce the calculation and review the request. Check the following settings in the shipping zone:

  • Parcel packing method โ€“ Default will result in higher costs
  • Custom box sizes
  • Negotiated rates โ€“ This may not be selected when their account enables them.
  • Origin address โ€“ Is this the correct location?
  • Insurance
  • Check the Price Adjustment columns to see if the price has been manually adjusted on the site.
  • Compare the debug request to the UPS price calculator to check if the returned prices are correct. This tool often requires the merchant to log in for their specific rates. If you need further support, please include a screenshot of the results.

“Invalid Authentication Information” error

↑ Back to top

If the UPS response in the debug log contains Invalid Authentication Information or 2500002: invalid authentication, check the API credentials and the app in your UPS account dashboard. To resolve this error, do the following:

  1. Log in to https://developer.ups.com/ and click on “My Apps”. Then, click on the link in the “App Name” column.
  2. Confirm that your App has “Rating” and “Authorization ( OAuth)” listed in the Product In Use column. If either of those are not listed there, click the “Add Products” button. Next, click the + icon on the right for any missing products and save the changes.
  3. Confirm that both the “Rating” and “Authorization ( OAuth)” products show “Approved” in the Status column when viewing the App info screen (described in Step 1). If any products show as “Pending“, try removing them with the “Remove” link on the right and re-adding them via the “Add Products” button (as described above).
  4. Try reconnecting to the API.
    • First, clear these fields in your UPS plugin settings (WooCommerce > Settings > Shipping > UPS):
      • UPS Account Number
      • UPS Client ID
      • UPS Client Secret
    • Make sure each field is completely empty with no spaces or characters.
    • Then enter your new credentials:
      • Copy your Billing Account number from the App Info page and paste it into UPS Account Number
      • Copy your Client ID from the App and paste it into UPS Client ID
      • Copy your Client Secret from the App and paste it into UPS Client Secret
    • Click “Save Changes” to finish.
    • Note: In the App, click the eye icon to view your Client ID and Client Secret. Use the clipboard icon to copy these values.
    • After completing these steps, repeat the cart or checkout test with Debug Mode enabled and check the log again. If the response still contains Invalid Authentication Information, contact UPS support and provide the error. Disable Debug Mode and save your changes after testing.

Rates are not in the correct currency

↑ Back to top

By default, a UPS rate won’t be returned if its currency differs from your store currency. With Debug Mode enabled, check the debug output for a warning like this:
[UPS] Rate for Standard (UPS) is in USD but store currency is EUR.

If you need to convert these rates to the correct currency, we recommend using the Multi Currency extension and setting up a conversion rate for both the account currency and the store currency.

Customize

↑ Back to top

To restrict UPS shipping methods based on shipping classes, you can use Conditional Shipping and Payments. See its shipping method restrictions for available conditions.

Questions and support

↑ Back to top

Something missing from this documentation? Still have questions and need assistance?

  • If you have a question about a specific extension or theme youโ€™d like to purchase, contact us to get answers.
  • If you already purchased this product and need some assistance, get in touch with a Happiness Engineer via our support page and select this product’s name from the Product dropdown.

Related Products

Get shipping rates from the USPS API which handles both domestic and international parcels.

Get shipping rates from the FedEx API which handles both domestic and international parcels.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.