delivery

package
v0.0.0-...-f648943 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

提供了发货,物流单详情,区域地址和物流公司信息查询功能 auto sdk from taobao ApiMetadata.xml version 20140725 auther: [email protected]

Index

Constants

View Source
const VersionNo = "20140725"

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressReachableResult

type AddressReachableResult struct {
	ErrorCode   string `json:"error_code"`
	PartnerId   int    `json:"partner_id"`
	Reachable   int    `json:"reachable"`
	ServiceType int    `json:"service_type"`
}

判定服务是否可达的返回结果

type AddressResult

type AddressResult struct {
	Addr          string `json:"addr"`
	AreaId        int    `json:"area_id"`
	CancelDef     bool   `json:"cancel_def"`
	City          string `json:"city"`
	ContactId     int    `json:"contact_id"`
	ContactName   string `json:"contact_name"`
	Country       string `json:"country"`
	GetDef        bool   `json:"get_def"`
	Memo          string `json:"memo"`
	MobilePhone   string `json:"mobile_phone"`
	ModifyDate    string `json:"modify_date"`
	Phone         string `json:"phone"`
	Province      string `json:"province"`
	SellerCompany string `json:"seller_company"`
	SendDef       bool   `json:"send_def"`
	ZipCode       string `json:"zip_code"`
}

地址库返回数据信息

type Area

type Area struct {
	Id       int    `json:"id"`
	Name     string `json:"name"`
	ParentId int    `json:"parent_id"`
	Type     int    `json:"type"`
	Zip      string `json:"zip"`
}

地址区域结构

type AreasGetRequest

type AreasGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询标准地址区域代码信息。参考:http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/201401/t20140116_501070.html

func (*AreasGetRequest) GetResponse

func (r *AreasGetRequest) GetResponse(accessToken string) (*AreasGetResponse, []byte, error)

func (*AreasGetRequest) SetFields

func (r *AreasGetRequest) SetFields(value string)

需返回的字段列表.可选值:Area 结构中的所有字段;多个字段之间用","分隔.如:id,type,name,parent_id,zip.

type AreasGetResponse

type AreasGetResponse struct {
	Areas struct {
		Area []*Area `json:"area"`
	} `json:"areas"`
}

type AreasGetResponseResult

type AreasGetResponseResult struct {
	Response *AreasGetResponse `json:"areas_get_response"`
}

type CarriageDetail

type CarriageDetail struct {
	AddFee        int    `json:"add_fee"`
	AddWeight     int    `json:"add_weight"`
	DamagePayment string `json:"damage_payment"`
	GotTime       string `json:"got_time"`
	InitialFee    int    `json:"initial_fee"`
	InitialWeight int    `json:"initial_weight"`
	LostPayment   string `json:"lost_payment"`
	WayDay        string `json:"way_day"`
}

物流公司资费相关信息

type DeliveryTemplate

type DeliveryTemplate struct {
	Address       string `json:"address"`
	Assumer       int    `json:"assumer"`
	ConsignAreaId int    `json:"consign_area_id"`
	Created       string `json:"created"`
	FeeList       struct {
		TopFee []*TopFee `json:"top_fee"`
	} `json:"fee_list"`
	Modified   string `json:"modified"`
	Name       string `json:"name"`
	Supports   string `json:"supports"`
	TemplateId int    `json:"template_id"`
	Valuation  int    `json:"valuation"`
}

运费模板对象

type DeliveryTemplateAddRequest

type DeliveryTemplateAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

新增运费模板

func (*DeliveryTemplateAddRequest) GetResponse

func (r *DeliveryTemplateAddRequest) GetResponse(accessToken string) (*DeliveryTemplateAddResponse, []byte, error)

func (*DeliveryTemplateAddRequest) SetAssumer

func (r *DeliveryTemplateAddRequest) SetAssumer(value string)

可选值:0、1 ,说明如下<br>0:表示买家承担服务费;<br>1:表示卖家承担服务费

func (*DeliveryTemplateAddRequest) SetConsignAreaId

func (r *DeliveryTemplateAddRequest) SetConsignAreaId(value string)
卖家发货地址区域ID

<br/><br/><font color=blue>可以不填,如果没有填写取卖家默认发货地址的区域ID,如果需要输入必须用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm </font>

<br/><br/><font color=red>注意:填入该值时必须取您的发货地址最小区域级别ID,比如您的发货地址是:某省XX市xx区(县)时需要填入区(县)的ID,当然有些地方没有区或县可以直接填市级别的ID</font>

func (*DeliveryTemplateAddRequest) SetName

func (r *DeliveryTemplateAddRequest) SetName(value string)

运费模板的名称,长度不能超过50个字节<br /> 支持最大长度为:50<br /> 支持的最大列表长度为:50

func (*DeliveryTemplateAddRequest) SetTemplateAddFees

func (r *DeliveryTemplateAddRequest) SetTemplateAddFees(value string)
增费:输入0.00-999.99(最多包含两位小数)

<br/><br/><font color=blue>增费必须小于等于首费,但是当首费为0时增费可以大于首费</font>

<br/><br/><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateAddRequest) SetTemplateAddStandards

func (r *DeliveryTemplateAddRequest) SetTemplateAddStandards(value string)
增费标准:当valuation(记价方式)为0时输入1-9999范围内的整数<br/><font color=red>当valuation(记价方式)为1时输入0.1-9999.9范围内的小数只能包含以为小数(单位为千克)<br/><font color=blue>当valuation(记价方式)为3时输入0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)

<br/> <br><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateAddRequest) SetTemplateDests

func (r *DeliveryTemplateAddRequest) SetTemplateDests(value string)
邮费子项涉及的地区.结构: value1;value2;value3,value4

<br>如:1,110000;1,110000;1,310000;1,320000,330000。 aredId解释(1=全国,110000=北京,310000=上海,320000=江苏,330000=浙江) 如果template_types设置为post;ems;exmpress;cod则表示为平邮(post)指定默认地区(全国)和北京地区的运费;其他的类似以分号区分一一对应 <br/>可以用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm<br/> <br/><font color=red>每个运费方式设置涉及的地区中必须包含全国地区(areaId=1)表示默认运费,可以只设置默认运费</font> <br><font color=blue>注意:为多个地区指定指定不同(首费标准、首费、增费标准、增费一项不一样就算不同)的运费以逗号","区分, template_start_standards(首费标准)、template_start_fees(首费)、 template_add_standards(增费标准)、 template_add_fees(增费)必须与template_types分号数量相同。如果为需要为多个地区指定相同运费则地区之间用“|”隔开即可。</font> <font color=red>如果卖家没有传入发货地址则默认地址库的发货地址</font>

func (*DeliveryTemplateAddRequest) SetTemplateStartFees

func (r *DeliveryTemplateAddRequest) SetTemplateStartFees(value string)
首费:输入0.00-999.99(最多包含两位小数)

<br/><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateAddRequest) SetTemplateStartStandards

func (r *DeliveryTemplateAddRequest) SetTemplateStartStandards(value string)
首费标准:当valuation(记价方式)为0时输入1-9999范围内的整数<br/><font color=red>当valuation(记价方式)为1时输入0.1-9999.9范围内的小数只能包含以为小数(单位为千克)<br/><font color=blue>当valuation(记价方式)为3时输入0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)

<br/> <font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateAddRequest) SetTemplateTypes

func (r *DeliveryTemplateAddRequest) SetTemplateTypes(value string)
运费方式:平邮 (post),快递公司(express),EMS (ems),货到付款(cod),物流宝保障速递(wlb),家装物流(furniture)结构:value1;value2;value3;value4

如: post;express;ems;cod <br/><font color=red> 注意:在添加多个运费方式时,字符串中使用 ";" 分号区分 。template_dests(指定地区) template_start_standards(首费标准)、template_start_fees(首费)、template_add_standards(增费标准)、template_add_fees(增费)必须与template_types的分号数量相同. </font> <br> <font color=blue> 注意:<br/> 1、post,ems,express三种运费方式必须填写一个<br/> 2、只有订购了货到付款用户可以填cod;只有家装物流用户可以填写furniture 只有订购了保障速递的用户可以填写bzsd,只有物流宝用户可以填写wlb<br/> 3、如果是货到付款用户当没有填写cod运送方式时,运费模板会默认继承express的费用为cod的费用<br/> 4、如果是保障速递户当没有填写bzsd运送方式时,运费模板会默认继承express的费用为bzsd的费用<br/> 5、由于3和4的原因所以当是货到付款用户或保障速递用户时如果没填写对应的运送方式express是必须填写的 </font>

func (*DeliveryTemplateAddRequest) SetValuation

func (r *DeliveryTemplateAddRequest) SetValuation(value string)
可选值:0、1、3,说明如下。<br>0:表示按宝贝件数计算运费 <br>1:表示按宝贝重量计算运费

<br>3:表示按宝贝体积计算运费

type DeliveryTemplateAddResponse

type DeliveryTemplateAddResponse struct {
	DeliveryTemplate *DeliveryTemplate `json:"delivery_template"`
}

type DeliveryTemplateAddResponseResult

type DeliveryTemplateAddResponseResult struct {
	Response *DeliveryTemplateAddResponse `json:"delivery_template_add_response"`
}

type DeliveryTemplateDeleteRequest

type DeliveryTemplateDeleteRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据用户指定的模板ID删除指定的模板

func (*DeliveryTemplateDeleteRequest) GetResponse

func (*DeliveryTemplateDeleteRequest) SetTemplateId

