UPS 整合

UPS 是一项货运承运服务,与 Odoo 整合后可协调所有地区的货运。整合后,用户可以创建可估算运输成本的运输方法,并 生成标签

要在 Odoo 中设置 UPS 送货连接器,请完成以下步骤:

  1. 创建 UPS 账户,获取 账号

  2. 创建 UPS 开发者账户,获取 客户凭据

  3. 在 Odoo 中设置运输方式

UPS 账户设置

要开始使用,请访问 UPS 网站 <https://www.ups.com>`_,点击右上角的 登录 按钮登录或创建 UPS 帐户。

登录后,点击右上角的个人资料图标,从下拉菜单中选择 账户和付款

演示如何从主屏幕导航到 “账户和付款” 页面。

账户和付款选项 页面上,必须配置两个账户:Odoo 运输账户和付款卡。

运输账户

要添加 Odoo 运输账户,请从:guilabel:添加付款方式`下拉菜单中选择:guilabel:`添加新账户,然后点击:guilabel:添加

从下拉菜单中显示 “添加账户” 选项。

在下一个标有 开设运输账户 屏幕上,填写表格以配置运输账户类型(例如 商业)以及是否要装运任何受管制物品。然后完成向导中剩余的三个步骤:添加地址验证身份探索折扣,最后一个选项为可选项。

完成后,在向导的最后一页提交申请,以完成运输账户的设置。

显示 UPS 表格,填写公司运输信息。

获取账号

设置了运输账户后,UPS 的 账号 就可用了。要访问它,请导航至 配置文件 ‣ 帐户和付款,并参考运输帐户的 号码 字段。

显示发货账户的账户 “编号” 字段。

支付卡

返回 账户和付款 页面,从 添加付款方式 下拉菜单中选择 添加支付卡 选项。然后填写表格,添加信用卡信息。

从下拉菜单中显示 “添加支付卡” 选项。

UPS 开发者账户设置

接下来,登录 UPS开发人员账户 生成开发人员密钥。首先,点击右上角的配置文件图标,然后从下拉菜单中选择 应用程序 选项。

点击个人照片图标后,显示 “应用程序” 下拉选项。

添加应用程序

然后,点击 添加应用程序 按钮开始填写表格。在 我需要 API 凭证,因为(*) 字段,选择 我想将 UPS 技术整合到我的业务中

在下一个标签 选择与这些凭证关联的帐户。*,从相应字段的下拉菜单中选择 添加现有账户,然后选择与上一步创建的 UPS 账户关联的 账号

显示填写 UPS 账号的表格。

点击 下一步,进入 添加应用程序 表单并填写字段:

  • 应用程序名称:键入用于标识应用程序的名称。

  • 回调 URL:输入 Odoo 数据库的 URL,格式为 https://databaseName.odoo.com`。请勿在 URL 中包含 www

在右侧的 添加产品 部分,搜索并点击 + (加号) 图标,将以下产品添加到应用程序中:

  • 授权(O Auth):用于生成授权令牌,以便从 UPS API 请求信息。

  • 地址验证:验证美国和波多黎各的街道地址。

  • 定位器:根据类型和可用服务搜索 UPS 运输地点。

  • 无纸化文件:允许上传文件图像以链接到货运。

  • 运输:启用 UPS 装运服务,如准备装运包裹、管理退货和取消预定送货。

  • 评级:比较送货服务和运费。

最后,点击 保存 并接受 UPS 的条款和条件。

显示 “添加应用程序” 表单,在此配置应用程序的详细信息。

客户端 ID 和客户端密钥

创建新应用程序后,在 配置文件 ‣我的应用程序 ‣ 应用程序 页面中,从 凭证 部分选择应用程序以查看 UPS 凭证。

在 “我的应用程序” 部分显示新创建的应用程序。

凭证 部分,复制 客户 ID客户密钥

Display the "Client ID" and "Client Secret" key.

设置Odoo

With the credentials obtained, configure the UPS shipping method in Odoo by going to Inventory app ‣ Configuration ‣ Shipping Methods.

On the Shipping Methods page, click the New button.

注解

For existing UPS shipping methods whose Provider is UPS Legacy, archive it and create a new shipping method using UPS.

In the Provider field, select UPS. Doing so reveals the UPS Configuration tab, where various fields must be entered. For details instructions on configuring the other fields on the shipping method, refer to the Configure third-party carrier documentation.

In the UPS Configuration tab, complete the following fields:

  • UPS Account Number: (required) Get the account number from the UPS portal.

  • UPS Client ID: (required) Get the Client ID from the UPS developer website.

  • UPS Client Secret: (required) Get the Client Secret key from the UPS developer website.

  • UPS Service Type: Select from the drop-down menu the type of shipping service.

  • UPS Package Type: (required) Select from the drop-down menu the package type that is supported for the shipping service.

  • Package Weight Unit: The unit of measure for the package weight.

  • Package Size Unit: The unit of measure for the package dimensions.

  • Label Format: Choose the label format shipping labels: PDF, ZPL, EPL, or SPL.

Show the "UPS Configuration" tab on the Shipping Methods form.

In the Options section, the following features are available:

  • Bill My Account: Charge the user’s UPS account for shipping in the eCommerce app.

  • Collect on Delivery: Collect payment from customers for shipping after the shipment is delivered.

  • Generate Return Label: Print the return label for the order after the delivery order is validated.

  • Duties paid by: Select whether duties or other fees are charged to the Sender or Recipient of the order.