1. Ups下载面单

1.2. 下载pdf 文件

Type: GET

Author: rainy

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: 下载pdf 文件

Request-parameters:

ParameterTypeDescriptionRequiredSince

username

string

用户名

true

-

apikey

string

用户验证key

true

-

key

string

文件key(创建面单返回的标识符)

true

-

Request-example:

curl -X GET  -i https://api.duoduo.biz/endicia/ups/download?apikey=202cb962ac591111111111152d234b70&username=txxxxxs&key=61EFF7D0DAAAAAAAAAA2BD9A123F29CD

Response-example:

This api return nothing.

2. Ups创建面单

2.2. 查询产品代码

Type: POST

Author: rainy

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: 查询产品代码

Request-example:

curl -X POST  -i https://api.duoduo.biz/endicia/ups/products

Response-fields:

FieldTypeDescriptionSince

code

int32

No comments found.

-

msg

string

No comments found.

-

data

object

No comments found.

-

Response-example:

{
	"code":481,
	"msg":"emfums",
	"data":{
		"waring":"You may have used non-display generics."
	}
}

2.3. 获取价格

Type: POST

Author: rainy

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: 获取价格

Request-parameters:

ParameterTypeDescriptionRequiredSince

username

string

用户名

true

-

apikey

string

用户验证key

true

-

insuredValue

number

保险金额

false

-

sn

string

No comments found.

false

-

product

string

产品代码

false

-

freightClass

string

密度

false

-

isSignatureService

boolean

是否需要签名服务

false

-

receiver

object

收件人

false

-

└─toName

string

收件人姓名

false

-

└─toCompany

string

收件人公司

false

-

└─toAddress1

string

收件人地址1

false

-

└─toCity

string

收件人城市

false

-

└─toState

string

收件人省

false

-

└─toPostalCode

string

收件人邮编

false

-

└─toZIP4

string

收件人美国的地址

false

-

└─toDeliveryPoint

string

收件人交付地点

false

-

└─toCountryCode

string

收件人国家编号

false

-

└─toPhone

string

收件人电话

false

-

└─toEmail

string

收件人邮箱

false

-

└─memo

string

描述

false

-

└─mobile

string

手机

false

-

sender

object

发件人

false

-

└─fromName

string

发件人姓名

false

-

└─fromCompany

string

发件人公司名称

false

-

└─fromAddress1

string

发件人第一次交货地址线

false

-

└─fromAddress2

string

发件人第二次交货地址线

false

-

└─fromCity

string

发件人城市

false

-

└─fromState

string

发件人所在的州或省

false

-

└─fromPostalCode

string

发件人邮政编码

false

-

└─fromZIP4

string

发件人美国的地址

false

-

└─fromCountry

string

发件人的国家

false

-

└─fromPhone

string

发件人的电话

false

-

└─fromEmail

string

发件人的邮箱

false

-

packages

array

包裹信息

false

-

└─number

int32

包裹数量

false

-

└─weight

number

包裹重量

false

-

└─length

number

包裹长度

false

-

└─width

number

包裹宽度

false

-

└─height

number

包裹高度

false

-

└─referenceNumbers

array

参考号

false

-

memo

string

订单备注

false

-

isTest

boolean

是否为测试订单

false

-

Request-example:

curl -X POST  -i https://api.duoduo.biz/endicia/ups/quote --data 'receiver.toPhone=14710565171&sender.fromCountry=vkknoj&apikey=202cb962ac591111111111152d234b70&sender.fromEmail=嘉熙.杨@hotmail.com&sender.fromName=煜祺.蔡&isTest=true&receiver.toAddress1=xdbs58&packages[0].weight=711&receiver.mobile=15639969083&isSignatureService=true&packages[0].length=604&packages[0].number=309&freightClass=vjouty&sender.fromCompany=曾, 史 and 陈&sender.fromPhone=14710565171&packages[0].width=917&receiver.toState=guhqo3&receiver.toPostalCode=22617&memo=52omrn&receiver.toEmail=嘉熙.杨@hotmail.com&username=txxxxxs&receiver.toDeliveryPoint=nmse23&receiver.toZIP4=wqhf7t&receiver.memo=s0u169&sender.fromPostalCode=22617&receiver.toName=煜祺.蔡&sender.fromCity=2jse2o&product=5izazl&receiver.toCountryCode=22617&sender.fromZIP4=veen1n&packages[0].height=316&sender.fromState=ijbceh&insuredValue=914&receiver.toCompany=曾, 史 and 陈&sn=yaijsq&receiver.toCity=m69tm0&sender.fromAddress1=p458fi&sender.fromAddress2=91xw1b'

Response-fields:

FieldTypeDescriptionSince

code

int32

No comments found.

-

msg

string

No comments found.

-

data

object

No comments found.

-

Response-example:

{
	"code":167,
	"msg":"0tm50q",
	"data":{
		"waring":"You may have used non-display generics."
	}
}

2.4. 创建面单

Type: POST

Author: rainy

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: 创建面单

Request-parameters:

ParameterTypeDescriptionRequiredSince

username

string

用户名

true

-

apikey

string

用户验证key