func (r *DeliveryTemplateDeleteRequest) SetTemplateId(value string)

运费模板ID

type DeliveryTemplateDeleteResponse

type DeliveryTemplateDeleteResponse struct {
	Complete bool `json:"complete"`
}

type DeliveryTemplateDeleteResponseResult

type DeliveryTemplateDeleteResponseResult struct {
	Response *DeliveryTemplateDeleteResponse `json:"delivery_template_delete_response"`
}

type DeliveryTemplateGetRequest

type DeliveryTemplateGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

获取用户指定运费模板信息

func (*DeliveryTemplateGetRequest) GetResponse

func (r *DeliveryTemplateGetRequest) GetResponse(accessToken string) (*DeliveryTemplateGetResponse, []byte, error)

func (*DeliveryTemplateGetRequest) SetFields

func (r *DeliveryTemplateGetRequest) SetFields(value string)
需返回的字段列表。 <br/>

<B> 可选值:示例中的值;各字段之间用","隔开 </B> <br/><br/> <font color=blue> template_id:查询模板ID <br/> template_name:查询模板名称 <br/> assumer:查询服务承担放 <br/> valuation:查询计价规则 <br/> supports:查询增值服务列表 <br/> created:查询模板创建时间 <br/> modified:查询修改时间<br/> consign_area_id:运费模板上设置的卖家发货地址最小级别ID<br/> address:卖家地址信息 </font> <br/><br/> <font color=bule> query_cod:查询货到付款运费信息<br/> query_post:查询平邮运费信息 <br/> query_express:查询快递公司运费信息 <br/> query_ems:查询EMS运费信息<br/> query_bzsd:查询普通保障速递运费信息<br/> query_wlb:查询物流宝保障速递运费信息<br/> query_furniture:查询家装物流运费信息 <font color=blue> <br/><br/> <font color=red>不能有空格</font>

func (*DeliveryTemplateGetRequest) SetTemplateIds

func (r *DeliveryTemplateGetRequest) SetTemplateIds(value string)

需要查询的运费模板ID列表

func (*DeliveryTemplateGetRequest) SetUserNick

func (r *DeliveryTemplateGetRequest) SetUserNick(value string)

在没有登录的情况下根据淘宝用户昵称查询指定的模板

type DeliveryTemplateGetResponse

type DeliveryTemplateGetResponse struct {
	DeliveryTemplates struct {
		DeliveryTemplate []*DeliveryTemplate `json:"delivery_template"`
	} `json:"delivery_templates"`
	TotalResults int `json:"total_results"`
}

type DeliveryTemplateGetResponseResult

type DeliveryTemplateGetResponseResult struct {
	Response *DeliveryTemplateGetResponse `json:"delivery_template_get_response"`
}

type DeliveryTemplateUpdateRequest

type DeliveryTemplateUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

修改运费模板

func (*DeliveryTemplateUpdateRequest) GetResponse

func (*DeliveryTemplateUpdateRequest) SetAssumer

func (r *DeliveryTemplateUpdateRequest) SetAssumer(value string)

可选值:0,1 <br> 说明<br>0:表示买家承担服务费;<br>1:表示卖家承担服务费

func (*DeliveryTemplateUpdateRequest) SetName

func (r *DeliveryTemplateUpdateRequest) SetName(value string)

模板名称,长度不能大于50个字节

func (*DeliveryTemplateUpdateRequest) SetTemplateAddFees

func (r *DeliveryTemplateUpdateRequest) SetTemplateAddFees(value string)

增费:输入0.00-999.99(最多包含两位小数)<br/><font color=blue>增费可以为0</font><br/><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateUpdateRequest) SetTemplateAddStandards

func (r *DeliveryTemplateUpdateRequest) SetTemplateAddStandards(value string)
增费标准:当valuation(记价方式)为0时输入1-9999范围内的整数<br><font color=blue>增费标准目前只能为1</font>

<br><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateUpdateRequest) SetTemplateDests

func (r *DeliveryTemplateUpdateRequest) SetTemplateDests(value string)
邮费子项涉及的地区.结构: value1;value2;value3,value4

<br>如:1,110000;1,110000;1,310000;1,320000,330000。 aredId解释(1=全国,110000=北京,310000=上海,320000=江苏,330000=浙江) 如果template_types设置为post;ems;exmpress;cod则表示为平邮(post)指定默认地区(全国)和北京地区的运费;其他的类似以分号区分一一对应 <br/>可以用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm <br/><font color=red>每个运费方式设置的设涉及地区中必须包含全国地区(areaId=1)表示默认运费,可以只设置默认运费</font> <br><font color=blue>注意:为多个地区指定指定不同(首费标准、首费、增费标准、增费一项不一样就算不同)的运费以逗号","区分, template_start_standards(首费标准)、template_start_fees(首费)、 template_add_standards(增费标准)、 template_add_fees(增费)必须与template_types分号数量相同。如果为需要为多个地区指定相同运费则地区之间用“|”隔开即可。</font>

func (*DeliveryTemplateUpdateRequest) SetTemplateId

func (r *DeliveryTemplateUpdateRequest) SetTemplateId(value string)

需要修改的模板对应的模板ID

func (*DeliveryTemplateUpdateRequest) SetTemplateStartFees

func (r *DeliveryTemplateUpdateRequest) SetTemplateStartFees(value string)
首费:输入0.01-999.99(最多包含两位小数)

<br/><font color=blue> 首费不能为0</font><br><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateUpdateRequest) SetTemplateStartStandards

func (r *DeliveryTemplateUpdateRequest) SetTemplateStartStandards(value string)
首费标准:当valuation(记价方式)为0时输入1-9999范围内的整数<br><font color=blue>首费标准目前只能为1</br>

<br><font color=red>输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致</font>

func (*DeliveryTemplateUpdateRequest) SetTemplateTypes

func (r *DeliveryTemplateUpdateRequest) SetTemplateTypes(value string)
运费方式:平邮 (post),快递公司(express),EMS (ems),货到付款(cod)结构:value1;value2;value3;value4

如: post;express;ems;cod <br/><font color=red> 注意:在添加多个运费方式时,字符串中使用 ";" 分号区分。template_dests(指定地区) template_start_standards(首费标准)、template_start_fees(首费)、template_add_standards(增费标准)、template_add_fees(增费)必须与template_types的分号数量相同.

</font>

<br/> <font color=blue> 普通用户:post,ems,express三种运费方式必须填写一个,不能填写cod。 货到付款用户:如果填写了cod运费方式,则post,ems,express三种运费方式也必须填写一个,如果没有填写cod则填写的运费方式中必须存在express</font>

type DeliveryTemplateUpdateResponse

type DeliveryTemplateUpdateResponse struct {
	Complete bool `json:"complete"`
}

type DeliveryTemplateUpdateResponseResult

type DeliveryTemplateUpdateResponseResult struct {
	Response *DeliveryTemplateUpdateResponse `json:"delivery_template_update_response"`
}

type DeliveryTemplatesGetRequest

type DeliveryTemplatesGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据用户ID获取用户下所有模板

func (*DeliveryTemplatesGetRequest) GetResponse

func (r *DeliveryTemplatesGetRequest) GetResponse(accessToken string) (*DeliveryTemplatesGetResponse, []byte, error)

func (*DeliveryTemplatesGetRequest) SetFields

func (r *DeliveryTemplatesGetRequest) SetFields(value string)
需返回的字段列表。 <br/>

<B> 可选值:示例中的值;各字段之间用","隔开 </B> <br/><br/> <font color=blue> template_id:查询模板ID <br/> template_name:查询模板名称 <br/> assumer:查询服务承担放 <br/> valuation:查询计价规则 <br/> supports:查询增值服务列表 <br/> created:查询模板创建时间 <br/> modified:查询修改时间<br/> consign_area_id:运费模板上设置的卖家发货地址最小级别ID<br/> address:卖家地址信息 </font> <br/><br/> <font color=bule> query_cod:查询货到付款运费信息<br/> query_post:查询平邮运费信息 <br/> query_express:查询快递公司运费信息 <br/> query_ems:查询EMS运费信息<br/> query_bzsd:查询普通保障速递运费信息<br/> query_wlb:查询物流宝保障速递运费信息<br/> query_furniture:查询家装物流运费信息 <font color=blue> <br/><br/> <font color=red>不能有空格</font>

type DeliveryTemplatesGetResponse

type DeliveryTemplatesGetResponse struct {
	DeliveryTemplates struct {
		DeliveryTemplate []*DeliveryTemplate `json:"delivery_template"`
	} `json:"delivery_templates"`
	TotalResults int `json:"total_results"`
}

type DeliveryTemplatesGetResponseResult

type DeliveryTemplatesGetResponseResult struct {
	Response *DeliveryTemplatesGetResponse `json:"delivery_templates_get_response"`
}

type Location

type Location struct {
	Address  string `json:"address"`
	City     string `json:"city"`
	Country  string `json:"country"`
	District string `json:"district"`
	State    string `json:"state"`
	Zip      string `json:"zip"`
}

用户地址

type LogisticsAddressAddRequest

type LogisticsAddressAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

通过此接口新增卖家地址库,卖家最多可添加5条地址库,新增第一条卖家地址,将会自动设为默认地址库

func (*LogisticsAddressAddRequest) GetResponse

func (r *LogisticsAddressAddRequest) GetResponse(accessToken string) (*LogisticsAddressAddResponse, []byte, error)

func (*LogisticsAddressAddRequest) SetAddr

