调用【alipay.marketing.voucher.send】接口发劵成功后,在支付宝APP外引导用户领劵是提示获取优惠信息失败,请稍后再试
问题原因
拼接的领劵链接有误导致
解决方案
核实拼接的领劵链接是否有误,详细的拼接规则说明如下:
1、支付APP内引导访问领劵链接,拼接规则如下:
https://render.alipay.com/p/s/mygrace/ndetail.html?webview_options=sms%3DYES%26pd%3DNO&type=VOUCHER&id=券id(voucher_id发券成功后接口同步返回商户)
完整的示例如下(以voucher_id=2017101200073002254500AVEV0E为例):
https://render.alipay.com/p/s/mygrace/ndetail.html?webview_options=sms%3DYES%26pd%3DNO&type=VOUCHER&id=2017101200073002254500AVEV0E
2、支付宝APP外引导添加:拼接规则如下:
https://render.alipay.com/p/s/i/?scheme=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FappId%3D20000067%26url%3Dhttps%253A%252F%252Frender.alipay.com%252Fp%252Fs%252Fmygrace%252Fndetail.html%253F__webview_options__%253Dsms%25253DYES%252526pd%25253DNO%2526type%253DVOUCHER%2526id%253D券id(voucher_id发券成功后接口同步返回商户)
完整的示例如下(以voucher_id=2017101200073002254500AVEV0E为例):
https://render.alipay.com/p/s/i/?scheme=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FappId%3D20000067%26url%3Dhttps%3A%2F%2Frender.alipay.com%2Fp%2Fs%2Fmygrace%2Fndetail.html%3F__webview_options__%3Dsms%253DYES%2526pd%253DNO%26type%3DVOUCHER%26id%3D2017101200073002254500AVEV0E
注:发劵调用成功后,劵实际已经到用户支付宝账号内,访问领劵链接进行领取的目的,主要是把该劵添加在卡包内,便于用户进行查看。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。