文档中心 > API类目 > 银泰开放平台

alibaba.mos.fin.pytredconfirmresult.report (票易通红字确认单反馈接口)

红字确认单反馈接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
red_confirmation_request RedConfirmationRequestDTO 必须 红字确认单反馈接口请求参数
  • └ account_type
  • String
  • 可选
  • AR
  • 账户类型是AR 或 AP
  • └ original_invoice_type
  • String
  • 可选
  • -
  • 发票类型
  • └ original_invoice_no
  • String
  • 可选
  • -
  • 原蓝票数电发票号码
  • └ original_paper_invoice_no
  • String
  • 可选
  • -
  • 原蓝票纸质发票号码 否包括:原数电纸质发票号码、原税控发票号码
  • └ original_paper_invoice_code
  • String
  • 可选
  • -
  • 原蓝票纸质发票代码 否 包括:原数电纸质发票代码、原税控发票代码
  • └ original_amount_with_tax
  • String
  • 可选
  • 0
  • 原始含税金额
  • └ original_amount_without_tax
  • String
  • 可选
  • 0
  • 原始不含税金额
  • └ original_tax_amount
  • String
  • 可选
  • 0
  • 原始税额
  • └ apply_date
  • Number
  • 可选
  • 0
  • 申请时间
  • └ apply_status
  • String
  • 可选
  • 00
  • 申请状态
  • └ apply_reason
  • String
  • 可选
  • -
  • 申请原因
  • └ apply_user
  • String
  • 可选
  • -
  • 申请人
  • └ red_letter_number
  • String
  • 可选
  • -
  • 红字确认单编号
  • └ issue_status
  • Number
  • 可选
  • 0
  • 开票状态
  • └ seller_group_id
  • String
  • 可选
  • -
  • 销方租户 id
  • └ seller_no
  • String
  • 可选
  • -
  • 销方编号
  • └ seller_name
  • String
  • 可选
  • -
  • 销方名称
  • └ seller_tax_no
  • String
  • 可选
  • -
  • 销方税号
  • └ buyer_name
  • String
  • 可选
  • -
  • 购方名称
  • └ buyer_no
  • String
  • 可选
  • -
  • 购方编号
  • └ buyer_tax_no
  • String
  • 可选
  • -
  • 购方税号
  • └ buyer_group_id
  • String
  • 可选
  • -
  • 购方租户id
  • └ amount_with_tax
  • String
  • 可选
  • 0
  • 含税金额
  • └ amount_without_tax
  • String
  • 可选
  • 0
  • 不含税金额
  • └ tax_amount
  • String
  • 可选
  • 0
  • 税额
  • └ deduction
  • String
  • 可选
  • 0
  • 字符串金额-扣除额
  • └ tax_rate
  • String
  • 可选
  • 0
  • 税率
  • └ sale_list_file_flag
  • Number
  • 可选
  • 0
  • 是否销货清单
  • └ pricing_method
  • Number
  • 可选
  • 0
  • 价格方式
  • └ customer_serial_no
  • String
  • 可选
  • -
  • 流水号
  • └ red_letter_origin
  • Number
  • 可选
  • 0
  • 数据来源
  • └ red_letter_from
  • Number
  • 可选
  • 0
  • 数据平台
  • └ create_time
  • Number
  • 可选
  • 0
  • 创建时间
  • └ create_user_id
  • String
  • 可选
  • -
  • 创建人Id
  • └ update_time
  • Number
  • 可选
  • 0
  • 修改时间
  • └ update_user_id
  • String
  • 可选
  • -
  • 修改人Id
  • details
  • RedConfirmationItem []
  • 必须
  • 明细
  • └ item_code
  • String
  • 可选
  • -
  • 项目代码
  • └ item_name
  • String
  • 可选
  • -
  • 项目名称
  • └ deduction
  • String
  • 可选
  • -
  • 字符串金额扣除额
  • └ specifications
  • String
  • 可选
  • -
  • 规格型号
  • └ goods_tax_no
  • String
  • 可选
  • -
  • 税收分类编码
  • └ quantity
  • String
  • 可选
  • 0
  • 字符串数量
  • └ unit
  • String
  • 可选
  • -
  • 单位
  • └ amount_with_tax
  • String
  • 可选
  • 0
  • 字符串金额含税金额
  • └ amount_without_tax
  • String
  • 可选
  • 0
  • 字符串金额-不含税金额
  • └ tax_amount
  • String
  • 可选
  • 0
  • 字符串金额-税额
  • └ tax_rate
  • String
  • 可选
  • 0
  • 税率
  • └ unit_price
  • String
  • 可选
  • 0
  • 单价
  • └ unit_price_with_tax
  • String
  • 可选
  • 11
  • 含税单价
  • └ create_time
  • Number
  • 可选
  • 0
  • 创建时间
  • └ create_user_id
  • String
  • 可选
  • -
  • 创建人Id
  • └ update_time
  • Number
  • 可选
  • 0
  • 修改时间
  • └ update_user_id
  • String
  • 可选
  • -
  • 修改人Id

