文档中心
拼多多脱敏订单如何打印

拼多多脱敏订单如何打印

1、使用第三方平台授权-pinduoduoWx。授权成功后拿到对应partnerId、partnerKey、net下单时需传入;

2、参数param里新增thirdOrderId(平台订单id);

3、收件人电话传入加密电话(如:$AgAAAAK6MjwGdMbadQCrzhfdOcmsmHeJ69OhLqUjh80=$4$)

4、收件人姓名传入加密姓名(如:~AgAAAAK6MjwFdMbadQAimOGCTHMINDd7/W2xXlWtlao=~4~)

5、将收件人地址字段(printAddr) 拆成省市区及详细地址(province、city、district、addr)来传,addr传入详细地址密文。对于没有区的城市,可传入城市名或者镇名,例如{"province":"广东省","city":"东莞市","district":"塘厦镇"…}

6、收件人信息需新增detailAddrEnc(收件人加密详细地址,如:~AgAAAAK6MjwIdMbadQG53SyjOLyy04ZtKOi1EBOn5YQC/uQ1PceHzGU+Fp/SjVHcpR6fyzXzvnsLY4NoveXR7JgfAK1rUayLlT79BDdjydA=~4~)

收件人信息传参完整示例: {"recMan": {"province":"广东省","city":"深圳市","district":"南山区","addr":"~AgAAAAK6MjwIdMbadQG53SyjOLyy04ZtKOi1EBOn5YQC/uQ1PceHzGU+Fp/SjVHcpR6fyzXzvnsLY4NoveXR7JgfAK1rUayLlT79BDdjydA=~4~","detailAddrEnc":"~AgAAAAK6MjwIdMbadQG53SyjOLyy04ZtKOi1EBOn5YQC/uQ1PceHzGU+Fp/SjVHcpR6fyzXzvnsLY4NoveXR7JgfAK1rUayLlT79BDdjydA=~4~","mobile":"$AgAAAAK6MjwGdMbadQCrzhfdOcmsmHeJ69OhLqUjh80=$4$","name":"~AgAAAAK6MjwFdMbadQAimOGCTHMINDd7/W2xXlWtlao=~4~"}}

7、cargo必传、建议传商品列表里第一个。