func (r *LogisticsAddressAddRequest) SetAddr(value string)

详细街道地址,不需要重复填写省/市/区

func (*LogisticsAddressAddRequest) SetCancelDef

func (r *LogisticsAddressAddRequest) SetCancelDef(value string)
默认退货地址。<br>

<font color='red'>选择此项(true),将当前地址设为默认退货地址,撤消原默认退货地址</font>

func (*LogisticsAddressAddRequest) SetCity

func (r *LogisticsAddressAddRequest) SetCity(value string)

所在市

func (*LogisticsAddressAddRequest) SetContactName

func (r *LogisticsAddressAddRequest) SetContactName(value string)

联系人姓名 <font color='red'>长度不可超过20个字节</font>

func (*LogisticsAddressAddRequest) SetCountry

func (r *LogisticsAddressAddRequest) SetCountry(value string)
区、县

<br><font color='red'>如果所在地区是海外的可以为空,否则为必参</font>

func (*LogisticsAddressAddRequest) SetGetDef

func (r *LogisticsAddressAddRequest) SetGetDef(value string)
默认取货地址。<br>

<font color='red'>选择此项(true),将当前地址设为默认取货地址,撤消原默认取货地址</font>

func (*LogisticsAddressAddRequest) SetMemo

func (r *LogisticsAddressAddRequest) SetMemo(value string)

备注,<br><font color='red'>备注不能超过256字节</font><br /> 支持最大长度为:256<br /> 支持的最大列表长度为:256

func (*LogisticsAddressAddRequest) SetMobilePhone

func (r *LogisticsAddressAddRequest) SetMobilePhone(value string)
手机号码,手机与电话必需有一个

<br><font color='red'>手机号码不能超过20位</font>

func (*LogisticsAddressAddRequest) SetPhone

func (r *LogisticsAddressAddRequest) SetPhone(value string)

电话号码,手机与电话必需有一个

func (*LogisticsAddressAddRequest) SetProvince

func (r *LogisticsAddressAddRequest) SetProvince(value string)

所在省

func (*LogisticsAddressAddRequest) SetSellerCompany

func (r *LogisticsAddressAddRequest) SetSellerCompany(value string)

公司名称,<br><font color="red">公司名称长能不能超过20字节</font><br /> 支持最大长度为:20<br /> 支持的最大列表长度为:20

func (*LogisticsAddressAddRequest) SetZipCode

func (r *LogisticsAddressAddRequest) SetZipCode(value string)
地区邮政编码

<br><font color='red'>如果所在地区是海外的可以为空,否则为必参</font>

type LogisticsAddressAddResponse

type LogisticsAddressAddResponse struct {
	AddressResult *AddressResult `json:"address_result"`
}

type LogisticsAddressAddResponseResult

type LogisticsAddressAddResponseResult struct {
	Response *LogisticsAddressAddResponse `json:"logistics_address_add_response"`
}

type LogisticsAddressModifyRequest

type LogisticsAddressModifyRequest struct {
	open_taobao.TaobaoMethodRequest
}

卖家地址库修改

func (*LogisticsAddressModifyRequest) GetResponse

func (*LogisticsAddressModifyRequest) SetAddr

func (r *LogisticsAddressModifyRequest) SetAddr(value string)

详细街道地址,不需要重复填写省/市/区

func (*LogisticsAddressModifyRequest) SetCancelDef

func (r *LogisticsAddressModifyRequest) SetCancelDef(value string)
默认退货地址。<br>

<font color='red'>选择此项(true),将当前地址设为默认退货地址,撤消原默认退货地址</font>

func (*LogisticsAddressModifyRequest) SetCity

func (r *LogisticsAddressModifyRequest) SetCity(value string)

所在市

func (*LogisticsAddressModifyRequest) SetContactId

func (r *LogisticsAddressModifyRequest) SetContactId(value string)

地址库ID

func (*LogisticsAddressModifyRequest) SetContactName

func (r *LogisticsAddressModifyRequest) SetContactName(value string)
联系人姓名

<font color='red'>长度不可超过20个字节</font>

func (*LogisticsAddressModifyRequest) SetCountry

func (r *LogisticsAddressModifyRequest) SetCountry(value string)
区、县

<br><font color='red'>如果所在地区是海外的可以为空,否则为必参</font>

func (*LogisticsAddressModifyRequest) SetGetDef

func (r *LogisticsAddressModifyRequest) SetGetDef(value string)
默认取货地址。<br>

<font color='red'>选择此项(true),将当前地址设为默认取货地址,撤消原默认取货地址</font>

func (*LogisticsAddressModifyRequest) SetMemo

func (r *LogisticsAddressModifyRequest) SetMemo(value string)

备注,<br><font color='red'>备注不能超过256字节</font>

func (*LogisticsAddressModifyRequest) SetMobilePhone

func (r *LogisticsAddressModifyRequest) SetMobilePhone(value string)

手机号码,手机与电话必需有一个 <br><font color='red'>手机号码不能超过20位</font>

func (*LogisticsAddressModifyRequest) SetPhone

func (r *LogisticsAddressModifyRequest) SetPhone(value string)

电话号码,手机与电话必需有一个

func (*LogisticsAddressModifyRequest) SetProvince

func (r *LogisticsAddressModifyRequest) SetProvince(value string)

所在省

func (*LogisticsAddressModifyRequest) SetSellerCompany

func (r *LogisticsAddressModifyRequest) SetSellerCompany(value string)
公司名称,

<br><font color='red'>公司名称长能不能超过20字节</font>

func (*LogisticsAddressModifyRequest) SetZipCode

func (r *LogisticsAddressModifyRequest) SetZipCode(value string)
地区邮政编码

<br><font color='red'>如果所在地区是海外的可以为空,否则为必参</font>

type LogisticsAddressModifyResponse

type LogisticsAddressModifyResponse struct {
	AddressResult *AddressResult `json:"address_result"`
}

type LogisticsAddressModifyResponseResult

type LogisticsAddressModifyResponseResult struct {
	Response *LogisticsAddressModifyResponse `json:"logistics_address_modify_response"`
}

type LogisticsAddressReachableRequest

type LogisticsAddressReachableRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据输入的目标地址,判断服务是否可达

func (*LogisticsAddressReachableRequest) GetResponse

func (*LogisticsAddressReachableRequest) SetAddress

func (r *LogisticsAddressReachableRequest) SetAddress(value string)

详细地址

func (*LogisticsAddressReachableRequest) SetAreaCode

func (r *LogisticsAddressReachableRequest) SetAreaCode(value string)

标准区域编码(三级行政区编码或是四级行政区),可以通过taobao.areas.get获取,如北京市朝阳区为110105

func (*LogisticsAddressReachableRequest) SetPartnerIds

func (r *LogisticsAddressReachableRequest) SetPartnerIds(value string)

物流公司编码ID,可以从这个接口获取所有物流公司的标准编码taobao.logistics.companies.get,可以传入多个值,以英文逗号分隔,如“1000000952,1000000953”

func (*LogisticsAddressReachableRequest) SetServiceType

func (r *LogisticsAddressReachableRequest) SetServiceType(value string)

服务对应的数字编码,如揽派范围对应88

func (*LogisticsAddressReachableRequest) SetSourceAreaCode

func (r *LogisticsAddressReachableRequest) SetSourceAreaCode(value string)

发货地,标准区域编码(四级行政),可以通过taobao.areas.get获取,如浙江省杭州市余杭区闲林街道为 330110011

type LogisticsAddressReachableResponse

type LogisticsAddressReachableResponse struct {
	ReachableResultList struct {
		AddressReachableResult []*AddressReachableResult `json:"address_reachable_result"`
	} `json:"reachable_result_list"`
}

type LogisticsAddressReachableResponseResult

type LogisticsAddressReachableResponseResult struct {
	Response *LogisticsAddressReachableResponse `json:"logistics_address_reachable_response"`
}

type LogisticsAddressRemoveRequest

type LogisticsAddressRemoveRequest struct {
	open_taobao.TaobaoMethodRequest
}

用此接口删除卖家地址库

func (*LogisticsAddressRemoveRequest) GetResponse

func (*LogisticsAddressRemoveRequest) SetContactId

func (r *LogisticsAddressRemoveRequest) SetContactId(value string)

地址库ID

type LogisticsAddressRemoveResponse

type LogisticsAddressRemoveResponse struct {
	AddressResult *AddressResult `json:"address_result"`
}

type LogisticsAddressRemoveResponseResult

type LogisticsAddressRemoveResponseResult struct {
	Response *LogisticsAddressRemoveResponse `json:"logistics_address_remove_response"`
}

type LogisticsAddressSearchRequest

type LogisticsAddressSearchRequest struct {
	open_taobao.TaobaoMethodRequest
}

通过此接口查询卖家地址库,

func (*LogisticsAddressSearchRequest) GetResponse

func (*LogisticsAddressSearchRequest) SetRdef

func (r *LogisticsAddressSearchRequest) SetRdef(value string)
可选,参数列表如下:<br><font color='red'>

no_def:查询非默认地址<br> get_def:查询默认取货地址<br> cancel_def:查询默认退货地址<br> 缺省此参数时,查询所有当前用户的地址库 </font>

type LogisticsAddressSearchResponse

type LogisticsAddressSearchResponse struct {
	Addresses struct {
		AddressResult []*AddressResult `json:"address_result"`
	} `json:"addresses"`
}

type LogisticsAddressSearchResponseResult

