文档中心 > API类目 > 本地生活API

alibaba.alsc.upp.right.decisionsend (权益咨询发放接口)

权益咨询发放接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
decision_send_top_req DecisionSendTopReq 必须 req对象
  • └ scene_code
  • String
  • 必须
  • 1512AINNA61
  • 场景码
  • └ act_codes
  • String []
  • 可选
  • 活动码列表
  • └ request_id
  • String
  • 必须
  • uuid
  • 幂等id
  • └ biz_code
  • String
  • 必须
  • XXXX
  • 业务码
  • act_right_top_infos
  • ActRightTopInfo []
  • 可选
  • 权益列表
  • └ act_code
  • String
  • 可选
  • b4d3rkj7d29kwlqg
  • 活动码
  • └ right_id
  • Number
  • 可选
  • 2203102002536848287
  • 权益模板id
  • └ user_type
  • String
  • 必须
  • ALIPAY
  • 用户类型
  • └ user_id
  • String
  • 必须
  • 666450000
  • 用户id

响应参数

名称 类型 示例值 描述
result BaseResponse 响应结果
  • └ can_retry
  • Boolean
  • true
  • 是否可重试
  • └ result_code
  • String
  • 错误码
  • └ result_msg
  • String
  • 错误信息
  • result_obj
  • DecisionSendTopResp
  • 发放信息对象
  • error_top_dto_list
  • DecisionErrorTopDTO []
  • 发放错误列表
  • └ act_code
  • String
  • b4d3rkj7d29kwlqg
  • 活动码
  • └ error_code
  • String
  • CAMP_TRIGGER_ERROR
  • 错误码
  • └ error_desc
  • String
  • 活动发奖调用异常
  • 错误描述
  • └ right_id
  • String
  • 1234567890
  • 权益Id
  • └ scene_code
  • String
  • 1512AINNA61
  • 场景码
  • └ type
  • String
  • SCENE、ACT、RIGHT
  • 类型
  • right_send_top_vo_list
  • RightSendTopVO []
  • 发放成功列表
  • └ end_time
  • Date
  • 2022-04-30 23:59:59
  • 失效时间
  • └ out_biz_instance_id
  • String
  • 下游实例id
  • └ reduction_yuan
  • String
  • 10.5
  • 减免金额
  • └ req_id
  • String
  • reqId
  • └ right_instance_id
  • String
  • 2203102002536848287
  • 权益实例Id
  • └ right_name
  • String
  • 平台红包
  • 权益名称
  • └ start_time
  • Date
  • 2022-04-07 00:00:00
  • 生效时间
  • └ threshold_yuan
  • String
  • 100
  • 门槛
  • └ benefit_type
  • String
  • REDUCTION
  • 优惠类型
  • └ reduction
  • String
  • 100
  • 减免金额(分)
  • └ threshold
  • String
  • 1000
  • 门槛(分)
  • └ fixed_price
  • String
  • 100
  • 单品特价(分)
  • └ status
  • String
  • SUCCESS,FAIL,SENDING,NO_DECISION_ITEM
  • 发放状态
  • └ success
  • Boolean
  • true
  • 发放结果,发放一个权益即为成功
  • └ trace_id
  • String
  • 0bba816316284896650043363e24dc
  • traceId

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscUppRightDecisionsendRequest req = new AlibabaAlscUppRightDecisionsendRequest();
AlibabaAlscUppRightDecisionsendRequest.DecisionSendTopReq obj1 = new AlibabaAlscUppRightDecisionsendRequest.DecisionSendTopReq();
obj1.setSceneCode("1512AINNA61");
obj1.setActCodes("");
obj1.setRequestId("uuid");
obj1.setBizCode("XXXX");
List<AlibabaAlscUppRightDecisionsendRequest.ActRightTopInfo> list3 = new ArrayList<AlibabaAlscUppRightDecisionsendRequest.ActRightTopInfo>();
AlibabaAlscUppRightDecisionsendRequest.ActRightTopInfo obj4 = new AlibabaAlscUppRightDecisionsendRequest.ActRightTopInfo();
list3.add(obj4);
obj4.setActCode("b4d3rkj7d29kwlqg");
obj4.setRightId(2203102002536848287L);
obj1.setActRightTopInfos(list3);
obj1.setUserType("ALIPAY");
obj1.setUserId("666450000");
req.setDecisionSendTopReq(obj1);
AlibabaAlscUppRightDecisionsendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_upp_right_decisionsend_response>
    <result>
        <can_retry>true</can_retry>
        <result_code>无</result_code>
        <result_msg>无</result_msg>
        <result_obj>
            <error_top_dto_list>
                <decision_error_top_d_t_o>
                    <act_code>b4d3rkj7d29kwlqg</act_code>
                    <error_code>CAMP_TRIGGER_ERROR</error_code>
                    <error_desc>活动发奖调用异常</error_desc>
                    <right_id>1234567890</right_id>
                    <scene_code>1512AINNA61</scene_code>
                    <type>SCENE、ACT、RIGHT</type>
                </decision_error_top_d_t_o>
            </error_top_dto_list>
            <right_send_top_vo_list>
                <right_send_top_v_o>
                    <end_time>2022-04-30 23:59:59</end_time>
                    <reduction_yuan>10.5</reduction_yuan>
                    <right_instance_id>2203102002536848287</right_instance_id>
                    <right_name>平台红包</right_name>
                    <start_time>2022-04-07 00:00:00</start_time>
                    <threshold_yuan>100</threshold_yuan>
                    <benefit_type>REDUCTION</benefit_type>
                    <reduction>100</reduction>
                    <threshold>1000</threshold>
                    <fixed_price>100</fixed_price>
                </right_send_top_v_o>
            </right_send_top_vo_list>
            <status>SUCCESS,FAIL,SENDING,NO_DECISION_ITEM</status>
        </result_obj>
        <success>true</success>
        <trace_id>0bba816316284896650043363e24dc</trace_id>
    </result>
</alibaba_alsc_upp_right_decisionsend_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

返回
顶部