Skip to content

Commit a63462d

Browse files
[IMP] inventory: UPS config
closes #8975 Signed-off-by: Felicia Kuan (feku) <feku@odoo.com> Co-authored-by: Zachary Straub <zst@odoo.com>
1 parent 71a0af6 commit a63462d

File tree

12 files changed

+180
-46
lines changed

12 files changed

+180
-46
lines changed
Lines changed: 180 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,202 @@
1-
=====================================================
2-
How to get UPS credentials for integration with Odoo?
3-
=====================================================
1+
===============
2+
UPS integration
3+
===============
44

5-
In order to use the Odoo UPS API, you will need:
5+
UPS is a shipping carrier service that integrates with Odoo to coordinate shipping to all regions.
6+
Once integrated, users can create shipping methods that estimate shipping costs and :doc:`generate
7+
labels <../advanced_operations_shipping/labels>`.
68

7-
- A UPS.com user ID and password
9+
.. seealso::
10+
:doc:`third_party_shipper`
811

9-
- A UPS account number
12+
To set up the UPS shipping connector in Odoo, complete these steps:
1013

11-
- An Access Key
14+
#. Create a UPS account to get :ref:`account number
15+
<inventory/shipping_receiving/ups-account-number>`
16+
#. Create UPS developer account to get :ref:`client credentials
17+
<inventory/shipping_receiving/ups-client-id>`
18+
#. Set up shipping method in Odoo
1219

13-
An Access Key is a 16 character alphanumeric code that allows access to
14-
the UPS Developer Kit API Development and Production servers.
20+
UPS account setup
21+
=================
1522

16-
Create a UPS Account
17-
====================
23+
To get started, go to the `UPS website <https://www.ups.com>`_ and click the :guilabel:`Log In`
24+
button in the top-right corner to log in or create a UPS account.
1825

19-
Note that only customers located in the US can open a UPS account online.
20-
If you are located outside the US, you will need to contact UPS Customer
21-
Service in order to to open an account.
26+
After logging in, click the profile icon in the top-right corner, and select :guilabel:`Accounts and
27+
Payment` from the drop-down menu.
2228

23-
You can read additional information about opening a UPS account on the
24-
their website, on the page, `How to Open a UPS Account Online
25-
<https://www.ups.com/content/us/en/resources/sri/openaccountonline.html?srch_pos=2&srch_phr=open+ups+account>`_
29+
.. image:: ups_credentials/accounts-payment.png
30+
:align: center
31+
:alt: Show how to navigate to the "Accounts and Payment" page from the home screen.
2632

27-
If you don't already have a UPS account, you can create one along with
28-
your online profile by following these steps:
33+
On the :guilabel:`Accounts and Payment Options` page, two accounts must be configured: an Odoo
34+
shipment account and a payment card.
2935

30-
1. Access the UPS.com web site at
31-
`www.ups.com <http://www.ups.com/>`__, and click the **New User** link
32-
at the top of the page.
36+
Shipping account
37+
----------------
3338

34-
2. Click the **Register for MyUPS** button, and follow the prompts to
35-
complete the registration process.
39+
To add an Odoo shipment account, select :guilabel:`Add New Account` from the :guilabel:`Add a
40+
Payment Method` drop-down menu, and click :guilabel:`Add`.
3641

37-
If you already have a UPS account, you can add it to your online profile as follows:
42+
.. image:: ups_credentials/new-account.png
43+
:align: center
44+
:alt: Display "Add an account" option from the drop-down menu.
3845

39-
1. Log in to the `UPS.com website <http://www.ups.com/>`_) using your UPS.com User ID and Password.
46+
On the next screen, labeled :guilabel:`Open a Shipping Account`, complete the forms to configure the
47+
shipping account type (e.g. :guilabel:`Business`) and if any regulated items will be shipped. Then
48+
finish the remaining three steps in the wizard to :guilabel:`Add Addresses`, :guilabel:`Verify
49+
Identity`, and :guilabel:`Explore Discounts`, with the last option being optional.
4050

41-
2. Click the **My UPS** tab.
51+
When complete, submit the application on the last page of the wizard to finish setting up the
52+
shipping account.
4253

43-
3. Click the **Account Summary** link.
54+
.. image:: ups_credentials/shipping-account.png
55+
:align: center
56+
:alt: Display UPS form to fill out company shipping information.
4457

