更新时间:2024-10-23 18:07:11文档更新记录 >集成工具收藏订阅更新我的文档设置返回文档请求参数参数中文名称参数英文名称类型是否必填参数描述商户收单pidpidstring否如果需要查询券信息,则需要传入配置在券上面的 pid 账号,如果没有传入则会根据 appid 进行补全(补全可能存在不准确的情况)。订单详细信息orderdetailinfoobject是-l 订单总金额 l amountstring是订单总金额l 商品详情列表 l itemdetailinfolistobject[]是-ll 外部商品id ll outitemidstring是-ll 外部商品skuid ll outskuidstring是-ll 价格 ll pricestring是-ll 数量 ll quantitystring是-ll 商品id(支付券使用) ll goodsidstring否支付券对应商品id,有则配置。ll 租金信息 ll rentinfoobject否标准租赁模式下必填。lll 租期开始时间 lll rentstarttimeobject是格式 yyy-mm-dd hh:mm。租期开始时间须晚于下单时间,早于租期结束时间。lll 租期结束时间 lll rentendtimeobject是格式 yyy-mm-dd hh:mm。租期结束时间距开始时间最长不可超 36 个月。l 租赁订单扣款计划 l stagepayplanlistobject[]否标准租赁模式下必填。ll 租赁还款的阶段数 ll stagenostring是租赁阶段: 1 为首次租赁,2 为续租,3 为再次续租,以此类推。ll 付款计划信息 ll stagepayplaninfolistobject[]是当前阶段的付款计划明细。lll 计划付款编号 lll planpaynostring是付款明细的分期期数,如 1、2。lll 计划付款金额 lll planpaypricestring是当前付款期数应付的租金。支持每期付款金额不一致,单位为元。lll 计划付款时间 lll planpaytimeobject是当前付款期数的计划支付时间。公共响应参数参数中文名称参数英文名称类型参数描述错误码resultcodestring-错误信息resultmsgstring-是否调用成功successboolean-响应参数参数中文名称参数英文名称类型参数描述订单优惠信息orderdiscountdetailinfoobject-l 展示状态l showstatusstring用于判断是否可以展示前置优惠组件。●true:可以展示组件●false:不可以展示组件如果没有会员积分、消费金等优惠的情况不展示组件。l 限制购买l buyrestrictboolean判断当前sku是否限制购买的状态:●true:可以购买●false:不可以购买注意:如果商品可以使用原价下单情况,则不会限制购买。l 咨询idl activityconsultidstring重要参数,用于保障当前查询订单和用户下单的优惠信息保持一致。l 总优惠金额l totalpromoamountstring订单总的优惠金额 = 券优惠 红包优惠 渠道优惠l 券优惠金额l voucherpromoamountstring订单总的券优惠金额l 红包优惠金额l couponpromoamountstring订单总的红包优惠金额l 渠道优惠金额l channelpromoamountstring专享价l 优惠列表l promoamountinfolistlist目前单渠道暂时只会存在一种优惠ll 优惠类型ll salepromotypestring●ant_member : 会员积分●consume_gold:消费金ll 总积分ll totalpointamountstring订单总共消耗多少会员积分,或者消费金。ll 渠道指定总优惠ll totalchannelpromoamountstring如消费金抵扣的总优惠、渠道立减总优惠ll 背景图片地址ll backgroundpicstring-ll 背景标识ll backgroundtagstring支付宝会员ll 文案ll backgroundcontentstring已满2000消费金抵¥20l sku优惠明细l itemconsultdetailinfoliststring-ll 商品idll outitemidstring-ll skuidll outskuidstring-ll 限制购买状态ll restrictcodestring-ll 限制购买原因ll restrictreasonstringll 优惠类型ll salepromotypestring●ant_member : 会员积分●consume_gold:消费金●discount:渠道优惠ll 优惠子类型ll promotypestring会员积分价 -antmemberpromotiontypeenum.member_points会员等级价 -antmemberpromotiontypeenum.level_pricell 单次消耗积分ll singleconsumestring商品消耗的积分,以下几种情况:在消费金,会员积分场景,展示需要消耗的积分值。会员等级价情况数值为0,异常情况可能返回为空,展示时需要进行兜底处理。比如:9.9元 100积分。ll 优惠幅度ll promoamountstring原价-优惠后售价特别说明:租赁行业该字段为周期均优惠值,例如优惠 2元/天。ll 原价ll originalpricestring商品 sku 原价特别说明:租赁行业该字段为原价周期均价,例如 20元/天。ll 售价ll salepricestring商品 sku 售价特别说明:租赁行业该字段为售价周期均价,例如 10元/天。l 券列表l voucherconsultinfolistlist展示sku下可以展示的券列表。ll 券资产编码ll _assetscodestring-ll 券idll voucheridstring-ll 券名称ll vouchernamestring券的名称ll 券类型ll vouchertypestring券类型: 全场券: all单品券: itemll 优惠类型ll promotypestring优惠类型包括:●代金券 - fix●折扣券 - discount●减至券 - specialll 优惠子类型ll promotionsubtypestring优惠子类型包括:●优惠券 - platform_voucher●红包 - couponll 券金额(满减券)ll reductionamountstring-ll 减至金额(特价券)ll specifiedamountstring-ll 折扣力度(折扣券)ll reductionratiostring-ll 封顶优惠金额ll ceilingamountstring-ll 优惠门槛文案ll thresholdamountcontentstring用于展示券使用门槛文案。比如:满100元可用。ll 券失效时间ll expiredtimestring-ll 红包金额ll couponamountstring如果有红包的话,返回红包金额。请求示例 错误码公共错误码错误码错误码描述invalid_parameter 非法参数service_not_not_exist商品状态异常service_not_available商品状态异常consult_result_error系统错误system_error系统错误业务错误码会员积分场景错误码错误码描述member_assert_unavailable会员优惠不可用member_point_insufficient用户会员积分余额不足promo_budget_not_enough优惠库存不足promo_count_limit优惠计次超限会员等级场景错误码错误码描述not_qulified_member_grade用户当前会员等级不准入member_assert_unavailable会员优惠不可用promo_budget_not_enough优惠库存不足promo_count_limit优惠计次超限消费金场景错误码错误码描述consume_gold_unavailable消费金不可用consume_gold_freeze消费金不可用consume_gold_unregister消费金不可用consume_gold_insufficient消费金不足consume_gold_unauthorized消费金未授权promo_budget_not_enough优惠库存不足promo_count_limit优惠计次超限