响应参数

名称 类型 示例值 描述
result TopResult 返回对象
  • └ trace_id
  • String
  • -
  • 日志
  • └ success
  • Boolean
  • true
  • 调用是否成功
  • └ err_code
  • String
  • 异常信息编码
  • 异常信息编码
  • └ err_message
  • String
  • 异常信息
  • 异常信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMosFinPytredconfirmresultReportRequest req = new AlibabaMosFinPytredconfirmresultReportRequest();
AlibabaMosFinPytredconfirmresultReportRequest.RedConfirmationRequestDTO obj1 = new AlibabaMosFinPytredconfirmresultReportRequest.RedConfirmationRequestDTO();
obj1.setAccountType("AR");
obj1.setOriginalInvoiceType("-");
obj1.setOriginalInvoiceNo("-");
obj1.setOriginalPaperInvoiceNo("-");
obj1.setOriginalPaperInvoiceCode("-");
obj1.setOriginalAmountWithTax("0");
obj1.setOriginalAmountWithoutTax("0");
obj1.setOriginalTaxAmount("0");
obj1.setApplyDate(0L);
obj1.setApplyStatus("00");
obj1.setApplyReason("-");
obj1.setApplyUser("-");
obj1.setRedLetterNumber("-");
obj1.setIssueStatus(0L);
obj1.setSellerGroupId("-");
obj1.setSellerNo("-");
obj1.setSellerName("-");
obj1.setSellerTaxNo("-");
obj1.setBuyerName("-");
obj1.setBuyerNo("-");
obj1.setBuyerTaxNo("-");
obj1.setBuyerGroupId("-");
obj1.setAmountWithTax("0");
obj1.setAmountWithoutTax("0");
obj1.setTaxAmount("0");
obj1.setDeduction("0");
obj1.setTaxRate("0");
obj1.setSaleListFileFlag(0L);
obj1.setPricingMethod(0L);
obj1.setCustomerSerialNo("-");
obj1.setRedLetterOrigin(0L);
obj1.setRedLetterFrom(0L);
obj1.setCreateTime(0L);
obj1.setCreateUserId("-");
obj1.setUpdateTime(0L);
obj1.setUpdateUserId("-");
List<AlibabaMosFinPytredconfirmresultReportRequest.RedConfirmationItem> list3 = new ArrayList<AlibabaMosFinPytredconfirmresultReportRequest.RedConfirmationItem>();
AlibabaMosFinPytredconfirmresultReportRequest.RedConfirmationItem obj4 = new AlibabaMosFinPytredconfirmresultReportRequest.RedConfirmationItem();
list3.add(obj4);
obj4.setItemCode("-");
obj4.setItemName("-");
obj4.setDeduction("-");
obj4.setSpecifications("-");
obj4.setGoodsTaxNo("-");
obj4.setQuantity("0");
obj4.setUnit("-");
obj4.setAmountWithTax("0");
obj4.setAmountWithoutTax("0");
obj4.setTaxAmount("0");
obj4.setTaxRate("0");
obj4.setUnitPrice("0");
obj4.setUnitPriceWithTax("11");
obj4.setCreateTime(0L);
obj4.setCreateUserId("-");
obj4.setUpdateTime(0L);
obj4.setUpdateUserId("-");
obj1.setDetails(list3);
req.setRedConfirmationRequest(obj1);
AlibabaMosFinPytredconfirmresultReportResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mos_fin_pytredconfirmresult_report_response>
    <result>
        <trace_id>-</trace_id>
        <success>true</success>
        <err_code>异常信息编码</err_code>
        <err_message>异常信息</err_message>
    </result>
</alibaba_mos_fin_pytredconfirmresult_report_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

返回
顶部