type LogisticsAddressSearchResponseResult struct {
	Response *LogisticsAddressSearchResponse `json:"logistics_address_search_response"`
}

type LogisticsCompaniesGetRequest

type LogisticsCompaniesGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询淘宝网合作的物流公司信息,用于发货接口。

func (*LogisticsCompaniesGetRequest) GetResponse

func (r *LogisticsCompaniesGetRequest) GetResponse(accessToken string) (*LogisticsCompaniesGetResponse, []byte, error)

func (*LogisticsCompaniesGetRequest) SetFields

func (r *LogisticsCompaniesGetRequest) SetFields(value string)
需返回的字段列表。可选值:LogisticCompany 结构中的所有字段;多个字段间用","逗号隔开.

如:id,code,name,reg_mail_no <br><font color='red'>说明:</font> <br>id:物流公司ID <br>code:物流公司code <br>name:物流公司名称 <br>reg_mail_no:物流公司对应的运单规则

func (*LogisticsCompaniesGetRequest) SetIsRecommended

func (r *LogisticsCompaniesGetRequest) SetIsRecommended(value string)

是否查询推荐物流公司.可选值:true,false.如果不提供此参数,将会返回所有支持电话联系的物流公司.

func (*LogisticsCompaniesGetRequest) SetOrderMode

func (r *LogisticsCompaniesGetRequest) SetOrderMode(value string)

推荐物流公司的下单方式.可选值:offline(电话联系/自己联系),online(在线下单),all(即电话联系又在线下单). 此参数仅仅用于is_recommended 为ture时。就是说对于推荐物流公司才可用.如果不选择此参数将会返回推荐物流中支持电话联系的物流公司.

type LogisticsCompaniesGetResponse

type LogisticsCompaniesGetResponse struct {
	LogisticsCompanies struct {
		LogisticsCompany []*LogisticsCompany `json:"logistics_company"`
	} `json:"logistics_companies"`
}

type LogisticsCompaniesGetResponseResult

type LogisticsCompaniesGetResponseResult struct {
	Response *LogisticsCompaniesGetResponse `json:"logistics_companies_get_response"`
}

type LogisticsCompany

type LogisticsCompany struct {
	Code      string `json:"code"`
	Id        int    `json:"id"`
	Name      string `json:"name"`
	RegMailNo string `json:"reg_mail_no"`
}

物流公司基础数据结构

type LogisticsConsignOrderCreateandsendRequest

type LogisticsConsignOrderCreateandsendRequest struct {
	open_taobao.TaobaoMethodRequest
}

创建物流订单,并发货。

func (*LogisticsConsignOrderCreateandsendRequest) GetResponse

func (*LogisticsConsignOrderCreateandsendRequest) SetCompanyId

func (r *LogisticsConsignOrderCreateandsendRequest) SetCompanyId(value string)

物流公司ID

func (*LogisticsConsignOrderCreateandsendRequest) SetItemJsonString

func (r *LogisticsConsignOrderCreateandsendRequest) SetItemJsonString(value string)

物品的json数据。

func (*LogisticsConsignOrderCreateandsendRequest) SetLogisType

func (r *LogisticsConsignOrderCreateandsendRequest) SetLogisType(value string)

物流订单物流类型,值固定选择:2

func (*LogisticsConsignOrderCreateandsendRequest) SetMailNo

运单号

func (*LogisticsConsignOrderCreateandsendRequest) SetOrderSource

func (r *LogisticsConsignOrderCreateandsendRequest) SetOrderSource(value string)

订单来源,值选择:30

func (*LogisticsConsignOrderCreateandsendRequest) SetOrderType

func (r *LogisticsConsignOrderCreateandsendRequest) SetOrderType(value string)

订单类型,值固定选择:30

func (*LogisticsConsignOrderCreateandsendRequest) SetRAddress

func (r *LogisticsConsignOrderCreateandsendRequest) SetRAddress(value string)

收件人街道地址

func (*LogisticsConsignOrderCreateandsendRequest) SetRAreaId

收件人区域ID

func (*LogisticsConsignOrderCreateandsendRequest) SetRCityName

func (r *LogisticsConsignOrderCreateandsendRequest) SetRCityName(value string)

func (*LogisticsConsignOrderCreateandsendRequest) SetRDistName

func (r *LogisticsConsignOrderCreateandsendRequest) SetRDistName(value string)

func (*LogisticsConsignOrderCreateandsendRequest) SetRMobilePhone

func (r *LogisticsConsignOrderCreateandsendRequest) SetRMobilePhone(value string)

手机号码

func (*LogisticsConsignOrderCreateandsendRequest) SetRName

收件人名称

func (*LogisticsConsignOrderCreateandsendRequest) SetRProvName

func (r *LogisticsConsignOrderCreateandsendRequest) SetRProvName(value string)

func (*LogisticsConsignOrderCreateandsendRequest) SetRTelephone

func (r *LogisticsConsignOrderCreateandsendRequest) SetRTelephone(value string)

电话号码

func (*LogisticsConsignOrderCreateandsendRequest) SetRZipCode

func (r *LogisticsConsignOrderCreateandsendRequest) SetRZipCode(value string)

收件人邮编

func (*LogisticsConsignOrderCreateandsendRequest) SetSAddress

func (r *LogisticsConsignOrderCreateandsendRequest) SetSAddress(value string)

发件人街道地址

func (*LogisticsConsignOrderCreateandsendRequest) SetSAreaId

发件人区域ID

func (*LogisticsConsignOrderCreateandsendRequest) SetSCityName

func (r *LogisticsConsignOrderCreateandsendRequest) SetSCityName(value string)

func (*LogisticsConsignOrderCreateandsendRequest) SetSDistName

func (r *LogisticsConsignOrderCreateandsendRequest) SetSDistName(value string)

func (*LogisticsConsignOrderCreateandsendRequest) SetSMobilePhone

func (r *LogisticsConsignOrderCreateandsendRequest) SetSMobilePhone(value string)

手机号码

func (*LogisticsConsignOrderCreateandsendRequest) SetSName

发件人名称

func (*LogisticsConsignOrderCreateandsendRequest) SetSProvName

func (r *LogisticsConsignOrderCreateandsendRequest) SetSProvName(value string)

func (*LogisticsConsignOrderCreateandsendRequest) SetSTelephone

func (r *LogisticsConsignOrderCreateandsendRequest) SetSTelephone(value string)

电话号码

func (*LogisticsConsignOrderCreateandsendRequest) SetSZipCode

func (r *LogisticsConsignOrderCreateandsendRequest) SetSZipCode(value string)

发件人出编

func (*LogisticsConsignOrderCreateandsendRequest) SetShipping

func (r *LogisticsConsignOrderCreateandsendRequest) SetShipping(value string)

费用承担方式 1买家承担运费 2卖家承担运费

func (*LogisticsConsignOrderCreateandsendRequest) SetTradeId

交易流水号,淘外订单号或者商家内部交易流水号

func (*LogisticsConsignOrderCreateandsendRequest) SetUserId

用户ID

type LogisticsConsignOrderCreateandsendResponse

type LogisticsConsignOrderCreateandsendResponse struct {
	IsSuccess  bool   `json:"is_success"`
	OrderId    int    `json:"order_id"`
	ResultDesc string `json:"result_desc"`
}

type LogisticsConsignOrderCreateandsendResponseResult

type LogisticsConsignOrderCreateandsendResponseResult struct {
	Response *LogisticsConsignOrderCreateandsendResponse `json:"logistics_consign_order_createandsend_response"`
}

type LogisticsConsignResendRequest

type LogisticsConsignResendRequest struct {
	open_taobao.TaobaoMethodRequest
}
支持卖家发货后修改物流公司和运单号;支持在线下单和自己联系两种发货方式;使用条件:<br>

1、必须是已发货订单,自己联系发货的必须24小时内才可修改;在线下单的,必须下单后物流公司未揽收成功前才可修改; 2、自己联系只能切换为自己联系的公司,在线下单也只能切换为在线下单的物流公司。

func (*LogisticsConsignResendRequest) GetResponse

func (*LogisticsConsignResendRequest) SetCompanyCode

func (r *LogisticsConsignResendRequest) SetCompanyCode(value string)
物流公司代码.如"POST"代表中国邮政,"ZJS"代表宅急送。调用 taobao.logistics.companies.get 获取。

<br><font color='red'>如果是货到付款订单,选择的物流公司必须支持货到付款发货方式</font>

func (*LogisticsConsignResendRequest) SetFeature

func (r *LogisticsConsignResendRequest) SetFeature(value string)
feature参数格式<br>

范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B<br> identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔<br> “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。<br> 例1商品和2商品,之间就用"|"分开。<br> TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上)<br> ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。<br> "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。<br> 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。<br> 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。<br> 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。

func (*LogisticsConsignResendRequest) SetIsSplit

func (r *LogisticsConsignResendRequest) SetIsSplit(value string)

表明是否是拆单,默认值0,1表示拆单

func (*LogisticsConsignResendRequest) SetOutSid

func (r *LogisticsConsignResendRequest) SetOutSid(value string)

运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入;

func (*LogisticsConsignResendRequest) SetSellerIp

func (r *LogisticsConsignResendRequest) SetSellerIp(value string)

商家的IP地址

func (*LogisticsConsignResendRequest) SetSubTid

func (r *LogisticsConsignResendRequest) SetSubTid(value string)

拆单子订单列表,对应的数据是:子订单号列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集!

func (*LogisticsConsignResendRequest) SetTid

