开发者文档
生成签名

1.拼接签名串

按字段名的字母顺序拼接(包括data中的json字符串也按此规则),将token放在字符串的两端,如下所示:

签名串 = token + action + actionValue + app_key + app_keyValue + data + dataValue + format + formatValue + platform + platformValue + sign_method + sign_methodValue + timestamp + timestampValue + version + versionValue + token

 

注:可选字段未填时,签名串字段值使用默认值,如format默认值为json;没有默认值则为空字符串,如platform填充””,sign会随着传入的参数不同而变化

 

示例

签名串 =

3956C49B4525EAF246B640C9A6F3CE6BactioncreateOutboundOrderapp_key1378353828@qq.comdata{"address1":"1 Stafford Crt.","address2":"aaaaaaa","city":"Bayswater North",

"deliveryWayID":1000020,"eBayOrderID":"3298472983749823480","emailAddress":"abc@winit.com","insuranceTypeID":1000010,"phoneNum":"15900001111","productList":[{"eBayBuyerID":"PowerBuyerDEF456","eBayItemID":"34BayItemI34245","eBaySellerID":"PowerSellerABC123","eBayTransactionID":"2433ctionI234","productCode":"EA0000201","productNum":"1","specification":""}],"recipientName":"mingbao","region":"Victoria","repeatable":"N","sellerOrderNo":"PowerSellerABC123","state":"AU","warehouseID":1000001,"zipCode":"3153"}formatjsonplatformsign_methodmd5timestampversion1.03956C49B4525EAF246B640C9A6F3CE6B

 

2.生成签名

 

对以上拼接后的签名串进行MD5运算,并转换成大写的32位签名。

 

签名 =  toUpperCase(MD5(签名串))

 

上述示例生成的签名为:A1CFB2645212FEDCCAF43028076F17A5

 

备注:以下所有接口中的sign字段按照此方法生成。