Skip to content
Bitzsoft.Integrationsbitzsoft.integrations

Reference

快递鸟

快递鸟包的 KdniaoOptions 配置字段、商户 ID 鉴权、即时查询与物流订阅与使用示例。

Last updated

包信息

属性
NuGet 包Bitzsoft.Integrations.Express.Kdniao
Provider IDkdniao
鉴权EBusinessId + AppKey
能力物流轨迹查询 + 订阅推送

配置字段(KdniaoOptions)

字段类型必填默认值说明
EBusinessIdstring商户 ID
AppKeystring应用密钥
BaseUrlstringhttps://api.kdniao.com/api/API 基地址
HttpClientNamestringKdniaoExpress命名 HttpClient

配置示例

{
"Express": {
"Kdniao": {
"EBusinessId": "your-merchant-id",
"AppKey": "your-app-key"
}
}
}

DI 注册

builder.Services.AddBitzsoftKdniaoExpress(builder.Configuration.GetSection("Express:Kdniao"));

使用示例

public class KdniaoService(IExpressProvider express)
{
public async Task<ExpressSubscriptionResult> SubscribeAsync(string trackingNumber, string callbackUrl)
{
return await express.SubscribeAsync(trackingNumber, callbackUrl);
}
}

已知限制

  • 快递鸟分即时查询 API 和订阅推送 API,两者计费方式不同。
  • CreateShipmentAsync 等下单能力快递鸟需企业版权限。

相关

100%

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