func (r *LogisticsConsignResendRequest) SetTid(value string)

淘宝交易ID<br /> 支持最小值为:1000

type LogisticsConsignResendResponse

type LogisticsConsignResendResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsConsignResendResponseResult

type LogisticsConsignResendResponseResult struct {
	Response *LogisticsConsignResendResponse `json:"logistics_consign_resend_response"`
}

type LogisticsDummySendRequest

type LogisticsDummySendRequest struct {
	open_taobao.TaobaoMethodRequest
}

用户调用该接口可实现无需物流(虚拟)发货,使用该接口发货,交易订单状态会直接变成卖家已发货

func (*LogisticsDummySendRequest) GetResponse

func (r *LogisticsDummySendRequest) GetResponse(accessToken string) (*LogisticsDummySendResponse, []byte, error)

func (*LogisticsDummySendRequest) SetFeature

func (r *LogisticsDummySendRequest) SetFeature(value string)
feature参数格式<br>

范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B<br> identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔<br> “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。<br> 例1商品和2商品,之间就用"|"分开。<br> TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上)<br> ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。<br> "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。<br> 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。<br> 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。<br> 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。

func (*LogisticsDummySendRequest) SetSellerIp

func (r *LogisticsDummySendRequest) SetSellerIp(value string)

商家的IP地址

func (*LogisticsDummySendRequest) SetTid

func (r *LogisticsDummySendRequest) SetTid(value string)

淘宝交易ID

type LogisticsDummySendResponse

type LogisticsDummySendResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsDummySendResponseResult

type LogisticsDummySendResponseResult struct {
	Response *LogisticsDummySendResponse `json:"logistics_dummy_send_response"`
}

type LogisticsOfflineSendRequest

type LogisticsOfflineSendRequest struct {
	open_taobao.TaobaoMethodRequest
}

用户调用该接口可实现自己联系发货(线下物流),使用该接口发货,交易订单状态会直接变成卖家已发货。不支持货到付款、在线下单类型的订单。

func (*LogisticsOfflineSendRequest) GetResponse

func (r *LogisticsOfflineSendRequest) GetResponse(accessToken string) (*LogisticsOfflineSendResponse, []byte, error)

func (*LogisticsOfflineSendRequest) SetCancelId

func (r *LogisticsOfflineSendRequest) SetCancelId(value string)

卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。<br><font color='red'>如果为空,取的卖家的默认退货地址</font><br>

func (*LogisticsOfflineSendRequest) SetCompanyCode

func (r *LogisticsOfflineSendRequest) SetCompanyCode(value string)

物流公司代码.如"POST"就代表中国邮政,"ZJS"就代表宅急送.调用 taobao.logistics.companies.get 获取。非淘宝官方物流合作公司,填写具体的物流公司名称,如“顺丰”。

func (*LogisticsOfflineSendRequest) SetFeature

func (r *LogisticsOfflineSendRequest) SetFeature(value string)
feature参数格式<br>

范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B<br> identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔<br> “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。<br> 例1商品和2商品,之间就用"|"分开。<br> TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上)<br> ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。<br> "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。<br> 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。<br> 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。<br> 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。

func (*LogisticsOfflineSendRequest) SetIsSplit

func (r *LogisticsOfflineSendRequest) SetIsSplit(value string)
表明是否是拆单

1表示拆单 0表示不拆单,默认值0

func (*LogisticsOfflineSendRequest) SetOutSid

func (r *LogisticsOfflineSendRequest) SetOutSid(value string)

运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入;若company_code中传入的代码非淘宝官方物流合作公司,此处运单号不校验。

func (*LogisticsOfflineSendRequest) SetSellerIp

func (r *LogisticsOfflineSendRequest) SetSellerIp(value string)

商家的IP地址

func (*LogisticsOfflineSendRequest) SetSenderId

func (r *LogisticsOfflineSendRequest) SetSenderId(value string)

卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。<font color='red'>如果为空,取的卖家的默认取货地址</font>

func (*LogisticsOfflineSendRequest) SetSubTid

func (r *LogisticsOfflineSendRequest) SetSubTid(value string)

需要拆单发货的子订单集合,为空表示不做拆单发货。

func (*LogisticsOfflineSendRequest) SetTid

func (r *LogisticsOfflineSendRequest) SetTid(value string)

淘宝交易ID<br /> 支持最小值为:1000

type LogisticsOfflineSendResponse

type LogisticsOfflineSendResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsOfflineSendResponseResult

type LogisticsOfflineSendResponseResult struct {
	Response *LogisticsOfflineSendResponse `json:"logistics_offline_send_response"`
}

type LogisticsOnlineCancelRequest

type LogisticsOnlineCancelRequest struct {
	open_taobao.TaobaoMethodRequest
}

调此接口取消发货的订单,重新选择物流公司发货。前提是物流公司未揽收货物。对未发货和已经被物流公司揽收的物流订单,是不能取消的。

func (*LogisticsOnlineCancelRequest) GetResponse

func (r *LogisticsOnlineCancelRequest) GetResponse(accessToken string) (*LogisticsOnlineCancelResponse, []byte, error)

func (*LogisticsOnlineCancelRequest) SetTid

func (r *LogisticsOnlineCancelRequest) SetTid(value string)

淘宝交易ID

type LogisticsOnlineCancelResponse

type LogisticsOnlineCancelResponse struct {
	IsSuccess        bool   `json:"is_success"`
	ModifyTime       string `json:"modify_time"`
	RecreatedOrderId int    `json:"recreated_order_id"`
}

type LogisticsOnlineCancelResponseResult

type LogisticsOnlineCancelResponseResult struct {
	Response *LogisticsOnlineCancelResponse `json:"logistics_online_cancel_response"`
}

type LogisticsOnlineConfirmRequest

type LogisticsOnlineConfirmRequest struct {
	open_taobao.TaobaoMethodRequest
}

确认发货的目的是让交易流程继承走下去,确认发货后交易状态会由【买家已付款】变为【卖家已发货】,然后买家才可以确认收货,货款打入卖家账号。货到付款的订单除外

func (*LogisticsOnlineConfirmRequest) GetResponse

func (*LogisticsOnlineConfirmRequest) SetIsSplit

func (r *LogisticsOnlineConfirmRequest) SetIsSplit(value string)

表明是否是拆单,默认值0,1表示拆单

func (*LogisticsOnlineConfirmRequest) SetOutSid

func (r *LogisticsOnlineConfirmRequest) SetOutSid(value string)

运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入;若company_code中传入的代码非淘宝官方物流合作公司,此处运单号不校验。<br>

func (*LogisticsOnlineConfirmRequest) SetSellerIp

func (r *LogisticsOnlineConfirmRequest) SetSellerIp(value string)

商家的IP地址

func (*LogisticsOnlineConfirmRequest) SetSubTid

func (r *LogisticsOnlineConfirmRequest) SetSubTid(value string)

拆单子订单列表,对应的数据是:子订单号的列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集!

func (*LogisticsOnlineConfirmRequest) SetTid

func (r *LogisticsOnlineConfirmRequest) SetTid(value string)

淘宝交易ID<br /> 支持最小值为:1000

type LogisticsOnlineConfirmResponse

type LogisticsOnlineConfirmResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsOnlineConfirmResponseResult

type LogisticsOnlineConfirmResponseResult struct {
	Response *LogisticsOnlineConfirmResponse `json:"logistics_online_confirm_response"`
}

type LogisticsOnlineSendRequest

type LogisticsOnlineSendRequest struct {
	open_taobao.TaobaoMethodRequest
}
用户调用该接口可实现在线订单发货(支持货到付款)

调用该接口实现在线下单发货,有两种情况:<br> <font color='red'>如果不输入运单号的情况:交易状态不会改变,需要调用taobao.logistics.online.confirm确认发货后交易状态才会变成卖家已发货。<br> 如果输入运单号的情况发货:交易订单状态会直接变成卖家已发货 。</font>

func (*LogisticsOnlineSendRequest) GetResponse

func (r *LogisticsOnlineSendRequest) GetResponse(accessToken string) (*LogisticsOnlineSendResponse, []byte, error)

func (*LogisticsOnlineSendRequest) SetCancelId

func (r *LogisticsOnlineSendRequest) SetCancelId(value string)

卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。<br><font color='red'>如果为空,取的卖家的默认退货地址</font><br>

func (*LogisticsOnlineSendRequest) SetCompanyCode

func (r *LogisticsOnlineSendRequest) SetCompanyCode(value string)
物流公司代码.如"POST"就代表中国邮政,"ZJS"就代表宅急送.调用 taobao.logistics.companies.get 获取。

<br><font color='red'>如果是货到付款订单,选择的物流公司必须支持货到付款发货方式</font>

func (*LogisticsOnlineSendRequest) SetFeature

func (r *LogisticsOnlineSendRequest) SetFeature(value string)
feature参数格式<br>

范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B<br> identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔<br> “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。<br> 例1商品和2商品,之间就用"|"分开。<br> TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上)<br> ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。<br> "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。<br> 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。<br> 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。<br> 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。

func (*LogisticsOnlineSendRequest) SetIsSplit

func (r *LogisticsOnlineSendRequest) SetIsSplit(value string)

表明是否是拆单,默认值0,1表示拆单

func (*LogisticsOnlineSendRequest) SetOutSid

func (r *LogisticsOnlineSendRequest) SetOutSid(value string)

运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入;

func (*LogisticsOnlineSendRequest) SetSellerIp