true

-

insuredValue

number

保险金额

false

-

sn

string

No comments found.

false

-

product

string

产品代码

false

-

freightClass

string

密度

false

-

isSignatureService

boolean

是否需要签名服务

false

-

receiver

object

收件人

false

-

└─toName

string

收件人姓名

false

-

└─toCompany

string

收件人公司

false

-

└─toAddress1

string

收件人地址1

false

-

└─toCity

string

收件人城市

false

-

└─toState

string

收件人省

false

-

└─toPostalCode

string

收件人邮编

false

-

└─toZIP4

string

收件人美国的地址

false

-

└─toDeliveryPoint

string

收件人交付地点

false

-

└─toCountryCode

string

收件人国家编号

false

-

└─toPhone

string

收件人电话

false

-

└─toEmail

string

收件人邮箱

false

-

└─memo

string

描述

false

-

└─mobile

string

手机

false

-

sender

object

发件人

false

-

└─fromName

string

发件人姓名

false

-

└─fromCompany

string

发件人公司名称

false

-

└─fromAddress1

string

发件人第一次交货地址线

false

-

└─fromAddress2

string

发件人第二次交货地址线

false

-

└─fromCity

string

发件人城市

false

-

└─fromState

string

发件人所在的州或省

false

-

└─fromPostalCode

string

发件人邮政编码

false

-

└─fromZIP4

string

发件人美国的地址

false

-

└─fromCountry

string

发件人的国家

false

-

└─fromPhone

string

发件人的电话

false

-

└─fromEmail

string

发件人的邮箱

false

-

packages

array

包裹信息

false

-

└─number

int32

包裹数量

false

-

└─weight

number

包裹重量

false

-

└─length

number

包裹长度

false

-

└─width

number

包裹宽度

false

-

└─height

number

包裹高度

false

-

└─referenceNumbers

array

参考号

false

-

memo

string

订单备注

false

-

isTest

boolean

是否为测试订单

false

-

Request-example:

curl -X POST  -i https://api.duoduo.biz/endicia/ups/createLabel --data 'apikey=202cb962ac591111111111152d234b70&isSignatureService=true&receiver.toEmail=嘉熙.杨@hotmail.com&isTest=true&sender.fromCity=ftkj3h&sender.fromEmail=嘉熙.杨@hotmail.com&receiver.toZIP4=7lcddq&sn=wme7v8&receiver.toPhone=14710565171&packages[0].height=107&receiver.toCity=z97gz1&receiver.toDeliveryPoint=cl0t2n&receiver.toCountryCode=22617&sender.fromPostalCode=22617&receiver.toState=ais042&sender.fromPhone=14710565171&sender.fromCountry=v7g0hi&freightClass=t5050o&receiver.toCompany=曾, 史 and 陈&receiver.toPostalCode=22617&sender.fromAddress1=8jonec&packages[0].width=465&packages[0].number=311&receiver.toAddress1=eosurh&username=txxxxxs&sender.fromName=煜祺.蔡&sender.fromCompany=曾, 史 and 陈&receiver.memo=rrimm9&receiver.mobile=15639969083&sender.fromZIP4=u8du2a&packages[0].weight=732&product=ehw3ka&packages[0].length=884&insuredValue=574&sender.fromState=kkavpo&receiver.toName=煜祺.蔡&sender.fromAddress2=0ezl0c&memo=owv4r6'

Response-fields:

FieldTypeDescriptionSince

code

int32

No comments found.

-

msg

string

No comments found.

-

data

object

No comments found.

-

Response-example:

{
	"code":252,
	"msg":"hg4i7a",
	"data":{
		"waring":"You may have used non-display generics."
	}
}

2.5. 查询状态

Type: POST

Author: rainy

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: 查询状态

Request-parameters:

ParameterTypeDescriptionRequiredSince

key

string

No comments found.

true

-

Request-example:

curl -X POST  -i https://api.duoduo.biz/endicia/ups/check --data 'key=802vx6'

Response-fields:

FieldTypeDescriptionSince

code

int32

No comments found.

-

msg

string

No comments found.

-

data

object

No comments found.

-

Response-example:

{
	"code":223,
	"msg":"izs8o5",
	"data":{
		"waring":"You may have used non-display generics."
	}
}

3. UPS退款接口

3.2. Ups面单退款

Type: POST

Author: rainy

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: Ups面单退款

Request-parameters:

ParameterTypeDescriptionRequiredSince

sn

string

订单号

true

-

gukey

string

订单key

true

-

username

string

用户名

true

-

apikey

string

api验证key

true

-

Request-example:

curl -X POST  -i https://api.duoduo.biz/endicia/ups/refund --data 'sn=42010009999999999999999997770&gukey=61EFF7D0DAAAAAAAAAA2BD9A123F29CD&apikey=202cb962ac591111111111152d234b70&username=texxt'

Response-fields:

FieldTypeDescriptionSince

code

int32

No comments found.

-

msg

string

No comments found.

-

data

object

No comments found.

-

Response-example:

{
	"code":925,
	"msg":"1ibcon",
	"data":{
		"waring":"You may have used non-display generics."
	}
}