45-
4. Click the **Add an Existing UPS Account** link in the **UPS Account Details**
46-
section of the page.
58+
.. _inventory/shipping_receiving/ups-account-number:
4759

48-
5. In the **Add New Account** screen, enter the **UPS Account Number**,
49-
**Account Name**, and **Postal Code** fields. The country defaults to
50-
United States.q
60+
Get account number
61+
------------------
5162

52-
6. Click the **Next** button to continue.
63+
With the shipping account set up, the UPS :guilabel:`Account Number` becomes available. To access
64+
it, navigate to :menuselection:`Profile --> Accounts and Payment` and refer to the shipping
65+
account's :guilabel:`Number` field.
5366

54-
Get an Access Key
55-
=================
67+
.. image:: ups_credentials/account-number.png
68+
:align: center
69+
:alt: Show Account "Number" field for the shipping account.
70+
71+
Payment card
72+
------------
73+
74+
Navigate back to the :guilabel:`Accounts and Payments` page and select the :guilabel:`Add Payment
75+
Card` option from the :guilabel:`Add a Payment Method` drop-down menu. Then, complete the form to
76+
add the credit card information.
77+
78+
.. image:: ups_credentials/payment-card.png
79+
:align: center
80+
:alt: Show "Add Payment Card" option from the drop-down.
81+
82+
UPS developer account setup
83+
===========================
84+
85+
Next, log into the `UPS developer account <http://developer.ups.com/>`_ to generate the developer
86+
key. To begin, click the profile icon in the top-right corner, and choose the :guilabel:`Apps`
87+
option from the drop-down menu.
88+
89+
.. image:: ups_credentials/apps.png
90+
:align: center
91+
:alt: Display the "Apps" drop-down option after clicking the profile picture icon.
92+
93+
Add app
94+
-------
95+
96+
Then, click the :guilabel:`Add Apps` button to begin filling out the form. In the :guilabel:`I need
97+
API credentials because \*` field, select :guilabel:`I want to integrate UPS technology into my
98+
business`.
99+
100+
Under the next label, :guilabel:`Choose an account to associate with these credentials. \*`, select
101+
:guilabel:`Add existing account` from the drop-down menu in the corresponding field, and then select
102+
the :ref:`account number <inventory/shipping_receiving/ups-account-number>` linked to the UPS
103+
account created in the previous step.
104+
105+
.. image:: ups_credentials/developer-account-setup.png
106+
:align: center
107+
:alt: Show form to fill in the UPS account number.
108+
109+
Click :guilabel:`Next`, and proceed to the :guilabel:`Add App` form, and fill out the fields:
110+
111+
- :guilabel:`App Name`: Type the name to identify the app by.
112+
- :guilabel:`Callback URL`: Type the URL of the Odoo database, in the format:
113+
`https://databaseName.odoo.com`. Do **not** include `www` in the URL.
114+
115+
In the :guilabel:`Add Products` section on the right, search for and click the :guilabel:`+ (plus)`
116+
icon to add the following products to the app:
117+
118+
- :guilabel:`Authorization (O Auth)`: Used to generate the authorization token to request
119+
information from the UPS API.
120+
- :guilabel:`Address Validation`: Validates addresses at the street level in the United States and
121+
Puerto Rico.
122+
- :guilabel:`Locator`: Enables search for UPS shipping locations based on type and available
123+
services.
124+
- :guilabel:`Paperless Documents`: Enables the upload of document images to link to shipments.
125+
- :guilabel:`Shipping`: Enables UPS shipping services, such as preparing packages for shipment,
126+
managing returns, and canceling scheduled shipments.
127+
- :guilabel:`Rating`: Compare delivery services and shipping rates.
128+
129+
Finally, click :guilabel:`Save` and accept UPS's terms and conditions.
130+
131+
.. seealso::
132+
`UPS API Catalog <https://developer.ups.com/catalog?loc=en_US>`_
133+
134+
.. image:: ups_credentials/add-app-development.png
135+
:align: center
136+
:alt: Show "Add Apps" form, where the app details are configured.
137+
138+
.. _inventory/shipping_receiving/ups-client-id:
139+
140+
Client ID and Client Secret
141+
---------------------------
142+
143+
With the new app created, in the :menuselection:`Profile --> My Apps --> App` page, select the app
144+
from the :guilabel:`Credentials` section to view the UPS credentials.
145+
146+
.. image:: ups_credentials/my-apps.png
147+
:align: center
148+
:alt: Show newly created app in the "My Apps" section.
149+
150+
In the :guilabel:`Credentials` section, copy the :guilabel:`Client ID` and :guilabel:`Client Secret`
151+
key.
152+
153+
.. image:: ups_credentials/credentials.png
154+
:align: center
155+
:alt: Display the "Client ID" and "Client Secret" key.
156+
157+
Setup in Odoo
158+
=============
159+
160+
With the credentials obtained, configure the UPS shipping method in Odoo by going to
161+
:menuselection:`Inventory app --> Configuration --> Shipping Methods`.
162+
163+
On the :guilabel:`Shipping Methods` page, click the :guilabel:`New` button.
56164