func (r *LogisticsOnlineSendRequest) SetSellerIp(value string)

商家的IP地址

func (*LogisticsOnlineSendRequest) SetSenderId

func (r *LogisticsOnlineSendRequest) SetSenderId(value string)

卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。<font color='red'>如果为空,取的卖家的默认取货地址</font>

func (*LogisticsOnlineSendRequest) SetSubTid

func (r *LogisticsOnlineSendRequest) SetSubTid(value string)

拆单子订单列表,对应的数据是:子订单号的列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集!

func (*LogisticsOnlineSendRequest) SetTid

func (r *LogisticsOnlineSendRequest) SetTid(value string)

淘宝交易ID<br /> 支持最小值为:1000

type LogisticsOnlineSendResponse

type LogisticsOnlineSendResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsOnlineSendResponseResult

type LogisticsOnlineSendResponseResult struct {
	Response *LogisticsOnlineSendResponse `json:"logistics_online_send_response"`
}

type LogisticsOrderCreateRequest

type LogisticsOrderCreateRequest struct {
	open_taobao.TaobaoMethodRequest
}

用户调用该接口可以创建物流订单。目前仅支持手工订单的创建,创建完毕后默认自动使用“自己联系”的方式发货并且初始状态为”已发货“。也可以通过可选参数选择是否发货以及何种方式进行发货。

func (*LogisticsOrderCreateRequest) GetResponse

func (r *LogisticsOrderCreateRequest) GetResponse(accessToken string) (*LogisticsOrderCreateResponse, []byte, error)

func (*LogisticsOrderCreateRequest) SetGoodsNames

func (r *LogisticsOrderCreateRequest) SetGoodsNames(value string)

运送的货物名称列表,用|号隔开

func (*LogisticsOrderCreateRequest) SetGoodsQuantities

func (r *LogisticsOrderCreateRequest) SetGoodsQuantities(value string)

运送货物的数量列表,用|号隔开

func (*LogisticsOrderCreateRequest) SetIsConsign

func (r *LogisticsOrderCreateRequest) SetIsConsign(value string)

创建订单同时是否进行发货,默认发货。

func (*LogisticsOrderCreateRequest) SetItemValues

func (r *LogisticsOrderCreateRequest) SetItemValues(value string)

运送货物的单价列表(注意:单位为分),用|号隔开

func (*LogisticsOrderCreateRequest) SetLogisCompanyCode

func (r *LogisticsOrderCreateRequest) SetLogisCompanyCode(value string)

发货的物流公司代码,如申通=STO,圆通=YTO。is_consign=true时,此项必填。

func (*LogisticsOrderCreateRequest) SetLogisType

func (r *LogisticsOrderCreateRequest) SetLogisType(value string)

发货方式,默认为自己联系发货。可选值:ONLINE(在线下单)、OFFLINE(自己联系)。

func (*LogisticsOrderCreateRequest) SetMailNo

func (r *LogisticsOrderCreateRequest) SetMailNo(value string)

发货的物流公司运单号。在logis_type=OFFLINE且is_consign=true时,此项必填。

func (*LogisticsOrderCreateRequest) SetReceiverAddress

func (r *LogisticsOrderCreateRequest) SetReceiverAddress(value string)

收货人详细地址,比如”浙江省^^^杭州市^^^下城区^^^文二路“,中间用“^^^”分隔

func (*LogisticsOrderCreateRequest) SetReceiverMobilePhone

func (r *LogisticsOrderCreateRequest) SetReceiverMobilePhone(value string)

收货人手机号码(若此处为空,则电话必填)

func (*LogisticsOrderCreateRequest) SetReceiverName

func (r *LogisticsOrderCreateRequest) SetReceiverName(value string)

收货人姓名

func (*LogisticsOrderCreateRequest) SetReceiverTelephone

func (r *LogisticsOrderCreateRequest) SetReceiverTelephone(value string)

收货人电话号码(若此处为空,则手机号码必填)

func (*LogisticsOrderCreateRequest) SetReceiverZipCode

func (r *LogisticsOrderCreateRequest) SetReceiverZipCode(value string)

收货人邮编

func (*LogisticsOrderCreateRequest) SetSellerWangwangId

func (r *LogisticsOrderCreateRequest) SetSellerWangwangId(value string)

卖家旺旺号

func (*LogisticsOrderCreateRequest) SetSenderAddress

func (r *LogisticsOrderCreateRequest) SetSenderAddress(value string)

发货人详细地址,比如”浙江省^^^杭州市^^^下城区^^^文二路“,中间用“^^^”分隔

func (*LogisticsOrderCreateRequest) SetSenderMobilePhone

func (r *LogisticsOrderCreateRequest) SetSenderMobilePhone(value string)

发货人手机号码(若此处为空,则电话必填)

func (*LogisticsOrderCreateRequest) SetSenderName

func (r *LogisticsOrderCreateRequest) SetSenderName(value string)

发货人姓名

func (*LogisticsOrderCreateRequest) SetSenderTelephone

func (r *LogisticsOrderCreateRequest) SetSenderTelephone(value string)

发货人电话号码(如此处为空,则手机号码必填)

func (*LogisticsOrderCreateRequest) SetSenderZipCode

func (r *LogisticsOrderCreateRequest) SetSenderZipCode(value string)

发货人邮编

func (*LogisticsOrderCreateRequest) SetShipping

func (r *LogisticsOrderCreateRequest) SetShipping(value string)

运费承担方式。1为买家承担运费,2为卖家承担运费,其他值为错误参数。

func (*LogisticsOrderCreateRequest) SetTradeId

func (r *LogisticsOrderCreateRequest) SetTradeId(value string)

订单的交易号码

type LogisticsOrderCreateResponse

type LogisticsOrderCreateResponse struct {
	TradeId int `json:"trade_id"`
}

type LogisticsOrderCreateResponseResult

type LogisticsOrderCreateResponseResult struct {
	Response *LogisticsOrderCreateResponse `json:"logistics_order_create_response"`
}

type LogisticsOrderShengxianConfirmRequest

type LogisticsOrderShengxianConfirmRequest struct {
	open_taobao.TaobaoMethodRequest
}

优鲜送,生鲜业务使用该接口发货,交易订单状态会直接变成卖家已发货。不支持货到付款、在线下单类型的订单。

func (*LogisticsOrderShengxianConfirmRequest) GetResponse

func (*LogisticsOrderShengxianConfirmRequest) SetCancelId

func (r *LogisticsOrderShengxianConfirmRequest) SetCancelId(value string)

卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。<br><font color='red'>如果为空,取的卖家的默认退货地址</font><br>

func (*LogisticsOrderShengxianConfirmRequest) SetDeliveryType

func (r *LogisticsOrderShengxianConfirmRequest) SetDeliveryType(value string)

1:冷链。0:常温

func (*LogisticsOrderShengxianConfirmRequest) SetLogisId

func (r *LogisticsOrderShengxianConfirmRequest) SetLogisId(value string)

物流订单ID 。同淘宝交易订单互斥,淘宝交易号存在,,以淘宝交易号为准<br /> 支持最小值为:1000

func (*LogisticsOrderShengxianConfirmRequest) SetOutSid

func (r *LogisticsOrderShengxianConfirmRequest) SetOutSid(value string)

运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入;

func (*LogisticsOrderShengxianConfirmRequest) SetSellerIp

func (r *LogisticsOrderShengxianConfirmRequest) SetSellerIp(value string)

商家的IP地址

func (*LogisticsOrderShengxianConfirmRequest) SetSenderId

func (r *LogisticsOrderShengxianConfirmRequest) SetSenderId(value string)
卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。<font color='red'>如果为空,取的卖家的默认取货地址</font>

如果service_code不为空,默认使用service_code 如果service_code为空,sender_id不为空,使用sender_id对应的地址发货 如果service_code与sender_id都为空,使用默认地址发货

func (*LogisticsOrderShengxianConfirmRequest) SetServiceCode

func (r *LogisticsOrderShengxianConfirmRequest) SetServiceCode(value string)
仓库的服务代码标示,代码一个仓库的实体。(可以通过taobao.wlb.stores.baseinfo.get接口查询)

如果service_code为空,默认通过sender_id来发货

func (*LogisticsOrderShengxianConfirmRequest) SetTid

淘宝交易ID<br /> 支持最小值为:1000

type LogisticsOrderShengxianConfirmResponse

type LogisticsOrderShengxianConfirmResponse struct {
	IsSuccess bool       `json:"is_success"`
	ShipFresh *ShipFresh `json:"ship_fresh"`
}

type LogisticsOrderShengxianConfirmResponseResult

type LogisticsOrderShengxianConfirmResponseResult struct {
	Response *LogisticsOrderShengxianConfirmResponse `json:"logistics_order_shengxian_confirm_response"`
}

type LogisticsOrdersDetailGetRequest

type LogisticsOrdersDetailGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询物流订单的详细信息,涉及用户隐私字段。(注:该API主要是提供给卖家查询物流订单使用,买家查询物流订单,建议使用taobao.logistics.trace.search)

func (*LogisticsOrdersDetailGetRequest) GetResponse

func (*LogisticsOrdersDetailGetRequest) SetBuyerNick

func (r *LogisticsOrdersDetailGetRequest) SetBuyerNick(value string)

买家昵称

func (*LogisticsOrdersDetailGetRequest) SetEndCreated

func (r *LogisticsOrdersDetailGetRequest) SetEndCreated(value string)

创建时间结束.格式:yyyy-MM-dd HH:mm:ss

