Skip to content
Bitzsoft.Integrationsbitzsoft.integrations

Reference

快递100

快递100包的 Kuaidi100Options 配置字段、授权码+顾客编码鉴权、订阅推送与使用示例。

Last updated

包信息

属性
NuGet 包Bitzsoft.Integrations.Express.Kuaidi100
Provider IDkuaidi100
鉴权授权码(Key)+ 顾客编码(Customer)
能力物流轨迹查询 + 订阅推送

配置字段(Kuaidi100Options)

字段类型必填默认值说明
Keystring授权码
Customerstring顾客编码
BaseUrlstringhttps://poll.kuaidi100.comAPI 基地址
HttpClientNamestringKuaidi100Express命名 HttpClient

配置示例

{
"Express": {
"Kuaidi100": {
"Key": "your-authorization-key",
"Customer": "your-customer-code"
}
}
}

DI 注册

builder.Services.AddBitzsoftKuaidi100Express(builder.Configuration.GetSection("Express:Kuaidi100"));

使用示例

public class Kuaidi100Service(IExpressProvider express)
{
public async Task<IReadOnlyList<ExpressTrackingInfo>> BatchTrackAsync(List<string> numbers)
{
return await express.BatchTrackAsync(numbers);
}
}

已知限制

  • 快递100的实时查询和订阅推送是不同的 API 端点,Customer 仅订阅接口需要。
  • 面单生成等高级能力需快递100企业版授权。

相关

100%

滚轮或按钮缩放 · 放大后拖动画面 · 双击切换 100% / 200%