文档中心 > API类目 > 飞猪商家平台

alitrip.merchant.galaxy.derby.member.voucher.receipt.details.apply (v5.0付费会员卡开发订单开票详情申请)

v5.0付费会员卡开发订单开票详情申请

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenant_key String 可选 845610056 tenant_key
token String 可选 2312321312 token
derby_voucher_card_apply_receipt_d_t_o DerbyVoucherCardApplyReceiptDTO 可选 开票参数
  • └ receipt_type
  • String
  • 可选
  • personal/company
  • 发票类型(个人/公司)
  • └ name
  • String
  • 可选
  • 名称
  • 张三
  • └ phone
  • String
  • 可选
  • 手机号
  • 13365231234
  • └ email
  • String
  • 可选
  • 邮箱
  • 1456@163.com
  • └ order_id
  • String
  • 可选
  • 订单号
  • 84531204051
  • └ tax_id
  • String
  • 可选
  • 税号
  • 321312312
  • └ total_rate
  • String
  • 可选
  • 总金额
  • 2131

响应参数

名称 类型 示例值 描述
result Response 结果
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • 500
  • 错误码
  • └ error_msg
  • String
  • xxxerror
  • 错误信息
  • content
  • DerbyVoucherReceiptApplyVO
  • 内容
  • └ flow_number
  • String
  • 145132456132135
  • 发票申请流水号
  • └ order_id
  • String
  • 82312345050
  • 订单号

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripMerchantGalaxyDerbyMemberVoucherReceiptDetailsApplyRequest req = new AlitripMerchantGalaxyDerbyMemberVoucherReceiptDetailsApplyRequest();
req.setTenantKey("845610056");
req.setToken("2312321312");
AlitripMerchantGalaxyDerbyMemberVoucherReceiptDetailsApplyRequest.DerbyVoucherCardApplyReceiptDTO obj1 = new AlitripMerchantGalaxyDerbyMemberVoucherReceiptDetailsApplyRequest.DerbyVoucherCardApplyReceiptDTO();
obj1.setReceiptType("personal/company");
obj1.setName("名称");
obj1.setPhone("手机号");
obj1.setEmail("邮箱");
obj1.setOrderId("订单号");
obj1.setTaxId("税号");
obj1.setTotalRate("总金额");
req.setDerbyVoucherCardApplyReceiptDTO(obj1);
AlitripMerchantGalaxyDerbyMemberVoucherReceiptDetailsApplyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_merchant_galaxy_derby_member_voucher_receipt_details_apply_response>
    <result>
        <success>true</success>
        <error_code>500</error_code>
        <error_msg>xxxerror</error_msg>
        <content>
            <flow_number>145132456132135</flow_number>
            <order_id>82312345050</order_id>
        </content>
    </result>
</alitrip_merchant_galaxy_derby_member_voucher_receipt_details_apply_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

返回
顶部