func (*LogisticsOrdersDetailGetRequest) SetFields

func (r *LogisticsOrdersDetailGetRequest) SetFields(value string)

需返回的字段列表.可选值:Shipping 物流数据结构中所有字段.fileds中可以指定返回以上任意一个或者多个字段,以","分隔.

func (*LogisticsOrdersDetailGetRequest) SetFreightPayer

func (r *LogisticsOrdersDetailGetRequest) SetFreightPayer(value string)

谁承担运费.可选值:buyer(买家),seller(卖家).如:buyer

func (*LogisticsOrdersDetailGetRequest) SetPageNo

func (r *LogisticsOrdersDetailGetRequest) SetPageNo(value string)

页码.该字段没传 或 值<1 ,则默认page_no为1

func (*LogisticsOrdersDetailGetRequest) SetPageSize

func (r *LogisticsOrdersDetailGetRequest) SetPageSize(value string)

每页条数.该字段没传 或 值<1 ,则默认page_size为40<br /> 支持最大值为:100

func (*LogisticsOrdersDetailGetRequest) SetReceiverName

func (r *LogisticsOrdersDetailGetRequest) SetReceiverName(value string)

收货人姓名

func (*LogisticsOrdersDetailGetRequest) SetSellerConfirm

func (r *LogisticsOrdersDetailGetRequest) SetSellerConfirm(value string)

卖家是否发货.可选值:yes(是),no(否).如:yes.

func (*LogisticsOrdersDetailGetRequest) SetStartCreated

func (r *LogisticsOrdersDetailGetRequest) SetStartCreated(value string)

创建时间开始.格式:yyyy-MM-dd HH:mm:ss

func (*LogisticsOrdersDetailGetRequest) SetStatus

func (r *LogisticsOrdersDetailGetRequest) SetStatus(value string)

物流状态.可查看数据结构 Shipping 中的status字段.

func (*LogisticsOrdersDetailGetRequest) SetTid

func (r *LogisticsOrdersDetailGetRequest) SetTid(value string)

交易ID.如果加入tid参数的话,不用传其他的参数,但是仅会返回一条物流订单信息.

func (*LogisticsOrdersDetailGetRequest) SetType

func (r *LogisticsOrdersDetailGetRequest) SetType(value string)

物流方式.可选值:post(平邮),express(快递),ems(EMS).如:post

type LogisticsOrdersDetailGetResponse

type LogisticsOrdersDetailGetResponse struct {
	Shippings struct {
		Shipping []*Shipping `json:"shipping"`
	} `json:"shippings"`
	TotalResults int `json:"total_results"`
}

type LogisticsOrdersDetailGetResponseResult

type LogisticsOrdersDetailGetResponseResult struct {
	Response *LogisticsOrdersDetailGetResponse `json:"logistics_orders_detail_get_response"`
}

type LogisticsOrdersGetRequest

type LogisticsOrdersGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

批量查询物流订单。(注:该API主要是提供给卖家查询物流订单使用,买家查询物流订单,建议使用taobao.logistics.trace.search)

func (*LogisticsOrdersGetRequest) GetResponse

func (r *LogisticsOrdersGetRequest) GetResponse(accessToken string) (*LogisticsOrdersGetResponse, []byte, error)

func (*LogisticsOrdersGetRequest) SetBuyerNick

func (r *LogisticsOrdersGetRequest) SetBuyerNick(value string)

买家昵称

func (*LogisticsOrdersGetRequest) SetEndCreated

func (r *LogisticsOrdersGetRequest) SetEndCreated(value string)

创建时间结束

func (*LogisticsOrdersGetRequest) SetFields

func (r *LogisticsOrdersGetRequest) SetFields(value string)
需返回的字段列表.可选值:Shipping 物流数据结构中的以下字段: <br>

tid,order_code,seller_nick,buyer_nick,delivery_start, delivery_end,out_sid,item_title,receiver_name, created,modified,status,type,freight_payer,seller_confirm,company_name,sub_tids,is_spilt;<br>多个字段之间用","分隔。如tid,seller_nick,buyer_nick,delivery_start。

func (*LogisticsOrdersGetRequest) SetFreightPayer

func (r *LogisticsOrdersGetRequest) SetFreightPayer(value string)

谁承担运费.可选值:buyer(买家),seller(卖家).如:buyer

func (*LogisticsOrdersGetRequest) SetPageNo

func (r *LogisticsOrdersGetRequest) SetPageNo(value string)

页码.该字段没传 或 值<1 ,则默认page_no为1

func (*LogisticsOrdersGetRequest) SetPageSize

func (r *LogisticsOrdersGetRequest) SetPageSize(value string)

每页条数.该字段没传 或 值<1 ,则默认page_size为40<br /> 支持最大值为:100

func (*LogisticsOrdersGetRequest) SetReceiverName

func (r *LogisticsOrdersGetRequest) SetReceiverName(value string)

收货人姓名

func (*LogisticsOrdersGetRequest) SetSellerConfirm

func (r *LogisticsOrdersGetRequest) SetSellerConfirm(value string)

卖家是否发货.可选值:yes(是),no(否).如:yes

func (*LogisticsOrdersGetRequest) SetStartCreated

func (r *LogisticsOrdersGetRequest) SetStartCreated(value string)

创建时间开始

func (*LogisticsOrdersGetRequest) SetStatus

func (r *LogisticsOrdersGetRequest) SetStatus(value string)

物流状态.查看数据结构 Shipping 中的status字段.

func (*LogisticsOrdersGetRequest) SetTid

func (r *LogisticsOrdersGetRequest) SetTid(value string)

交易ID.如果加入tid参数的话,不用传其他的参数,若传入tid:非拆单场景,仅会返回一条物流订单信息;拆单场景,会返回多条物流订单信息

func (*LogisticsOrdersGetRequest) SetType

func (r *LogisticsOrdersGetRequest) SetType(value string)

物流方式.可选值:post(平邮),express(快递),ems(EMS).如:post

type LogisticsOrdersGetResponse

type LogisticsOrdersGetResponse struct {
	Shippings struct {
		Shipping []*Shipping `json:"shipping"`
	} `json:"shippings"`
	TotalResults int `json:"total_results"`
}

type LogisticsOrdersGetResponseResult

type LogisticsOrdersGetResponseResult struct {
	Response *LogisticsOrdersGetResponse `json:"logistics_orders_get_response"`
}

type LogisticsOrderstorePushRequest

type LogisticsOrderstorePushRequest struct {
	open_taobao.TaobaoMethodRequest
}

卖家使用自己的物流公司发货,可以通过本接口将订单的仓内信息推送到淘宝,淘宝保存这些仓内信息,并可在页面展示这些仓内信息。

func (*LogisticsOrderstorePushRequest) GetResponse

func (*LogisticsOrderstorePushRequest) SetIsSplit

func (r *LogisticsOrderstorePushRequest) SetIsSplit(value string)

表明是否是拆单,默认值0,1表示拆单

func (*LogisticsOrderstorePushRequest) SetOccureTime

func (r *LogisticsOrderstorePushRequest) SetOccureTime(value string)

流转状态发生时间

func (*LogisticsOrderstorePushRequest) SetOperateDetail

func (r *LogisticsOrderstorePushRequest) SetOperateDetail(value string)

仓内操作描述<br /> 支持最大长度为:200<br /> 支持的最大列表长度为:200

func (*LogisticsOrderstorePushRequest) SetOperatorContact

func (r *LogisticsOrderstorePushRequest) SetOperatorContact(value string)

快递业务员联系方式<br /> 支持最大长度为:20<br /> 支持的最大列表长度为:20

func (*LogisticsOrderstorePushRequest) SetOperatorName

func (r *LogisticsOrderstorePushRequest) SetOperatorName(value string)

快递业务员名称<br /> 支持最大长度为:20<br /> 支持的最大列表长度为:20

func (*LogisticsOrderstorePushRequest) SetSubTid

func (r *LogisticsOrderstorePushRequest) SetSubTid(value string)

拆单子订单列表,对应的数据是:子订单号的列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集!

func (*LogisticsOrderstorePushRequest) SetTradeId

func (r *LogisticsOrderstorePushRequest) SetTradeId(value string)

淘宝订单交易号

type LogisticsOrderstorePushResponse

type LogisticsOrderstorePushResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsOrderstorePushResponseResult

type LogisticsOrderstorePushResponseResult struct {
	Response *LogisticsOrderstorePushResponse `json:"logistics_orderstore_push_response"`
}

type LogisticsOrdertracePushRequest

type LogisticsOrdertracePushRequest struct {
	open_taobao.TaobaoMethodRequest
}

卖家使用自己的物流公司发货,可以通过本接口将订单的流转信息推送到淘宝,淘宝保存这些流转信息,并可在页面展示这些流转信息。

func (*LogisticsOrdertracePushRequest) GetResponse

func (*LogisticsOrdertracePushRequest) SetCompanyName

func (r *LogisticsOrdertracePushRequest) SetCompanyName(value string)

物流公司名称<br /> 支持最大长度为:20<br /> 支持的最大列表长度为:20

func (*LogisticsOrdertracePushRequest) SetCurrentCity

func (r *LogisticsOrdertracePushRequest) SetCurrentCity(value string)

流转节点的当前城市<br /> 支持最大长度为:20<br /> 支持的最大列表长度为:20

func (*LogisticsOrdertracePushRequest) SetFacilityName

func (r *LogisticsOrdertracePushRequest) SetFacilityName(value string)