57-
After you have added your UPS account number to your user profile you
58-
can request an Access Key from UPS using the steps below:
165+
.. note::
166+
For existing UPS shipping methods whose :guilabel:`Provider` is :guilabel:`UPS Legacy`, archive
167+
it and create a new shipping method using :guilabel:`UPS`.
59168

60-
#. Go to the `UPS Developer Kit web page <https://www.ups.com/upsdeveloperkit?loc=en_US>`_
61-
#. Log into UPS.com with your user ID and password
62-
#. Click on the link **Request an access key**.
63-
#. Verify your contact information
64-
#. Click the **Request Access Key** button.
169+
In the :guilabel:`Provider` field, select :guilabel:`UPS`. Doing so reveals the :guilabel:`UPS
170+
Configuration` tab, where various fields must be entered. For details instructions on configuring
171+
the other fields on the shipping method, refer to the :doc:`Configure third-party carrier
172+
<third_party_shipper>` documentation.
65173

66-
The **Access Key** will be provided to you on the web page,
67-
and an email with the Access Key will be sent to the email address of
68-
the primary contact.
174+
In the :guilabel:`UPS Configuration` tab, complete the following fields:
175+
176+
- :guilabel:`UPS Account Number`: (*required*) Get the :ref:`account number
177+
<inventory/shipping_receiving/ups-account-number>` from the UPS portal.
178+
- :guilabel:`UPS Client ID`: (*required*) Get the :ref:`Client ID
179+
<inventory/shipping_receiving/ups-client-id>` from the UPS developer website.
180+
- :guilabel:`UPS Client Secret`: (*required*) Get the :ref:`Client Secret
181+
<inventory/shipping_receiving/ups-client-id>` key from the UPS developer website.
182+
- :guilabel:`UPS Service Type`: Select from the drop-down menu the type of shipping service.
183+
- :guilabel:`UPS Package Type`: (*required*) Select from the drop-down menu the :doc:`package type
184+
<../../product_management/product_tracking/package>` that is supported for the shipping service.
185+
- :guilabel:`Package Weight Unit`: The unit of measure for the package weight.
186+
- :guilabel:`Package Size Unit`: The unit of measure for the package dimensions.
187+
- :guilabel:`Label Format`: Choose the label format shipping labels: :guilabel:`PDF`,
188+
:guilabel:`ZPL`, :guilabel:`EPL`, or :guilabel:`SPL`.
189+
190+
.. image:: ups_credentials/ups-configuration.png
191+
:align: center
192+
:alt: Show the "UPS Configuration" tab on the Shipping Methods form.
193+
194+
In the :guilabel:`Options` section, the following features are available:
195+
196+
- :guilabel:`Bill My Account`: Charge the user's UPS account for shipping in the *eCommerce* app.
197+
- :guilabel:`Collect on Delivery`: Collect payment from customers for shipping after the shipment is
198+
delivered.
199+
- :guilabel:`Generate Return Label`: Print the return label for the order after the delivery order
200+
is validated.
201+
- :guilabel:`Duties paid by`: Select whether duties or other fees are charged to the
202+
:guilabel:`Sender` or :guilabel:`Recipient` of the order.
19.5 KB
Loading
21.6 KB
Loading
37.5 KB
Loading
16.3 KB
Loading
16.8 KB
Loading
Loading
12.4 KB
Loading
3.75 KB
Loading
8.27 KB
Loading

0 commit comments

Comments
 (0)