点击或拖拽改变大小
盛派网络

OrderApiSetdeliveryOrder 方法

Senparc.Weixin SDK 官方教程《微信开发深度解析》已出版,支持中国开源事业,请【购买正版】
《微信公众号+小程序》视频课程已经上线,【点击这里】学习!

NeuChar(纽插)已经上线,为开发者提供一站式跨平台管理枢纽,并可将应用入驻到 NeuChar 应用商店!新功能正在不断增加中,快来使用吧! https://www.neuchar.com
在线动态微信接口 Swagger WebApi 文档: https://weixin.senparc.com:8039

设置订单发货信息

命名空间:  Senparc.Weixin.MP.AdvancedAPIs.MerChant
程序集:  Senparc.Weixin.MP (在 Senparc.Weixin.MP.dll 中) 版本:16.12.400+09cf0202d5d3e8b12fec87564321e2fafb5f0214
语法
[ApiBindAttribute(PlatformType.WeChat_OfficialAccount, "OrderApi.SetdeliveryOrder", 
	true)]
public static WxJsonResult SetdeliveryOrder(
	string accessToken,
	string orderId,
	string deliveryCompany,
	string deliveryTrackNo,
	int needDelivery = 1,
	int isOthers = 0
)

参数

accessToken
类型:SystemString
orderId
类型:SystemString
订单ID
deliveryCompany
类型:SystemString
物流公司ID(参考《物流公司ID》;当need_delivery为0时,可不填本字段;当need_delivery为1时,该字段不能为空;当need_delivery为1且is_others为1时,本字段填写其它物流公司名称)
deliveryTrackNo
类型:SystemString
运单ID(当need_delivery为0时,可不填本字段;当need_delivery为1时,该字段不能为空;)
needDelivery (Optional)
类型:SystemInt32
商品是否需要物流(0-不需要,1-需要,无该字段默认为需要物流)
isOthers (Optional)
类型:SystemInt32
是否为其它物流公司(0-否,1-是,无该字段默认为不是其它物流公司)

返回值

类型:WxJsonResult
参见