网点名称<br /> 支持最大长度为:100<br /> 支持的最大列表长度为:100

func (*LogisticsOrdertracePushRequest) SetMailNo

func (r *LogisticsOrdertracePushRequest) SetMailNo(value string)

快递单号。各个快递公司的运单号格式不同。

func (*LogisticsOrdertracePushRequest) SetNextCity

func (r *LogisticsOrdertracePushRequest) SetNextCity(value string)

流转节点的下一个城市<br /> 支持最大长度为:20<br /> 支持的最大列表长度为:20

func (*LogisticsOrdertracePushRequest) SetNodeDescription

func (r *LogisticsOrdertracePushRequest) SetNodeDescription(value string)

描述当前节点的操作,操作是“揽收”、“派送”或“签收”。<br /> 支持最大长度为:20<br /> 支持的最大列表长度为:20

func (*LogisticsOrdertracePushRequest) SetOccureTime

func (r *LogisticsOrdertracePushRequest) SetOccureTime(value string)

流转节点发生时间

func (*LogisticsOrdertracePushRequest) SetOperateDetail

func (r *LogisticsOrdertracePushRequest) SetOperateDetail(value string)

流转节点的详细地址及操作描述<br /> 支持最大长度为:200<br /> 支持的最大列表长度为:200

func (*LogisticsOrdertracePushRequest) SetOperatorContact

func (r *LogisticsOrdertracePushRequest) SetOperatorContact(value string)

快递业务员联系方式,手机号码或电话。<br /> 支持最大长度为:20<br /> 支持的最大列表长度为:20

func (*LogisticsOrdertracePushRequest) SetOperatorName

func (r *LogisticsOrdertracePushRequest) SetOperatorName(value string)

快递业务员名称<br /> 支持最大长度为:20<br /> 支持的最大列表长度为:20

type LogisticsOrdertracePushResponse

type LogisticsOrdertracePushResponse struct {
	Shipping *Shipping `json:"shipping"`
}

type LogisticsOrdertracePushResponseResult

type LogisticsOrdertracePushResponseResult struct {
	Response *LogisticsOrdertracePushResponse `json:"logistics_ordertrace_push_response"`
}

type LogisticsPartner

type LogisticsPartner struct {
	Carriage      *CarriageDetail `json:"carriage"`
	CoverRemark   string          `json:"cover_remark"`
	Partner       *PartnerDetail  `json:"partner"`
	UncoverRemark string          `json:"uncover_remark"`
}

查询揽送范围之内的物流公司信息

type LogisticsPartnersGetRequest

type LogisticsPartnersGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询物流公司信息(可以查询目的地可不可达情况)

func (*LogisticsPartnersGetRequest) GetResponse

func (r *LogisticsPartnersGetRequest) GetResponse(accessToken string) (*LogisticsPartnersGetResponse, []byte, error)

func (*LogisticsPartnersGetRequest) SetGoodsValue

func (r *LogisticsPartnersGetRequest) SetGoodsValue(value string)

货物价格.只有当选择货到付款此参数才会有效

func (*LogisticsPartnersGetRequest) SetIsNeedCarriage

func (r *LogisticsPartnersGetRequest) SetIsNeedCarriage(value string)

是否需要揽收资费信息,默认false。在此值为false时,返回内容中将无carriage。在未设置source_id或target_id的情况下,无法查询揽收资费信息。自己联系无揽收资费记录。

func (*LogisticsPartnersGetRequest) SetServiceType

func (r *LogisticsPartnersGetRequest) SetServiceType(value string)

服务类型,根据此参数可查出提供相应服务类型的物流公司信息(物流公司状态正常),可选值:cod(货到付款)、online(在线下单)、 offline(自己联系)、limit(限时物流)。然后再根据source_id,target_id,goods_value这三个条件来过滤物流公司. 目前输入自己联系服务类型将会返回空,因为自己联系并没有具体的服务信息,所以不会有记录。

func (*LogisticsPartnersGetRequest) SetSourceId

func (r *LogisticsPartnersGetRequest) SetSourceId(value string)

物流公司揽货地地区码(必须是区、县一级的).参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20100623_402652267.htm 或者调用 taobao.areas.get 获取

func (*LogisticsPartnersGetRequest) SetTargetId

func (r *LogisticsPartnersGetRequest) SetTargetId(value string)

物流公司派送地地区码(必须是区、县一级的).参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20100623_402652267.htm 或者调用 taobao.areas.get 获取

type LogisticsPartnersGetResponse

type LogisticsPartnersGetResponse struct {
	LogisticsPartners struct {
		LogisticsPartner []*LogisticsPartner `json:"logistics_partner"`
	} `json:"logistics_partners"`
}

type LogisticsPartnersGetResponseResult

type LogisticsPartnersGetResponseResult struct {
	Response *LogisticsPartnersGetResponse `json:"logistics_partners_get_response"`
}

type LogisticsTraceSearchRequest

type LogisticsTraceSearchRequest struct {
	open_taobao.TaobaoMethodRequest
}
用户根据淘宝交易号查询物流流转信息,如2010-8-10 15:23:00到达杭州集散地。

此接口的返回信息都由物流公司提供。(备注:使用线下发货(offline.send)的运单,不支持运单状态的实时跟踪,只要一发货,状态就会变为<status>对方已签收</status>,该字段仅对线上发货(online.send)的运单有效。)

func (*LogisticsTraceSearchRequest) GetResponse

func (r *LogisticsTraceSearchRequest) GetResponse(accessToken string) (*LogisticsTraceSearchResponse, []byte, error)

func (*LogisticsTraceSearchRequest) SetIsSplit

func (r *LogisticsTraceSearchRequest) SetIsSplit(value string)

表明是否是拆单,默认值0,1表示拆单

func (*LogisticsTraceSearchRequest) SetSellerNick

func (r *LogisticsTraceSearchRequest) SetSellerNick(value string)

卖家昵称

func (*LogisticsTraceSearchRequest) SetSubTid

func (r *LogisticsTraceSearchRequest) SetSubTid(value string)

拆单子订单列表,对应的数据是:子订单号的列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集

func (*LogisticsTraceSearchRequest) SetTid

func (r *LogisticsTraceSearchRequest) SetTid(value string)

淘宝交易号,请勿传非淘宝交易号

type LogisticsTraceSearchResponse

type LogisticsTraceSearchResponse struct {
	CompanyName string `json:"company_name"`
	OutSid      string `json:"out_sid"`
	Status      string `json:"status"`
	Tid         int    `json:"tid"`
	TraceList   struct {
		TransitStepInfo []*TransitStepInfo `json:"transit_step_info"`
	} `json:"trace_list"`
}

type LogisticsTraceSearchResponseResult

type LogisticsTraceSearchResponseResult struct {
	Response *LogisticsTraceSearchResponse `json:"logistics_trace_search_response"`
}

type PartnerDetail

type PartnerDetail struct {
	AccountNo   string `json:"account_no"`
	CompanyCode string `json:"company_code"`
	CompanyId   int    `json:"company_id"`
	CompanyName string `json:"company_name"`
	FullName    string `json:"full_name"`
	RegMailNo   string `json:"reg_mail_no"`
	WangwangId  string `json:"wangwang_id"`
}

物流公司详细信息

type ShipFresh

type ShipFresh struct {
	DeliveryName string `json:"delivery_name"`
	SendAddr     string `json:"send_addr"`
	Tel          string `json:"tel"`
	WangwangId   string `json:"wangwang_id"`
}

发货后返回给仓库的名称中转仓信息

type Shipping

type Shipping struct {
	BuyerNick       string    `json:"buyer_nick"`
	CompanyName     string    `json:"company_name"`
	Created         string    `json:"created"`
	DeliveryEnd     string    `json:"delivery_end"`
	DeliveryStart   string    `json:"delivery_start"`
	FreightPayer    string    `json:"freight_payer"`
	IsQuickCodOrder bool      `json:"is_quick_cod_order"`
	IsSpilt         int       `json:"is_spilt"`
	IsSuccess       bool      `json:"is_success"`
	ItemTitle       string    `json:"item_title"`
	Location        *Location `json:"location"`
	Modified        string    `json:"modified"`
	OrderCode       string    `json:"order_code"`
	OutSid          string    `json:"out_sid"`
	ReceiverMobile  string    `json:"receiver_mobile"`
	ReceiverName    string    `json:"receiver_name"`
	ReceiverPhone   string    `json:"receiver_phone"`
	SellerConfirm   string    `json:"seller_confirm"`
	SellerNick      string    `json:"seller_nick"`
	Status          string    `json:"status"`
	SubTids         []int     `json:"sub_tids"`
	Tid             int       `json:"tid"`
	Type            string    `json:"type"`
}

获取的物流订单详情列表 返回的Shipping包含的具体信息为入参fields请求的字段信息

type TopFee

type TopFee struct {
	AddFee        string `json:"add_fee"`
	AddStandard   string `json:"add_standard"`
	Destination   string `json:"destination"`
	ServiceType   string `json:"service_type"`
	StartFee      string `json:"start_fee"`
	StartStandard string `json:"start_standard"`
}

运费模板中运费信息对象

type TransitStepInfo

type TransitStepInfo struct {
	Action          string `json:"action"`
	Desc            string `json:"desc"`
	NodeDescription string `json:"node_description"`
	StatusDesc      string `json:"status_desc"`
	StatusTime      string `json:"status_time"`
	Time            string `json:"time"`
}

物流跟踪信息的一条

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL