文档中心 > API类目 > 天猫校园共享前端类目

tmall.xiaoyuan.share.isv.campus.wallet.allocation.gift.amount (发放赠送金)

发放赠送金

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
isv_fund_account_gift_amount_request IsvFundAccountGiftAmountRequest 可选 入参
  • └ gift_amount
  • Number
  • 可选
  • 1
  • 赠送金
  • └ fund_give_out_type
  • String
  • 可选
  • 1
  • 类型
  • └ fund_accredit_id
  • Number
  • 可选
  • 12
  • 钱包id
  • └ phones
  • String
  • 可选
  • 154
  • 手机号
  • └ subject_code
  • String
  • 可选
  • 1
  • subjectCode
  • └ subject_id
  • String
  • 可选
  • 2
  • subjectId

响应参数

名称 类型 示例值 描述
result Result 出参
  • └ msg
  • String
  • 1
  • msg
  • └ code
  • String
  • 1
  • code
  • └ data
  • Boolean
  • 1
  • 是否发放成功
  • └ total_num
  • Number
  • true
  • 总数
  • └ success
  • Boolean
  • true
  • success
  • └ page_num
  • Number
  • 1
  • pageNum

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallXiaoyuanShareIsvCampusWalletAllocationGiftAmountRequest req = new TmallXiaoyuanShareIsvCampusWalletAllocationGiftAmountRequest();
TmallXiaoyuanShareIsvCampusWalletAllocationGiftAmountRequest.IsvFundAccountGiftAmountRequest obj1 = new TmallXiaoyuanShareIsvCampusWalletAllocationGiftAmountRequest.IsvFundAccountGiftAmountRequest();
obj1.setGiftAmount(1L);
obj1.setFundGiveOutType("1");
obj1.setFundAccreditId(12L);
obj1.setPhones("154");
obj1.setSubjectCode("1");
obj1.setSubjectId("2");
req.setIsvFundAccountGiftAmountRequest(obj1);
TmallXiaoyuanShareIsvCampusWalletAllocationGiftAmountResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_xiaoyuan_share_isv_campus_wallet_allocation_gift_amount_response>
    <result>
        <msg>1</msg>
        <code>1</code>
        <data>1</data>
        <total_num>true</total_num>
        <success>true</success>
        <page_num>1</page_num>
    </result>
</tmall_xiaoyuan_share_isv_campus_wallet_allocation_gift_amount_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

返回
顶部