文档中心 > API类目 > 企业贷款-机构接入API

alibaba.finance.xfd.coupon.notify (消费贷营销券发放推送)

消费贷营销券发放推送

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_xfd_coupon_external_request XfdCouponExternalRequest 可选 请求体
  • coupon
  • Coupon
  • 可选
  • []
  • 营销券列表
  • └ coupon_code
  • String
  • 可选
  • ABC
  • 营销券代码
  • └ create_time
  • Date
  • 可选
  • 2024-01-01 00:00:00
  • 创建时间
  • └ description
  • String
  • 可选
  • XX
  • 描述
  • └ start_time
  • Date
  • 可选
  • 2024-01-01 00:00:00
  • 生效时间
  • └ end_time
  • Date
  • 可选
  • 2024-02-01 00:00:00
  • 截止时间
  • └ extension
  • String
  • 可选
  • {}
  • 扩展字段
  • └ name
  • String
  • 可选
  • 免息期
  • 营销券名称
  • └ status
  • String
  • 可选
  • USED
  • 营销券状态
  • └ type
  • String
  • 可选
  • INTEREST_FREE
  • 类型
  • └ used_time
  • Date
  • 可选
  • 2024-01-01 00:00:00
  • 使用时间
  • └ max_use_times
  • Number
  • 可选
  • 1
  • 券可用次数
  • └ activity_id
  • String
  • 可选
  • 123
  • 活动ID
  • └ activity_rule_id
  • String
  • 可选
  • 123
  • 活动规则ID
  • use_condition
  • CouponUseCondition
  • 可选
  • 10000.00
  • 使用条件
  • └ min_loan_amount
  • String
  • 可选
  • 1
  • 最低支用金额
  • └ max_loan_amount
  • String
  • 可选
  • 100
  • 最大支用金额
  • └ support_term_list
  • String []
  • 可选
  • [3,6]
  • 该卡券支持的期次列表
  • └ term_unit
  • String
  • 可选
  • MONTH
  • 支持的期次单位
  • └ support_repaymethod_list
  • String []
  • 可选
  • ["BALLOON_MORTGAGE"]
  • 支持的还款方式
  • └ limit_interest
  • String
  • 可选
  • 10
  • 减免利息额度
  • └ limit_terms
  • Number
  • 可选
  • 1
  • 限制x天/期优惠,则有此值
  • └ limit_term_unit
  • String
  • 可选
  • MONTH
  • 优惠期限单位
  • └ limit_term_stage
  • String
  • 可选
  • PRE
  • 优惠的期限阶段 PRE/LAST : 前x期/后x期
  • └ subtitle
  • String
  • 可选
  • xxx
  • 副标题
  • └ limit_quota
  • String
  • 可选
  • 100
  • 减免本金额度
  • └ apply_status
  • String
  • 可选
  • SUCCESS
  • 发放状态
  • └ customer_id
  • String
  • 可选
  • 123
  • 用户ID
  • └ request_id
  • String
  • 可选
  • 123
  • 幂等号
  • └ institution
  • String
  • 可选
  • DXM
  • 机构
  • └ apply_no
  • String
  • 可选
  • FI123123
  • 营销券发放单号
  • └ fail_reason_code
  • String
  • 可选
  • FAIL
  • 发放失败码
  • └ fail_reason_message
  • String
  • 可选
  • FAIL
  • 发放失败描述
  • └ credit_apply_no
  • String
  • 可选
  • FI123123
  • 授信单号
  • └ alipay_user_id
  • String
  • 可选
  • 111
  • 支付宝用户ID

响应参数

名称 类型 示例值 描述
result XfdExternalResponse 响应体
  • └ response_code
  • String
  • SUCCESS
  • 返回码
  • └ response_message
  • String
  • SUCCESS
  • 返回描述
  • └ trace_id
  • String
  • 123
  • 调用ID
  • └ success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceXfdCouponNotifyRequest req = new AlibabaFinanceXfdCouponNotifyRequest();
AlibabaFinanceXfdCouponNotifyRequest.XfdCouponExternalRequest obj1 = new AlibabaFinanceXfdCouponNotifyRequest.XfdCouponExternalRequest();
AlibabaFinanceXfdCouponNotifyRequest.Coupon obj2 = new AlibabaFinanceXfdCouponNotifyRequest.Coupon();
obj2.setCouponCode("ABC");
obj2.setCreateTime(StringUtils.parseDateTime("2024-01-01 00:00:00"));
obj2.setDescription("XX");
obj2.setStartTime(StringUtils.parseDateTime("2024-01-01 00:00:00"));
obj2.setEndTime(StringUtils.parseDateTime("2024-02-01 00:00:00"));
obj2.setExtension("{}");
obj2.setName("免息期");
obj2.setStatus("USED");
obj2.setType("INTEREST_FREE");
obj2.setUsedTime(StringUtils.parseDateTime("2024-01-01 00:00:00"));
obj2.setMaxUseTimes(1L);
obj2.setActivityId("123");
obj2.setActivityRuleId("123");
AlibabaFinanceXfdCouponNotifyRequest.CouponUseCondition obj3 = new AlibabaFinanceXfdCouponNotifyRequest.CouponUseCondition();
obj3.setMinLoanAmount("1");
obj3.setMaxLoanAmount("100");
obj3.setSupportTermList("3,6");
obj3.setTermUnit("MONTH");
obj3.setSupportRepaymethodList(""BALLOON_MORTGAGE"");
obj2.setUseCondition(obj3);
obj2.setLimitInterest("10");
obj2.setLimitTerms(1L);
obj2.setLimitTermUnit("MONTH");
obj2.setLimitTermStage("PRE");
obj2.setSubtitle("xxx");
obj2.setLimitQuota("100");
obj1.setCoupon(obj2);
obj1.setApplyStatus("SUCCESS");
obj1.setCustomerId("123");
obj1.setRequestId("123");
obj1.setInstitution("DXM");
obj1.setApplyNo("FI123123");
obj1.setFailReasonCode("FAIL");
obj1.setFailReasonMessage("FAIL");
obj1.setCreditApplyNo("FI123123");
obj1.setAlipayUserId("111");
req.setParamXfdCouponExternalRequest(obj1);
AlibabaFinanceXfdCouponNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_finance_xfd_coupon_notify_response>
    <result>
        <response_code>SUCCESS</response_code>
        <response_message>SUCCESS</response_message>
        <trace_id>123</trace_id>
        <success>true</success>
    </result>
</alibaba_finance_xfd_coupon_notify_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部