问题标签 [easypost]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
78 浏览

c# - EasyPost USPS - 如何购买 Media Mail 货件?

我可以使用优先购买货件

如何购买 Media Mail 而不是 Priority?

我尝试 了shipping.Create() 并检查了 shipping.rates 但唯一可用的选项是PriorityExpress

0 投票
1 回答
58 浏览

easypost - 获取临时装运的费率

我正在尝试使用简单的发布 API,我想在不创建的情况下获得装运报价?(临时装运)。想法是客户想要获得发货报价,但当时他还没有决定购买,也许他会用另一个 api 购买。

使用简单的发布 API 处理此问题的正确方法是什么?

0 投票
1 回答
136 浏览

fedex - Easypost - Updating 'OPTIONS' after creating Shipment and before buying label

I am using Easypost and creating the shipment by passing from_address, to_address, parcel, customs_info, carrier_accounts, options. The shipment got created successfully.

And at the time of buying the label(of this shipment), I would like to include more options. Is there any possible way to update the options at the time of buying the label?

Codebase: Nodejs

0 投票
1 回答
193 浏览

asp.net-web-api - EasyPost 创建 Webhook 返回 null

我尝试在 asp.net 核心 API 项目中使用 easy post 创建一个简单的 post webhook。它在 webhook 创建中返回一个空值。

我试过这个

0 投票
2 回答
156 浏览

javascript - 如何使用 Easy Post API 传递多个参数

我正在使用 Easy Post API (Node.js),我能够触发 API 调用并使用单个跟踪号进行响应。

如何通过 API 运行多个跟踪号?

非常感谢所有帮助。

节点.js

测试参数(易贴提供)

跟踪器对象(由 Easy Post 提供)

0 投票
1 回答
65 浏览

reactjs - 如何使用 EasyPost 验证多个地址

是否有可能使用 EasyPost “验证地址” API 验证多个地址?批处理对象无法按预期工作,“验证地址”API 接受单个地址。更准确地说,我想发送一个带有多个地址的请求来验证,而不是发送多个地址的请求。

0 投票
2 回答
392 浏览

java - 应为字符串,但在第 1 行第 123 列路径 $.options 处为 BEGIN_OBJECT。在easypost发货中

当我使用 Easy post API 时,我正在使用 Easy post API 将货件集成到我的应用程序中, shipment.create(shipmentMap, EASYPOSTAPIKEY)它抛出错误 Expected a string but was BEGIN_OBJECTat line 1 column 123 path $.options

以下是我的代码

java.lang.IllegalStateException:应为字符串,但在第 1 行第 123 列路径 $.options.at com.google.gson.stream.JsonReader.nextString(JsonReader.java:825) 处为 BEGIN_OBJECT (JsonReader.java:825) ~[gson-2.8.5.jar :无]

0 投票
1 回答
113 浏览

c# - EasyPost:无法创建清单。指定货物中有 5 件已装单:

创建 ScanForm EasyPost 时返回以下错误。我如何确定货件是否已显示或无法显示。

无法创建清单。指定货物中有 5 件已装单:shp_aa, shp_xxx, shp_yy, shp_vv, shp_xx

0 投票
1 回答
54 浏览

ruby-on-rails - 如何在 JSON 请求对象中创建循环?

我需要创建多个“项目”以在 json 请求中使用。

这是一个有效的请求:

我需要的是不需要手动设置customs_items.

我试过了:

错误声明:创建自定义项目的参数无效或丢失

如何创建循环以处理 JSON 请求并像第一个手动工作的示例一样工作?

0 投票
1 回答
160 浏览

php - 如何将已创建的标签添加到联邦快递取件

我正在创建标签,一切正常。但是我怎样才能将已经创建的标签连接到 FEDEX 取件。

在这里,我试图添加一个已经创建的标签来拾取 $_SESSION['createdShipment']它在条件下工作。在代码中看到但我得到错误Unable to create pickup, the carrier associated with the batch shipments is inconsistent.